Lines Matching refs:bits

151                           int bits) {  in PHP_SHA3_Init()  argument
221 #define DECLARE_SHA3_OPS(bits) \ argument
222 void PHP_SHA3##bits##Init(PHP_SHA3_##bits##_CTX* ctx, ZEND_ATTRIBUTE_UNUSED HashTable *args) { \
223 PHP_SHA3_Init(ctx, bits); \
225 void PHP_SHA3##bits##Update(PHP_SHA3_##bits##_CTX* ctx, \
229 (1600 - (2 * bits)) >> 3); \
231 void PHP_SHA3##bits##Final(unsigned char* digest, \
232 PHP_SHA3_##bits##_CTX* ctx) { \
234 (1600 - (2 * bits)) >> 3, \
235 bits >> 3); \
237 static int php_sha3##bits##_unserialize(php_hashcontext_object *hash, \
240 return php_sha3_unserialize(hash, magic, zv, (1600 - (2 * bits)) >> 3); \
242 const php_hash_ops php_hash_sha3_##bits##_ops = { \
243 "sha3-" #bits, \
244 (php_hash_init_func_t) PHP_SHA3##bits##Init, \
245 (php_hash_update_func_t) PHP_SHA3##bits##Update, \
246 (php_hash_final_func_t) PHP_SHA3##bits##Final, \
249 php_sha3##bits##_unserialize, \
251 bits >> 3, \
252 (1600 - (2 * bits)) >> 3, \
253 sizeof(PHP_SHA3_##bits##_CTX), \
316 #define DECLARE_SHA3_OPS(bits) \ argument
317 void PHP_SHA3##bits##Init(PHP_SHA3_##bits##_CTX* ctx, ZEND_ATTRIBUTE_UNUSED HashTable *args) { \
318 ZEND_ASSERT(sizeof(Keccak_HashInstance) <= sizeof(PHP_SHA3_##bits##_CTX)); \
319 Keccak_HashInitialize_SHA3_##bits((Keccak_HashInstance *)ctx); \
321 void PHP_SHA3##bits##Update(PHP_SHA3_##bits##_CTX* ctx, \
326 void PHP_SHA3##bits##Final(unsigned char* digest, \
327 PHP_SHA3_##bits##_CTX* ctx) { \
330 const php_hash_ops php_hash_sha3_##bits##_ops = { \
331 "sha3-" #bits, \
332 (php_hash_init_func_t) PHP_SHA3##bits##Init, \
333 (php_hash_update_func_t) PHP_SHA3##bits##Update, \
334 (php_hash_final_func_t) PHP_SHA3##bits##Final, \
339 bits >> 3, \
340 (1600 - (2 * bits)) >> 3, \