Go to the source code of this file.
|
#define | save_abc |
|
#define | round(a, b, c, x, mul) |
|
#define | pass(a, b, c, mul) |
|
#define | key_schedule |
|
#define | feedforward |
|
#define | compress(passes) |
|
#define | split_ex(str) |
|
#define | split split_ex |
|
#define | tiger_compress(passes, str, state) |
|
#define | PHP_HASH_TIGER_OPS(p, b) |
|
|
PHP_HASH_API void | PHP_3TIGERInit (PHP_TIGER_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args) |
|
PHP_HASH_API void | PHP_4TIGERInit (PHP_TIGER_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args) |
|
PHP_HASH_API void | PHP_TIGERUpdate (PHP_TIGER_CTX *context, const unsigned char *input, size_t len) |
|
PHP_HASH_API void | PHP_TIGER128Final (unsigned char digest[16], PHP_TIGER_CTX *context) |
|
PHP_HASH_API void | PHP_TIGER160Final (unsigned char digest[20], PHP_TIGER_CTX *context) |
|
PHP_HASH_API void | PHP_TIGER192Final (unsigned char digest[24], PHP_TIGER_CTX *context) |
|
| PHP_HASH_TIGER_OPS (3, 128) |
|
| PHP_HASH_TIGER_OPS (3, 160) |
|
| PHP_HASH_TIGER_OPS (3, 192) |
|
| PHP_HASH_TIGER_OPS (4, 128) |
|
| PHP_HASH_TIGER_OPS (4, 160) |
|
| PHP_HASH_TIGER_OPS (4, 192) |
|
◆ compress
Value: save_abc \
key_schedule \
key_schedule \
for(pass_no=0; pass_no<passes; pass_no++) { \
key_schedule \
tmpa=
a;
a=c; c=b; b=tmpa; \
} \
Definition at line 83 of file hash_tiger.c.
◆ feedforward
◆ key_schedule
Value: x0 -= x7 ^
L64(0xA5A5A5A5A5A5A5A5); \
x1 ^= x0; \
x2 += x1; \
x3 -= x2 ^ ((~x1)<<19); \
x4 ^= x3; \
x5 += x4; \
x6 -= x5 ^ ((~x4)>>23); \
x7 ^= x6; \
x0 += x7; \
x1 -= x0 ^ ((~x7)<<19); \
x2 ^= x1; \
x3 += x2; \
x4 -= x3 ^ ((~x2)>>23); \
x5 ^= x4; \
x6 += x5; \
x7 -= x6 ^
L64(0x0123456789ABCDEF);
Definition at line 60 of file hash_tiger.c.
◆ pass
Value:
#define round(tables, k1, k2)
Definition at line 50 of file hash_tiger.c.
◆ PHP_HASH_TIGER_OPS
#define PHP_HASH_TIGER_OPS |
( |
| p, |
|
|
| b ) |
Value:
php_tiger_unserialize, \
b/8, \
64, \
1 \
}
PHP_HASH_API zend_result php_hash_serialize(const php_hashcontext_object *hash, zend_long *magic, zval *zv)
PHP_HASH_API zend_result php_hash_copy(const void *ops, const void *orig_context, void *dest_context)
PHP_HASH_API void PHP_TIGERUpdate(PHP_TIGER_CTX *context, const unsigned char *input, size_t len)
void(* php_hash_final_func_t)(unsigned char *digest, void *context)
void(* php_hash_init_func_t)(void *context, HashTable *args)
void(* php_hash_update_func_t)(void *context, const unsigned char *buf, size_t count)
struct _php_hash_ops php_hash_ops
Definition at line 255 of file hash_tiger.c.
◆ round
Value: c ^= x; \
a -=
t1[(
unsigned char)(c)] ^ \
t2[(
unsigned char)(((uint32_t)(c))>>(2*8))] ^ \
t3[(
unsigned char)((c)>>(4*8))] ^ \
t4[(
unsigned char)(((uint32_t)((c)>>(4*8)))>>(2*8))] ; \
b +=
t4[(
unsigned char)(((uint32_t)(c))>>(1*8))] ^ \
t3[(
unsigned char)(((uint32_t)(c))>>(3*8))] ^ \
t2[(
unsigned char)(((uint32_t)((c)>>(4*8)))>>(1*8))] ^ \
t1[(
unsigned char)(((uint32_t)((c)>>(4*8)))>>(3*8))]; \
b *= mul;
Definition at line 38 of file hash_tiger.c.
◆ save_abc
◆ split
◆ split_ex
Value: x0=str[0]; x1=str[1]; x2=str[2]; x3=str[3]; \
x4=str[4]; x5=str[5]; x6=str[6]; x7=str[7];
Definition at line 97 of file hash_tiger.c.
◆ tiger_compress
Value:{ \
register uint64_t
a, b, c, tmpa, x0, x1, x2, x3, x4, x5, x6, x7; \
uint64_t aa, bb, cc; \
unsigned int pass_no; \
\
\
split(str); \
\
compress(passes); \
\
}
Definition at line 115 of file hash_tiger.c.
◆ PHP_3TIGERInit()
◆ PHP_4TIGERInit()
◆ PHP_HASH_TIGER_OPS() [1/6]
PHP_HASH_TIGER_OPS |
( |
3 | , |
|
|
128 | ) |
◆ PHP_HASH_TIGER_OPS() [2/6]
PHP_HASH_TIGER_OPS |
( |
3 | , |
|
|
160 | ) |
◆ PHP_HASH_TIGER_OPS() [3/6]
PHP_HASH_TIGER_OPS |
( |
3 | , |
|
|
192 | ) |
◆ PHP_HASH_TIGER_OPS() [4/6]
PHP_HASH_TIGER_OPS |
( |
4 | , |
|
|
128 | ) |
◆ PHP_HASH_TIGER_OPS() [5/6]
PHP_HASH_TIGER_OPS |
( |
4 | , |
|
|
160 | ) |
◆ PHP_HASH_TIGER_OPS() [6/6]
PHP_HASH_TIGER_OPS |
( |
4 | , |
|
|
192 | ) |
◆ PHP_TIGER128Final()
◆ PHP_TIGER160Final()
◆ PHP_TIGER192Final()
◆ PHP_TIGERUpdate()