summaryrefslogtreecommitdiff
path: root/ext/hash/php_hash_gost.h
diff options
context:
space:
mode:
authorManuel Mausz <manuel@mausz.at>2013-09-05 01:04:25 +0200
committerManuel Mausz <manuel@mausz.at>2013-09-05 01:04:25 +0200
commit8ca43527e8b7e076779560f1472518bd1fe4d6ca (patch)
treeae043c21b65727cd2c89f9f49e7a68649847025b /ext/hash/php_hash_gost.h
parent6ece5503942a1d8c4a78504161f9466e9e14fed2 (diff)
downloadphp-git-8ca43527e8b7e076779560f1472518bd1fe4d6ca.tar.gz
Add support for CryptoPro S-box for GOST
This adds a new hash identifier "gost-crypto" which uses the CryptoPro S-box tables as specified by RFC 4357, section 11.2.
Diffstat (limited to 'ext/hash/php_hash_gost.h')
-rw-r--r--ext/hash/php_hash_gost.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/hash/php_hash_gost.h b/ext/hash/php_hash_gost.h
index 6a4af310dc..a9c137530c 100644
--- a/ext/hash/php_hash_gost.h
+++ b/ext/hash/php_hash_gost.h
@@ -29,6 +29,7 @@ typedef struct {
php_hash_uint32 count[2];
unsigned char length;
unsigned char buffer[32];
+ const php_hash_uint32 (*tables)[4][256];
} PHP_GOST_CTX;
PHP_HASH_API void PHP_GOSTInit(PHP_GOST_CTX *);