diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-07-10 15:04:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-10 15:04:16 +0200 |
commit | 27b70914e409b0bdbf4ace17e7929a5537542c58 (patch) | |
tree | 7506b8fdb142bb6a99182ee0fd00bbdbb2b36d34 /thirdparty/mbedtls/library/blowfish.c | |
parent | 04d9f8dbd6b1ec517c2d66db19efa93517933232 (diff) | |
parent | 888379e5131c34278c26c4696918a6cdcebc886b (diff) |
Merge pull request #19422 from Faless/mbedtls_2.10
Bump mbedTLS to version 2.10.0
Diffstat (limited to 'thirdparty/mbedtls/library/blowfish.c')
-rw-r--r-- | thirdparty/mbedtls/library/blowfish.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/thirdparty/mbedtls/library/blowfish.c b/thirdparty/mbedtls/library/blowfish.c index 9003f0dfeb..5b6bb9885f 100644 --- a/thirdparty/mbedtls/library/blowfish.c +++ b/thirdparty/mbedtls/library/blowfish.c @@ -34,16 +34,12 @@ #if defined(MBEDTLS_BLOWFISH_C) #include "mbedtls/blowfish.h" +#include "mbedtls/platform_util.h" #include <string.h> #if !defined(MBEDTLS_BLOWFISH_ALT) -/* Implementation that should never be optimized out by the compiler */ -static void mbedtls_zeroize( void *v, size_t n ) { - volatile unsigned char *p = (unsigned char*)v; while( n-- ) *p++ = 0; -} - /* * 32-bit integer manipulation macros (big endian) */ @@ -165,7 +161,7 @@ void mbedtls_blowfish_free( mbedtls_blowfish_context *ctx ) if( ctx == NULL ) return; - mbedtls_zeroize( ctx, sizeof( mbedtls_blowfish_context ) ); + mbedtls_platform_zeroize( ctx, sizeof( mbedtls_blowfish_context ) ); } /* |