From 43eb8dc04af1480b3caa62d252ede28dcb059c7b Mon Sep 17 00:00:00 2001 From: Anthony Ferrara Date: Tue, 12 Jun 2012 14:32:21 -0400 Subject: Remove un-needed memset, and replacing stray spaces --- ext/hash/hash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/hash') diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 40023f75b8..74c86a8714 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -652,7 +652,6 @@ PHP_FUNCTION(hash_pbkdf2) temp = emalloc(ops->digest_size); /* Setup Keys that will be used for all hmac rounds */ - memset(K2, 0, ops->block_size); php_hash_hmac_prep_key(K1, ops, context, (unsigned char *) pass, pass_len); /* Convert K1 to opad -- 0x6A = 0x36 ^ 0x5C */ php_hash_string_xor_char(K2, K1, 0x6A, ops->block_size); @@ -661,7 +660,7 @@ PHP_FUNCTION(hash_pbkdf2) if (length == 0) { length = ops->digest_size; } - digest_length = length; + digest_length = length; if (!raw_output) { digest_length = (long) ceil((float) length / 2.0); } -- cgit v1.2.1