diff options
Diffstat (limited to 'ext/hash/php_hash_sha3.h')
-rw-r--r-- | ext/hash/php_hash_sha3.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/hash/php_hash_sha3.h b/ext/hash/php_hash_sha3.h index 0608f4005e..f75191f339 100644 --- a/ext/hash/php_hash_sha3.h +++ b/ext/hash/php_hash_sha3.h @@ -1,7 +1,5 @@ /* +----------------------------------------------------------------------+ - | PHP Version 7 | - +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | @@ -26,9 +24,12 @@ typedef struct { unsigned char state[200]; // 5 * 5 * sizeof(uint64) uint32_t pos; #else - void *hashinstance; + unsigned char state[224]; // this must fit a Keccak_HashInstance #endif } PHP_SHA3_CTX; +#ifdef HAVE_SLOW_HASH3 +#define PHP_SHA3_SPEC "b200l." +#endif typedef PHP_SHA3_CTX PHP_SHA3_224_CTX; typedef PHP_SHA3_CTX PHP_SHA3_256_CTX; |