Searched refs:ikm (Results 1 – 4 of 4) sorted by relevance
/php-src/ext/hash/tests/ |
H A D | hash_hkdf_basic.phpt | 8 $ikm = 'input key material'; 10 echo 'md2: ', bin2hex(hash_hkdf('md2', $ikm)), "\n"; 11 echo 'md4: ', bin2hex(hash_hkdf('md4', $ikm)), "\n"; 12 echo 'md5: ', bin2hex(hash_hkdf('md5', $ikm)), "\n"; 13 echo 'sha1: ', bin2hex(hash_hkdf('sha1', $ikm)), "\n"; 14 echo 'sha224: ', bin2hex(hash_hkdf('sha224', $ikm)), "\n"; 15 echo 'sha256: ', bin2hex(hash_hkdf('sha256', $ikm)), "\n"; 16 echo 'sha384: ', bin2hex(hash_hkdf('sha384', $ikm)), "\n"; 17 echo 'sha512: ', bin2hex(hash_hkdf('sha512', $ikm)), "\n"; 44 echo 'snefru: ', bin2hex(hash_hkdf('snefru', $ikm)), "\n"; [all …]
|
H A D | hash_hkdf_error.phpt | 19 $ikm = 'input key material'; 25 fn() => hash_hkdf('foo', $ikm) 30 fn() => hash_hkdf('adler32', $ikm), 31 fn() => hash_hkdf('crc32', $ikm), 32 fn() => hash_hkdf('crc32b', $ikm), 33 fn() => hash_hkdf('fnv132', $ikm), 34 fn() => hash_hkdf('fnv1a32', $ikm), 35 fn() => hash_hkdf('fnv164', $ikm), 36 fn() => hash_hkdf('fnv1a64', $ikm), 37 fn() => hash_hkdf('joaat', $ikm) [all …]
|
H A D | hash_hkdf_edges.phpt | 8 $ikm = 'input key material'; 10 echo 'Length < digestSize: ', bin2hex(hash_hkdf('md5', $ikm, 7)), "\n"; 11 echo 'Length % digestSize != 0: ', bin2hex(hash_hkdf('md5', $ikm, 17)), "\n"; 12 echo 'Algo name case-sensitivity: ', (bin2hex(hash_hkdf('Md5', $ikm, 7)) === '98b16391063ece' ? 'tr… 16 var_dump(hash_hkdf('jOaAt', $ikm));
|
/php-src/ext/hash/ |
H A D | hash.c | 898 zend_string *returnval, *ikm, *algo, *info = NULL, *salt = NULL; in PHP_FUNCTION() local 906 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|lSS", &algo, &ikm, &length, &info, &salt) == FAILUR… in PHP_FUNCTION() 916 if (ZSTR_LEN(ikm) == 0) { in PHP_FUNCTION() 940 php_hash_hmac_round(prk, ops, context, K, (unsigned char *) ZSTR_VAL(ikm), ZSTR_LEN(ikm)); in PHP_FUNCTION()
|
Completed in 12 milliseconds