Skip to content

Commit 53c02d7

Browse files
author
Ron Eldor
committed
Zeroize output buffer, upon authentication faliure.
Clear output buffer upon failure.
1 parent 1aaff0e commit 53c02d7

File tree

1 file changed

+2
-0
lines changed
  • features/cryptocell/FEATURE_CRYPTOCELL310

1 file changed

+2
-0
lines changed

features/cryptocell/FEATURE_CRYPTOCELL310/ccm_alt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ int mbedtls_ccm_auth_decrypt( mbedtls_ccm_context *ctx, size_t length,
146146
}
147147

148148
exit:
149+
if( ret != 0 )
150+
mbedtls_platform_zeroize( output, length );
149151
return( ret );
150152

151153
}

0 commit comments

Comments
 (0)