]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
fixed AESNI CCM encryption
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 7 Apr 2015 21:21:23 +0000 (23:21 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 7 Apr 2015 21:22:53 +0000 (23:22 +0200)
lib/accelerated/x86/aes-ccm-x86-aesni.c

index 633862bb776322fac8eed263be5f8fe4c4522865..fb8ba766c9915db031021b7648b331b22b6f5e9a 100644 (file)
@@ -49,7 +49,7 @@ static void x86_aes_encrypt(const void *_ctx,
                            const uint8_t * src)
 {
        AES_KEY *ctx = (void*)_ctx;
-       aesni_ecb_encrypt(src, dst, 16, ctx, 1);
+       aesni_ecb_encrypt(src, dst, length, ctx, 1);
 }
 
 static int