Skip to content

Commit 7064eec

Browse files
Force-zero output buffer for AES-SIV decrypt for other AES errors as well
1 parent 20571a9 commit 7064eec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wolfcrypt/src/aes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17098,10 +17098,10 @@ static WARN_UNUSED_RESULT int AesSivCipher(
1709817098
WOLFSSL_MSG("Computed SIV doesn't match received SIV.");
1709917099
ret = AES_SIV_AUTH_E;
1710017100
}
17101+
}
1710117102

17102-
if (ret != 0) {
17103-
ForceZero(out, dataSz);
17104-
}
17103+
if (ret != 0) {
17104+
ForceZero(out, dataSz);
1710517105
}
1710617106

1710717107
#ifdef WOLFSSL_SMALL_STACK

0 commit comments

Comments
 (0)