mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
kernel-pfkey: Enable macOS native AES_GCM_ICV16 support
macOS supports AES_GCM_ICV16 natively using PF_KEYv2. This change enables AES_GCM if the corresponding definition is detected in the headers. With this change it is no longer necessary to use the libipsec module to use AES_GCM on macOS. Closes strongswan/strongswan#107.
This commit is contained in:
parent
df411bfa30
commit
e2b8c7e6ed
@ -890,6 +890,8 @@ static kernel_algorithm_t encryption_algs[] = {
|
||||
{ENCR_AES_GCM_ICV8, SADB_X_EALG_AES_GCM_ICV8 },
|
||||
{ENCR_AES_GCM_ICV12, SADB_X_EALG_AES_GCM_ICV12 },
|
||||
{ENCR_AES_GCM_ICV16, SADB_X_EALG_AES_GCM_ICV16 },
|
||||
#elif defined(SADB_X_EALG_AES_GCM) /* macOS */
|
||||
{ENCR_AES_GCM_ICV16, SADB_X_EALG_AES_GCM },
|
||||
#endif
|
||||
#ifdef SADB_X_EALG_CAMELLIACBC
|
||||
{ENCR_CAMELLIA_CBC, SADB_X_EALG_CAMELLIACBC },
|
||||
|
Loading…
x
Reference in New Issue
Block a user