Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
hash /
Delete
Unzip
Name
Size
Permission
Date
Action
.libs
[ DIR ]
drwxr-xr-x
2024-03-12 14:26
sha3
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
tests
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
CREDITS
85
B
-rw-rw-r--
2022-10-31 11:36
bench.php
2.13
KB
-rwxrwxr-x
2022-10-31 11:36
config.m4
1.72
KB
-rw-rw-r--
2022-10-31 11:36
config.w32
1.25
KB
-rw-rw-r--
2022-10-31 11:36
hash.c
42.66
KB
-rw-rw-r--
2022-10-31 11:36
hash.lo
312
B
-rw-r--r--
2024-03-12 14:26
hash.o
220.61
KB
-rw-r--r--
2024-03-12 14:26
hash_adler32.c
2.53
KB
-rw-rw-r--
2022-10-31 11:36
hash_adler32.lo
336
B
-rw-r--r--
2024-03-12 14:26
hash_adler32.o
77.06
KB
-rw-r--r--
2024-03-12 14:26
hash_crc32.c
3.77
KB
-rw-rw-r--
2022-10-31 11:36
hash_crc32.lo
330
B
-rw-r--r--
2024-03-12 14:26
hash_crc32.o
82.4
KB
-rw-r--r--
2024-03-12 14:26
hash_fnv.c
5.86
KB
-rw-rw-r--
2022-10-31 11:36
hash_fnv.lo
324
B
-rw-r--r--
2024-03-12 14:26
hash_fnv.o
78.41
KB
-rw-r--r--
2024-03-12 14:26
hash_gost.c
11.11
KB
-rw-rw-r--
2022-10-31 11:36
hash_gost.lo
327
B
-rw-r--r--
2024-03-12 14:26
hash_gost.o
107.32
KB
-rw-r--r--
2024-03-12 14:26
hash_haval.c
18.89
KB
-rw-rw-r--
2022-10-31 11:36
hash_haval.lo
330
B
-rw-r--r--
2024-03-12 14:26
hash_haval.o
110.66
KB
-rw-r--r--
2024-03-12 14:26
hash_joaat.c
2.62
KB
-rw-rw-r--
2022-10-31 11:36
hash_joaat.lo
330
B
-rw-r--r--
2024-03-12 14:26
hash_joaat.o
73.61
KB
-rw-r--r--
2024-03-12 14:26
hash_md.c
20.1
KB
-rw-rw-r--
2022-10-31 11:36
hash_md.lo
321
B
-rw-r--r--
2024-03-12 14:26
hash_md.o
89.84
KB
-rw-r--r--
2024-03-12 14:26
hash_ripemd.c
24.14
KB
-rw-rw-r--
2022-10-31 11:36
hash_ripemd.lo
333
B
-rw-r--r--
2024-03-12 14:26
hash_ripemd.o
119.11
KB
-rw-r--r--
2024-03-12 14:26
hash_sha.c
34.74
KB
-rw-rw-r--
2022-10-31 11:36
hash_sha.lo
324
B
-rw-r--r--
2024-03-12 14:26
hash_sha.o
104.26
KB
-rw-r--r--
2024-03-12 14:26
hash_sha3.c
8.24
KB
-rw-rw-r--
2022-10-31 11:36
hash_sha3.lo
327
B
-rw-r--r--
2024-03-12 14:26
hash_sha3.o
79.13
KB
-rw-r--r--
2024-03-12 14:26
hash_snefru.c
5.77
KB
-rw-rw-r--
2022-10-31 11:36
hash_snefru.lo
333
B
-rw-r--r--
2024-03-12 14:26
hash_snefru.o
117.71
KB
-rw-r--r--
2024-03-12 14:26
hash_tiger.c
7.5
KB
-rw-rw-r--
2022-10-31 11:36
hash_tiger.lo
330
B
-rw-r--r--
2024-03-12 14:26
hash_tiger.o
133.93
KB
-rw-r--r--
2024-03-12 14:26
hash_whirlpool.c
15.55
KB
-rw-rw-r--
2022-10-31 11:36
hash_whirlpool.lo
342
B
-rw-r--r--
2024-03-12 14:26
hash_whirlpool.o
102.5
KB
-rw-r--r--
2024-03-12 14:26
php_hash.h
5.64
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_adler32.h
1.64
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_crc32.h
1.9
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_crc32_tables.h
10.42
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_fnv.h
2.76
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_gost.h
1.58
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_gost_tables.h
28.76
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_haval.h
2.18
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_joaat.h
1.52
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_md.h
3.75
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_ripemd.h
2.91
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_sha.h
4.03
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_sha3.h
2.34
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_snefru.h
1.66
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_snefru_tables.h
58.27
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_tiger.h
1.8
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_tiger_tables.h
41.31
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_whirlpool.h
1.59
KB
-rw-rw-r--
2022-10-31 11:36
php_hash_whirlpool_tables.h
53.86
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Author: Michael Maclean <mgdm@php.net> | +----------------------------------------------------------------------+ */ /* Based on the public domain algorithm found at http://www.isthe.com/chongo/tech/comp/fnv/index.html */ #include "php_hash.h" #include "php_hash_fnv.h" const php_hash_ops php_hash_fnv132_ops = { (php_hash_init_func_t) PHP_FNV132Init, (php_hash_update_func_t) PHP_FNV132Update, (php_hash_final_func_t) PHP_FNV132Final, (php_hash_copy_func_t) php_hash_copy, 4, 4, sizeof(PHP_FNV132_CTX), 0 }; const php_hash_ops php_hash_fnv1a32_ops = { (php_hash_init_func_t) PHP_FNV132Init, (php_hash_update_func_t) PHP_FNV1a32Update, (php_hash_final_func_t) PHP_FNV132Final, (php_hash_copy_func_t) php_hash_copy, 4, 4, sizeof(PHP_FNV132_CTX), 0 }; const php_hash_ops php_hash_fnv164_ops = { (php_hash_init_func_t) PHP_FNV164Init, (php_hash_update_func_t) PHP_FNV164Update, (php_hash_final_func_t) PHP_FNV164Final, (php_hash_copy_func_t) php_hash_copy, 8, 4, sizeof(PHP_FNV164_CTX), 0 }; const php_hash_ops php_hash_fnv1a64_ops = { (php_hash_init_func_t) PHP_FNV164Init, (php_hash_update_func_t) PHP_FNV1a64Update, (php_hash_final_func_t) PHP_FNV164Final, (php_hash_copy_func_t) php_hash_copy, 8, 4, sizeof(PHP_FNV164_CTX), 0 }; /* {{{ PHP_FNV132Init * 32-bit FNV-1 hash initialisation */ PHP_HASH_API void PHP_FNV132Init(PHP_FNV132_CTX *context) { context->state = PHP_FNV1_32_INIT; } /* }}} */ PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, size_t inputLen) { context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); } PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, size_t inputLen) { context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); } PHP_HASH_API void PHP_FNV132Final(unsigned char digest[4], PHP_FNV132_CTX * context) { #ifdef WORDS_BIGENDIAN memcpy(digest, &context->state, 4); #else int i = 0; unsigned char *c = (unsigned char *) &context->state; for (i = 0; i < 4; i++) { digest[i] = c[3 - i]; } #endif } /* {{{ PHP_FNV164Init * 64-bit FNV-1 hash initialisation */ PHP_HASH_API void PHP_FNV164Init(PHP_FNV164_CTX *context) { context->state = PHP_FNV1_64_INIT; } /* }}} */ PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, size_t inputLen) { context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); } PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, size_t inputLen) { context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); } PHP_HASH_API void PHP_FNV164Final(unsigned char digest[8], PHP_FNV164_CTX * context) { #ifdef WORDS_BIGENDIAN memcpy(digest, &context->state, 8); #else int i = 0; unsigned char *c = (unsigned char *) &context->state; for (i = 0; i < 8; i++) { digest[i] = c[7 - i]; } #endif } /* * fnv_32_buf - perform a 32 bit Fowler/Noll/Vo hash on a buffer * * input: * buf - start of buffer to hash * len - length of buffer in octets * hval - previous hash value or 0 if first call * alternate - if > 0 use the alternate version * * returns: * 32 bit hash as a static hash type */ static uint32_t fnv_32_buf(void *buf, size_t len, uint32_t hval, int alternate) { unsigned char *bp = (unsigned char *)buf; /* start of buffer */ unsigned char *be = bp + len; /* beyond end of buffer */ /* * FNV-1 hash each octet in the buffer */ if (alternate == 0) { while (bp < be) { /* multiply by the 32 bit FNV magic prime mod 2^32 */ hval *= PHP_FNV_32_PRIME; /* xor the bottom with the current octet */ hval ^= (uint32_t)*bp++; } } else { while (bp < be) { /* xor the bottom with the current octet */ hval ^= (uint32_t)*bp++; /* multiply by the 32 bit FNV magic prime mod 2^32 */ hval *= PHP_FNV_32_PRIME; } } /* return our new hash value */ return hval; } /* * fnv_64_buf - perform a 64 bit Fowler/Noll/Vo hash on a buffer * * input: * buf - start of buffer to hash * len - length of buffer in octets * hval - previous hash value or 0 if first call * alternate - if > 0 use the alternate version * * returns: * 64 bit hash as a static hash type */ static uint64_t fnv_64_buf(void *buf, size_t len, uint64_t hval, int alternate) { unsigned char *bp = (unsigned char *)buf; /* start of buffer */ unsigned char *be = bp + len; /* beyond end of buffer */ /* * FNV-1 hash each octet of the buffer */ if (alternate == 0) { while (bp < be) { /* multiply by the 64 bit FNV magic prime mod 2^64 */ hval *= PHP_FNV_64_PRIME; /* xor the bottom with the current octet */ hval ^= (uint64_t)*bp++; } } else { while (bp < be) { /* xor the bottom with the current octet */ hval ^= (uint64_t)*bp++; /* multiply by the 64 bit FNV magic prime mod 2^64 */ hval *= PHP_FNV_64_PRIME; } } /* return our new hash value */ return hval; }