Skip to content

Commit 12cf801

Browse files
authored
Merge pull request #228 from ColtonWilley/wp_aes_gcm_fips_decrypt_auth_fix
Error on auth tag failure for AES-GCM decrypt with FIPS
2 parents 3e8e7f8 + 0a2c9f3 commit 12cf801

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/wp_aes_aead.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,6 @@ 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;
14071406
}
14081407
if (rc != 0) {
14091408
ok = 0;

0 commit comments

Comments
 (0)