]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
libipsec: Create AEAD with four byte salt for ChaCha20-Poly1305
authorMartin Willi <martin@revosec.ch>
Tue, 7 Apr 2015 12:56:51 +0000 (14:56 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 29 Jun 2015 15:32:13 +0000 (17:32 +0200)
src/libipsec/esp_context.c

index a2307e0480c9fc4e2a553dba33e0d1a0ba167800..b742d1576805a46cb6df54fe2a0ffef9a8e5739b 100644 (file)
@@ -215,6 +215,7 @@ static bool create_aead(private_esp_context_t *this, int alg,
                case ENCR_AES_GCM_ICV8:
                case ENCR_AES_GCM_ICV12:
                case ENCR_AES_GCM_ICV16:
+               case ENCR_CHACHA20_POLY1305:
                        /* the key includes a 4 byte salt */
                        this->aead = lib->crypto->create_aead(lib->crypto, alg,
                                                                                                  key.len - 4, 4);