X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=crypto%2Fgcm.c;h=b4f01793900409a0398faeb958b74416a5d1637d;hb=4a2f8a5c16b0828bf3ec89b4ce290bda5a0547de;hp=43e1fb05ea54878cbe136231a1a92c847b6d3119;hpb=36a279686bc02d340eb213a9f2a0b67e50de64b4;p=karo-tx-linux.git diff --git a/crypto/gcm.c b/crypto/gcm.c index 43e1fb05ea54..b4f017939004 100644 --- a/crypto/gcm.c +++ b/crypto/gcm.c @@ -582,7 +582,7 @@ static int crypto_gcm_verify(struct aead_request *req, crypto_xor(auth_tag, iauth_tag, 16); scatterwalk_map_and_copy(iauth_tag, req->src, cryptlen, authsize, 0); - return memcmp(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; + return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; } static void gcm_decrypt_done(struct crypto_async_request *areq, int err)