summaryrefslogtreecommitdiff
path: root/ext/hash/hash_sha.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-04-21 15:37:46 +0000
committerAntony Dovgal <tony2001@php.net>2008-04-21 15:37:46 +0000
commit7c98e674b59ae0bd2a2b146d34df2a4c176cfa14 (patch)
tree9aa562ffa4ec1f45636a034006f86916f9952364 /ext/hash/hash_sha.c
parent30437c12411a2ee8d6966d1a8197bd48847f3036 (diff)
downloadphp-git-7c98e674b59ae0bd2a2b146d34df2a4c176cfa14.tar.gz
[DOC] add hash_copy() to be able to copy hash resource
Diffstat (limited to 'ext/hash/hash_sha.c')
-rw-r--r--ext/hash/hash_sha.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/hash/hash_sha.c b/ext/hash/hash_sha.c
index 42f389238c..c70c320d62 100644
--- a/ext/hash/hash_sha.c
+++ b/ext/hash/hash_sha.c
@@ -70,6 +70,7 @@ const php_hash_ops php_hash_sha1_ops = {
(php_hash_init_func_t) PHP_SHA1Init,
(php_hash_update_func_t) PHP_SHA1Update,
(php_hash_final_func_t) PHP_SHA1Final,
+ (php_hash_copy_func_t) php_hash_copy,
20,
64,
sizeof(PHP_SHA1_CTX)
@@ -411,6 +412,7 @@ const php_hash_ops php_hash_sha256_ops = {
(php_hash_init_func_t) PHP_SHA256Init,
(php_hash_update_func_t) PHP_SHA256Update,
(php_hash_final_func_t) PHP_SHA256Final,
+ (php_hash_copy_func_t) php_hash_copy,
32,
64,
sizeof(PHP_SHA256_CTX)
@@ -806,6 +808,7 @@ const php_hash_ops php_hash_sha384_ops = {
(php_hash_init_func_t) PHP_SHA384Init,
(php_hash_update_func_t) PHP_SHA384Update,
(php_hash_final_func_t) PHP_SHA384Final,
+ (php_hash_copy_func_t) php_hash_copy,
48,
128,
sizeof(PHP_SHA384_CTX)
@@ -919,6 +922,7 @@ const php_hash_ops php_hash_sha512_ops = {
(php_hash_init_func_t) PHP_SHA512Init,
(php_hash_update_func_t) PHP_SHA512Update,
(php_hash_final_func_t) PHP_SHA512Final,
+ (php_hash_copy_func_t) php_hash_copy,
64,
128,
sizeof(PHP_SHA512_CTX)