ikev2: Derive additional 4 byte CHILD_SA nonce keymat for ChaCha20-Poly1305
authorMartin Willi <martin@revosec.ch>
Fri, 29 May 2015 21:21:39 +0000 (23:21 +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 b57306b..fce0840 100644 (file)
@@ -528,6 +528,7 @@ METHOD(keymat_v2_t, derive_child_keys, bool,
                        case ENCR_AES_GCM_ICV16:
                        case ENCR_AES_CTR:
                        case ENCR_NULL_AUTH_AES_GMAC:
+                       case ENCR_CHACHA20_POLY1305:
                                enc_size += 4;
                                break;
                        default: