diff options
author | Emilia Kasper <emilia@openssl.org> | 2015-05-27 17:12:13 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2015-06-08 14:55:50 +0200 |
commit | 1e4a355dcabe2f75df5bb8b41b394d37037169d2 (patch) | |
tree | aac26a71e92cf32f361342fbe2c3fe4edde4395d /crypto/modes | |
parent | 65d3941f4aa199d0fcd615b074876f8ff2886d11 (diff) | |
download | openssl-1e4a355dcabe2f75df5bb8b41b394d37037169d2.tar.gz |
Use CRYPTO_memcmp when comparing authenticators
Pointed out by Victor Vasiliev (vasilvv@mit.edu) via Adam Langley
(Google).
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/modes')
-rw-r--r-- | crypto/modes/gcm128.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/modes/gcm128.c b/crypto/modes/gcm128.c index b39cd0671e..02e8f2e748 100644 --- a/crypto/modes/gcm128.c +++ b/crypto/modes/gcm128.c @@ -1685,7 +1685,7 @@ int CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx, const unsigned char *tag, ctx->Xi.u[1] ^= ctx->EK0.u[1]; if (tag && len <= sizeof(ctx->Xi)) - return memcmp(ctx->Xi.c, tag, len); + return CRYPTO_memcmp(ctx->Xi.c, tag, len); else return -1; } |