diff options
author | Martin Willi <martin@revosec.ch> | 2015-04-07 14:56:51 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2015-06-29 17:32:13 +0200 |
commit | 19e0a71c734c7f82710891cf9807bc56922909e2 (patch) | |
tree | 3e685adb77258cd34c001455f235745a14e8e8ac /src | |
parent | 6ffaa8626e110acdc77854527861799de349a4f8 (diff) | |
download | strongswan-19e0a71c734c7f82710891cf9807bc56922909e2.tar.bz2 strongswan-19e0a71c734c7f82710891cf9807bc56922909e2.tar.xz |
libipsec: Create AEAD with four byte salt for ChaCha20-Poly1305
Diffstat (limited to 'src')
-rw-r--r-- | src/libipsec/esp_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |