Grokbase Groups PHP php-cvs July 2012
FAQ
Commit: 4918acccc6bd23f907b6712bdd04fcd265a411b0
Author: Anthony Ferrara <ircmaxell@gmail.com> Tue, 12 Jun 2012 14:09:16 -0400
Parents: 550253f6529bfa56e494505e6517500f98c7223a
Branches: master

Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4918acccc6bd23f907b6712bdd04fcd265a411b0

Log:
refactor away un-necessary casts in hashing routines

Changed paths:
M ext/hash/hash.c


Diff:
diff --git a/ext/hash/hash.c b/ext/hash/hash.c
index 7f0d36f..71f3753 100644
--- a/ext/hash/hash.c
+++ b/ext/hash/hash.c
@@ -222,8 +222,8 @@ static inline void php_hash_hmac_prep_key(unsigned char *K, const php_hash_ops *
if (key_len > ops->block_size) {
/* Reduce the key first */
ops->hash_init(context);
- ops->hash_update(context, (unsigned char *) key, key_len);
- ops->hash_final((unsigned char *) K, context);
+ ops->hash_update(context, key, key_len);
+ ops->hash_final(K, context);
} else {
memcpy(K, key, key_len);
}

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedJul 10, '12 at 4:01p
activeJul 10, '12 at 4:01p
posts1
users1
websitephp.net

1 user in discussion

Anthony Ferrara: 1 post

People

Translate

site design / logo © 2018 Grokbase