From: Miroslav Lichvar Date: Mon, 11 Sep 2023 08:45:39 +0000 (+0200) Subject: cipher: fix AES-SIV-GCM key lengths X-Git-Tag: 3.8.2~15^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd847bb3a3999655ec0bb085fa08fd7a01a57c8e;p=thirdparty%2Fgnutls.git cipher: fix AES-SIV-GCM key lengths Fix provided key lengths of AES-SIV-GCM ciphers, which have halved keys when compared to AES-SIV-CMAC. Signed-off-by: Miroslav Lichvar --- diff --git a/lib/algorithms/ciphers.c b/lib/algorithms/ciphers.c index c3139352fc..4f1222b196 100644 --- a/lib/algorithms/ciphers.c +++ b/lib/algorithms/ciphers.c @@ -311,7 +311,7 @@ static const cipher_entry_st algorithms[] = { { .name = "AES-128-SIV-GCM", .id = GNUTLS_CIPHER_AES_128_SIV_GCM, .blocksize = 16, - .keysize = 32, + .keysize = 16, .type = CIPHER_AEAD, .explicit_iv = 12, .cipher_iv = 12, @@ -320,7 +320,7 @@ static const cipher_entry_st algorithms[] = { { .name = "AES-256-SIV-GCM", .id = GNUTLS_CIPHER_AES_256_SIV_GCM, .blocksize = 16, - .keysize = 64, + .keysize = 32, .type = CIPHER_AEAD, .explicit_iv = 12, .cipher_iv = 12,