summaryrefslogtreecommitdiff
path: root/ext/hash/hash_snefru.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/hash/hash_snefru.c')
-rw-r--r--ext/hash/hash_snefru.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/hash/hash_snefru.c b/ext/hash/hash_snefru.c
index 931c31850c..c36d2791d4 100644
--- a/ext/hash/hash_snefru.c
+++ b/ext/hash/hash_snefru.c
@@ -129,7 +129,7 @@ static inline void SnefruTransform(PHP_SNEFRU_CTX *context, const unsigned char
((input[i+2] & 0xff) << 8) | (input[i+3] & 0xff);
}
Snefru(context->state);
- memset(&context->state[8], 0, sizeof(uint32_t) * 8);
+ ZEND_SECURE_ZERO(&context->state[8], sizeof(uint32_t) * 8);
}
PHP_HASH_API void PHP_SNEFRUInit(PHP_SNEFRU_CTX *context)