ikev2: Use four byte salt for ChaCha20-Poly1305 AEAD
authorMartin Willi <martin@revosec.ch>
Sun, 5 Apr 2015 12:29:29 +0000 (14:29 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 29 Jun 2015 15:32:13 +0000 (17:32 +0200)
src/libcharon/sa/ikev2/keymat_v2.c

index 6fedc8e..b57306b 100644 (file)
@@ -112,6 +112,7 @@ static bool derive_ike_aead(private_keymat_v2_t *this, u_int16_t alg,
                case ENCR_AES_GCM_ICV12:
                case ENCR_AES_GCM_ICV16:
                        /* RFC 4106 */
+               case ENCR_CHACHA20_POLY1305:
                        salt_size = 4;
                        break;
                case ENCR_AES_CCM_ICV8: