/php-src/ext/standard/ |
H A D | crypt.c | 99 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); in php_crypt() 104 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); in php_crypt() 114 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); in php_crypt() 119 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN); in php_crypt() 134 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN + 1); in php_crypt() 138 ZEND_SECURE_ZERO(output, PHP_MAX_SALT_LEN + 1); in php_crypt()
|
H A D | php_crypt_r.c | 148 ZEND_SECURE_ZERO(final, sizeof(final)); in php_md5_crypt_r() 202 ZEND_SECURE_ZERO(final, sizeof(final)); in php_md5_crypt_r()
|
H A D | crypt_sha256.c | 565 ZEND_SECURE_ZERO(temp_result, sizeof(temp_result)); in php_sha256_crypt_r() 566 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha256_crypt_r() 567 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha256_crypt_r() 568 ZEND_SECURE_ZERO(&ctx, sizeof(ctx)); in php_sha256_crypt_r() 569 ZEND_SECURE_ZERO(&alt_ctx, sizeof(alt_ctx)); in php_sha256_crypt_r() 572 ZEND_SECURE_ZERO(copied_key, key_len); in php_sha256_crypt_r() 575 ZEND_SECURE_ZERO(copied_salt, salt_len); in php_sha256_crypt_r()
|
H A D | crypt_sha512.c | 617 ZEND_SECURE_ZERO(temp_result, sizeof(temp_result)); in php_sha512_crypt_r() 618 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha512_crypt_r() 619 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha512_crypt_r() 620 ZEND_SECURE_ZERO(&ctx, sizeof(ctx)); in php_sha512_crypt_r() 621 ZEND_SECURE_ZERO(&alt_ctx, sizeof(alt_ctx)); in php_sha512_crypt_r() 623 ZEND_SECURE_ZERO(copied_key, key_len); in php_sha512_crypt_r() 626 ZEND_SECURE_ZERO(copied_salt, salt_len); in php_sha512_crypt_r()
|
H A D | sha1.c | 244 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_SHA1Final() 353 ZEND_SECURE_ZERO((unsigned char*) x, sizeof(x)); in SHA1Transform()
|
H A D | md5.c | 387 ZEND_SECURE_ZERO(ctx, sizeof(*ctx)); in PHP_MD5Final()
|
/php-src/ext/hash/ |
H A D | hash_tiger.c | 206 ZEND_SECURE_ZERO(context->buffer, 64); in PHP_TIGERUpdate() 215 ZEND_SECURE_ZERO(&context->buffer[r], 64-r); in PHP_TIGERUpdate() 225 ZEND_SECURE_ZERO(context, sizeof(*context)); in PHP_TIGER128Final() 232 ZEND_SECURE_ZERO(context, sizeof(*context)); in PHP_TIGER160Final() 239 ZEND_SECURE_ZERO(context, sizeof(*context)); in PHP_TIGER192Final()
|
H A D | hash_haval.c | 167 ZEND_SECURE_ZERO((unsigned char*) x, sizeof(x)); in PHP_3HAVALTransform() 203 ZEND_SECURE_ZERO((unsigned char*) x, sizeof(x)); in PHP_4HAVALTransform() 241 ZEND_SECURE_ZERO((unsigned char*) x, sizeof(x)); in PHP_5HAVALTransform() 367 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_HAVAL128Final() 420 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_HAVAL160Final() 459 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_HAVAL192Final() 499 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_HAVAL224Final() 532 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_HAVAL256Final()
|
H A D | hash_snefru.c | 128 ZEND_SECURE_ZERO(&context->state[8], sizeof(uint32_t) * 8); in SnefruTransform() 165 ZEND_SECURE_ZERO(&context->buffer[r], 32 - r); in PHP_SNEFRUUpdate() 189 ZEND_SECURE_ZERO(context, sizeof(*context)); in PHP_SNEFRUFinal()
|
H A D | hash_sha.c | 178 ZEND_SECURE_ZERO((unsigned char*) tmp32, sizeof(tmp32)); in SHA256Transform() 214 ZEND_SECURE_ZERO((unsigned char*) x, sizeof(x)); in SHA256Transform() 311 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_SHA224Final() 389 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_SHA256Final() 526 ZEND_SECURE_ZERO((unsigned char*) x, sizeof(x)); in SHA512Transform() 611 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_SHA384Final() 768 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_SHA512Final()
|
H A D | hash_ripemd.c | 263 ZEND_SECURE_ZERO(x, sizeof(x)); in RIPEMD128Transform() 362 ZEND_SECURE_ZERO(x, sizeof(x)); in RIPEMD256Transform() 462 ZEND_SECURE_ZERO(x, sizeof(x)); in RIPEMD160Transform() 571 ZEND_SECURE_ZERO(x, sizeof(x)); in RIPEMD320Transform() 673 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_RIPEMD128Final() 710 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_RIPEMD256Final() 747 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_RIPEMD160Final() 784 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_RIPEMD320Final()
|
H A D | hash.c | 559 ZEND_SECURE_ZERO(K, ops->block_size); in php_hash_do_hash_hmac() 813 ZEND_SECURE_ZERO(hash->key, hash->ops->block_size); in PHP_FUNCTION() 943 ZEND_SECURE_ZERO(K, ops->block_size); in PHP_FUNCTION() 976 ZEND_SECURE_ZERO(K, ops->block_size); in PHP_FUNCTION() 977 ZEND_SECURE_ZERO(digest, ops->digest_size); in PHP_FUNCTION() 978 ZEND_SECURE_ZERO(prk, ops->digest_size); in PHP_FUNCTION() 1090 ZEND_SECURE_ZERO(K1, ops->block_size); in PHP_FUNCTION() 1091 ZEND_SECURE_ZERO(K2, ops->block_size); in PHP_FUNCTION() 1092 ZEND_SECURE_ZERO(computed_salt, salt_len + 4); in PHP_FUNCTION() 1350 ZEND_SECURE_ZERO(key, bytes); in PHP_FUNCTION() [all …]
|
H A D | hash_whirlpool.c | 263 ZEND_SECURE_ZERO(state, sizeof(state)); in WhirlpoolTransform() 429 ZEND_SECURE_ZERO(context, sizeof(*context)); in PHP_WHIRLPOOLFinal()
|
H A D | hash_gost.c | 279 ZEND_SECURE_ZERO(&context->buffer[r], 32 - r); in PHP_GOSTUpdate() 304 ZEND_SECURE_ZERO(context, sizeof(*context)); in PHP_GOSTFinal()
|
H A D | hash_sha3.c | 200 ZEND_SECURE_ZERO(ctx, sizeof(PHP_SHA3_CTX)); in PHP_SHA3_Final()
|
H A D | hash_md.c | 267 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_MD4Final()
|
/php-src/Zend/ |
H A D | zend_portability.h | 497 #define ZEND_SECURE_ZERO(var, size) RtlSecureZeroMemory((var), (size)) macro 499 #define ZEND_SECURE_ZERO(var, size) explicit_bzero((var), (size)) macro
|