libipsec: Create AEAD with four byte salt for ChaCha20-Poly1305

This commit is contained in:
Martin Willi
2015-06-29 17:32:13 +02:00
parent 6ffaa8626e
commit 19e0a71c73
+1
View 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);