summaryrefslogtreecommitdiff
path: root/ext/hash/hash.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2015-01-03 01:22:58 -0800
committerStanislav Malyshev <stas@php.net>2015-01-10 15:07:38 -0800
commitb7a7b1a624c97945c0aaa49d46ae996fc0bdb6bc (patch)
tree0e09490075ee4f9a75a77ef4168d8ee254c52e5b /ext/hash/hash.c
parent773c8b0c092a0e9ad5c5548815bcb9991d54d5c1 (diff)
downloadphp-git-b7a7b1a624c97945c0aaa49d46ae996fc0bdb6bc.tar.gz
trailing whitespace removal
Diffstat (limited to 'ext/hash/hash.c')
-rw-r--r--ext/hash/hash.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/hash/hash.c b/ext/hash/hash.c
index 09dea0dda3..32c4200093 100644
--- a/ext/hash/hash.c
+++ b/ext/hash/hash.c
@@ -243,7 +243,7 @@ static void php_hash_do_hash_hmac(INTERNAL_FUNCTION_PARAMETERS, int isfilename,
void *context;
php_stream *stream = NULL;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "sss|b", &algo, &algo_len, &data, &data_len,
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "sss|b", &algo, &algo_len, &data, &data_len,
&key, &key_len, &raw_output) == FAILURE) {
return;
}
@@ -266,7 +266,7 @@ static void php_hash_do_hash_hmac(INTERNAL_FUNCTION_PARAMETERS, int isfilename,
K = emalloc(ops->block_size);
digest = zend_string_alloc(ops->digest_size, 0);
- php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len);
+ php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len);
if (isfilename) {
char buf[1024];
@@ -377,7 +377,7 @@ PHP_FUNCTION(hash_init)
} else {
memcpy(K, key, key_len);
}
-
+
/* XOR ipad */
for(i=0; i < ops->block_size; i++) {
K[i] ^= 0x36;
@@ -442,7 +442,7 @@ PHP_FUNCTION(hash_update_stream)
hash->ops->hash_update(hash->context, (unsigned char *) buf, n);
length -= n;
didread += n;
- }
+ }
RETURN_LONG(didread);
}
@@ -682,7 +682,7 @@ PHP_FUNCTION(hash_pbkdf2)
/* temp = digest */
memcpy(temp, digest, ops->digest_size);
- /*
+ /*
* Note that the loop starting at 1 is intentional, since we've already done
* the first round of the algorithm.
*/