kernel-netlink: Add ChaCha20-Poly1305 AEAD support
authorMartin Willi <martin@revosec.ch>
Fri, 29 May 2015 20:26:34 +0000 (22:26 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 29 Jun 2015 15:32:14 +0000 (17:32 +0200)
src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c

index f22e07d..a6cf977 100644 (file)
@@ -199,6 +199,7 @@ static kernel_algorithm_t encryption_algs[] = {
 /*     {ENCR_CAMELLIA_CCM_ICV16,       "***"                           }, */
        {ENCR_SERPENT_CBC,                      "serpent"                       },
        {ENCR_TWOFISH_CBC,                      "twofish"                       },
+       {ENCR_CHACHA20_POLY1305,        "rfc7539esp(chacha20,poly1305)"},
 };
 
 /**
@@ -1291,6 +1292,7 @@ METHOD(kernel_ipsec_t, add_sa, status_t,
                case ENCR_AES_GCM_ICV16:
                case ENCR_NULL_AUTH_AES_GMAC:
                case ENCR_CAMELLIA_CCM_ICV16:
+               case ENCR_CHACHA20_POLY1305:
                        icv_size += 32;
                        /* FALL */
                case ENCR_AES_CCM_ICV12: