summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-02-05 20:25:23 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-02-05 20:30:07 +0100
commit60a9cbf8da7278d1405983379747ffca660385ff (patch)
tree7a5526abce3b07f5ec1516ba158d2f650af10738
parentd8a8128ed03ff28b36f72bf9620378a09d1871a3 (diff)
downloadgnutls-60a9cbf8da7278d1405983379747ffca660385ff.tar.gz
accelerated: fix use of aesni_ecb_encrypt()
Previously we assumed that the nettle GCM internal functions will use the provided ECB function for single block encryption. Newer versions no longer operate that way. Ensure that we are compatible with them. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rw-r--r--lib/accelerated/x86/aes-gcm-x86-aesni.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/accelerated/x86/aes-gcm-x86-aesni.c b/lib/accelerated/x86/aes-gcm-x86-aesni.c
index 9cae528912..7c6e4b1e58 100644
--- a/lib/accelerated/x86/aes-gcm-x86-aesni.c
+++ b/lib/accelerated/x86/aes-gcm-x86-aesni.c
@@ -49,7 +49,7 @@ static void x86_aes_encrypt(const void *_ctx,
{
AES_KEY *ctx = (void*)_ctx;
- aesni_ecb_encrypt(src, dst, 16, ctx, 1);
+ aesni_ecb_encrypt(src, dst, length, ctx, 1);
}
static void x86_aes128_set_encrypt_key(void *_ctx,