]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
tls-crypto: Use correct key length for ChaCha20/Poly1305
authorTobias Brunner <tobias@strongswan.org>
Wed, 26 Aug 2020 10:18:06 +0000 (12:18 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Feb 2021 10:45:44 +0000 (11:45 +0100)
src/libtls/tls_crypto.c

index 6b4651393331fd6c6a1028ad673f776fe9d2f5e9..a48393f380d6ca7728c60f0b9d2e875582c43e59 100644 (file)
@@ -494,7 +494,7 @@ static suite_algs_t suite_algs[] = {
        { TLS_CHACHA20_POLY1305_SHA256,
                KEY_ANY, MODP_NONE,
                HASH_SHA256, PRF_UNDEFINED,
-               AUTH_HMAC_SHA2_256_256, ENCR_CHACHA20_POLY1305, 16,
+               AUTH_HMAC_SHA2_256_256, ENCR_CHACHA20_POLY1305, 32,
                TLS_1_3,
        },
        { TLS_AES_128_CCM_SHA256,