ikev2: Use four byte salt for ChaCha20-Poly1305 AEAD
This commit is contained in:
@@ -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_ICV12:
|
||||||
case ENCR_AES_GCM_ICV16:
|
case ENCR_AES_GCM_ICV16:
|
||||||
/* RFC 4106 */
|
/* RFC 4106 */
|
||||||
|
case ENCR_CHACHA20_POLY1305:
|
||||||
salt_size = 4;
|
salt_size = 4;
|
||||||
break;
|
break;
|
||||||
case ENCR_AES_CCM_ICV8:
|
case ENCR_AES_CCM_ICV8:
|
||||||
|
|||||||
Reference in New Issue
Block a user