Skip to content

Commit c06f95e

Browse files
committed
Error on auth tag failure for AES-GCM decrypt with FIPS
1 parent 14fddfa commit c06f95e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp_aes_aead.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ static int wp_aesgcm_encdec(wp_AeadCtx *ctx, unsigned char *out, size_t* outLen,
14031403
ctx->aad, (word32)ctx->aadLen);
14041404
if (rc == AES_GCM_AUTH_E) {
14051405
ctx->authErr = 1;
1406-
rc = 0;
1406+
ok = 0;
14071407
}
14081408
if (rc != 0) {
14091409
ok = 0;

0 commit comments

Comments
 (0)