Lines Matching refs:bits
151 int bits) { in PHP_SHA3_Init() argument
222 #define DECLARE_SHA3_OPS(bits) \ argument
223 void PHP_SHA3##bits##Init(PHP_SHA3_##bits##_CTX* ctx, ZEND_ATTRIBUTE_UNUSED HashTable *args) { \
224 PHP_SHA3_Init(ctx, bits); \
226 void PHP_SHA3##bits##Update(PHP_SHA3_##bits##_CTX* ctx, \
230 (1600 - (2 * bits)) >> 3); \
232 void PHP_SHA3##bits##Final(unsigned char* digest, \
233 PHP_SHA3_##bits##_CTX* ctx) { \
235 (1600 - (2 * bits)) >> 3, \
236 bits >> 3); \
238 static int php_sha3##bits##_unserialize(php_hashcontext_object *hash, \
241 return php_sha3_unserialize(hash, magic, zv, (1600 - (2 * bits)) >> 3); \
243 const php_hash_ops php_hash_sha3_##bits##_ops = { \
244 "sha3-" #bits, \
245 (php_hash_init_func_t) PHP_SHA3##bits##Init, \
246 (php_hash_update_func_t) PHP_SHA3##bits##Update, \
247 (php_hash_final_func_t) PHP_SHA3##bits##Final, \
250 php_sha3##bits##_unserialize, \
252 bits >> 3, \
253 (1600 - (2 * bits)) >> 3, \
254 sizeof(PHP_SHA3_##bits##_CTX), \
317 #define DECLARE_SHA3_OPS(bits) \ argument
318 void PHP_SHA3##bits##Init(PHP_SHA3_##bits##_CTX* ctx, ZEND_ATTRIBUTE_UNUSED HashTable *args) { \
319 ZEND_ASSERT(sizeof(Keccak_HashInstance) <= sizeof(PHP_SHA3_##bits##_CTX)); \
320 Keccak_HashInitialize_SHA3_##bits((Keccak_HashInstance *)ctx); \
322 void PHP_SHA3##bits##Update(PHP_SHA3_##bits##_CTX* ctx, \
327 void PHP_SHA3##bits##Final(unsigned char* digest, \
328 PHP_SHA3_##bits##_CTX* ctx) { \
331 const php_hash_ops php_hash_sha3_##bits##_ops = { \
332 "sha3-" #bits, \
333 (php_hash_init_func_t) PHP_SHA3##bits##Init, \
334 (php_hash_update_func_t) PHP_SHA3##bits##Update, \
335 (php_hash_final_func_t) PHP_SHA3##bits##Final, \
340 bits >> 3, \
341 (1600 - (2 * bits)) >> 3, \