diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/crypto/aesni-intel_glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c index 835488b745ee..aba34b8e514c 100644 --- a/arch/x86/crypto/aesni-intel_glue.c +++ b/arch/x86/crypto/aesni-intel_glue.c | |||
@@ -1001,7 +1001,7 @@ static int __driver_rfc4106_decrypt(struct aead_request *req) | |||
1001 | authTag, auth_tag_len); | 1001 | authTag, auth_tag_len); |
1002 | 1002 | ||
1003 | /* Compare generated tag with passed in tag. */ | 1003 | /* Compare generated tag with passed in tag. */ |
1004 | retval = memcmp(src + tempCipherLen, authTag, auth_tag_len) ? | 1004 | retval = crypto_memneq(src + tempCipherLen, authTag, auth_tag_len) ? |
1005 | -EBADMSG : 0; | 1005 | -EBADMSG : 0; |
1006 | 1006 | ||
1007 | if (one_entry_in_sg) { | 1007 | if (one_entry_in_sg) { |