diff options
author | Anatol Belski <ab@php.net> | 2014-09-19 01:59:55 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-19 01:59:55 +0200 |
commit | 55d5bace0e58a050c6f849a72f732ac6a26e46b1 (patch) | |
tree | e8e3336ef1534f484cf9b7aee19c95474e8468e1 /ext/hash/hash_ripemd.c | |
parent | c45f4f546180d5d4fa83bfcdaad94ec52c9cc274 (diff) | |
download | php-git-55d5bace0e58a050c6f849a72f732ac6a26e46b1.tar.gz |
more usages for ZEND_SECURE_ZERO()
Diffstat (limited to 'ext/hash/hash_ripemd.c')
-rw-r--r-- | ext/hash/hash_ripemd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/hash/hash_ripemd.c b/ext/hash/hash_ripemd.c index 0e0df3ac89..21cda2d712 100644 --- a/ext/hash/hash_ripemd.c +++ b/ext/hash/hash_ripemd.c @@ -650,7 +650,7 @@ PHP_HASH_API void PHP_RIPEMD128Final(unsigned char digest[16], PHP_RIPEMD128_CTX /* Zeroize sensitive information. */ - memset((unsigned char*) context, 0, sizeof(*context)); + ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); } /* }}} */ @@ -687,7 +687,7 @@ PHP_HASH_API void PHP_RIPEMD256Final(unsigned char digest[32], PHP_RIPEMD256_CTX /* Zeroize sensitive information. */ - memset((unsigned char*) context, 0, sizeof(*context)); + ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); } /* }}} */ @@ -724,7 +724,7 @@ PHP_HASH_API void PHP_RIPEMD160Final(unsigned char digest[20], PHP_RIPEMD160_CTX /* Zeroize sensitive information. */ - memset((unsigned char*) context, 0, sizeof(*context)); + ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); } /* }}} */ @@ -761,7 +761,7 @@ PHP_HASH_API void PHP_RIPEMD320Final(unsigned char digest[40], PHP_RIPEMD320_CTX /* Zeroize sensitive information. */ - memset((unsigned char*) context, 0, sizeof(*context)); + ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); } /* }}} */ |