gcm128.c: fix AAD-only case with AAD length not divisible by 16 [from HEAD].
PR: 2859 Submitted by: John Foley
This commit is contained in:
parent
c8b979e929
commit
78d767f5ec
1 changed files with 1 additions and 1 deletions
|
@ -1398,7 +1398,7 @@ int CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx,const unsigned char *tag,
|
|||
void (*gcm_gmult_p)(u64 Xi[2],const u128 Htable[16]) = ctx->gmult;
|
||||
#endif
|
||||
|
||||
if (ctx->mres)
|
||||
if (ctx->mres || ctx->ares)
|
||||
GCM_MUL(ctx,Xi);
|
||||
|
||||
if (is_endian.little) {
|
||||
|
|
Loading…
Reference in a new issue