php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
hash_whirlpool.c File Reference

Go to the source code of this file.

Macros

#define DIGESTBYTES   64
 
#define DIGESTBITS   (8*DIGESTBYTES) /* 512 */
 
#define WBLOCKBYTES   64
 
#define WBLOCKBITS   (8*WBLOCKBYTES) /* 512 */
 
#define LENGTHBYTES   32
 
#define LENGTHBITS   (8*LENGTHBYTES) /* 256 */
 

Functions

PHP_HASH_API void PHP_WHIRLPOOLInit (PHP_WHIRLPOOL_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args)
 
PHP_HASH_API void PHP_WHIRLPOOLUpdate (PHP_WHIRLPOOL_CTX *context, const unsigned char *input, size_t len)
 
PHP_HASH_API void PHP_WHIRLPOOLFinal (unsigned char digest[64], PHP_WHIRLPOOL_CTX *context)
 

Variables

const php_hash_ops php_hash_whirlpool_ops
 

Macro Definition Documentation

◆ DIGESTBITS

#define DIGESTBITS   (8*DIGESTBYTES) /* 512 */

Definition at line 29 of file hash_whirlpool.c.

◆ DIGESTBYTES

#define DIGESTBYTES   64

Definition at line 28 of file hash_whirlpool.c.

◆ LENGTHBITS

#define LENGTHBITS   (8*LENGTHBYTES) /* 256 */

Definition at line 35 of file hash_whirlpool.c.

◆ LENGTHBYTES

#define LENGTHBYTES   32

Definition at line 34 of file hash_whirlpool.c.

◆ WBLOCKBITS

#define WBLOCKBITS   (8*WBLOCKBYTES) /* 512 */

Definition at line 32 of file hash_whirlpool.c.

◆ WBLOCKBYTES

#define WBLOCKBYTES   64

Definition at line 31 of file hash_whirlpool.c.

Function Documentation

◆ PHP_WHIRLPOOLFinal()

PHP_HASH_API void PHP_WHIRLPOOLFinal ( unsigned char digest[64],
PHP_WHIRLPOOL_CTX * context )

Definition at line 373 of file hash_whirlpool.c.

◆ PHP_WHIRLPOOLInit()

PHP_HASH_API void PHP_WHIRLPOOLInit ( PHP_WHIRLPOOL_CTX * context,
ZEND_ATTRIBUTE_UNUSED HashTable * args )

Definition at line 266 of file hash_whirlpool.c.

◆ PHP_WHIRLPOOLUpdate()

PHP_HASH_API void PHP_WHIRLPOOLUpdate ( PHP_WHIRLPOOL_CTX * context,
const unsigned char * input,
size_t len )

Definition at line 271 of file hash_whirlpool.c.

Variable Documentation

◆ php_hash_whirlpool_ops

const php_hash_ops php_hash_whirlpool_ops
Initial value:
= {
"whirlpool",
php_whirlpool_unserialize,
64,
64,
1
}
PHP_HASH_API zend_result php_hash_serialize(const php_hashcontext_object *hash, zend_long *magic, zval *zv)
Definition hash.c:334
PHP_HASH_API zend_result php_hash_copy(const void *ops, const void *orig_context, void *dest_context)
Definition hash.c:124
PHP_HASH_API void PHP_WHIRLPOOLFinal(unsigned char digest[64], PHP_WHIRLPOOL_CTX *context)
PHP_HASH_API void PHP_WHIRLPOOLInit(PHP_WHIRLPOOL_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args)
PHP_HASH_API void PHP_WHIRLPOOLUpdate(PHP_WHIRLPOOL_CTX *context, const unsigned char *input, size_t len)
void(* php_hash_final_func_t)(unsigned char *digest, void *context)
Definition php_hash.h:36
void(* php_hash_init_func_t)(void *context, HashTable *args)
Definition php_hash.h:34
void(* php_hash_update_func_t)(void *context, const unsigned char *buf, size_t count)
Definition php_hash.h:35
#define PHP_WHIRLPOOL_SPEC

Definition at line 448 of file hash_whirlpool.c.