From 19e0a71c734c7f82710891cf9807bc56922909e2 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 7 Apr 2015 14:56:51 +0200 Subject: libipsec: Create AEAD with four byte salt for ChaCha20-Poly1305 --- src/libipsec/esp_context.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libipsec/esp_context.c') diff --git a/src/libipsec/esp_context.c b/src/libipsec/esp_context.c index a2307e048..b742d1576 100644 --- a/src/libipsec/esp_context.c +++ b/src/libipsec/esp_context.c @@ -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); -- cgit v1.2.3