Lines Matching defs:key
372 $key = substr($salt, 16, 2);
373 $hash1 = strtolower(md5($key . md5($clear)));
374 $hash2 = substr($hash1, 0, 16) . $key . substr($hash1, 16);
815 * @param string $key Shared secret key used for generating the HMAC variant of the message digest.
819 public static function hmac($algo, $data, $key, $raw_output = false)
823 return hash_hmac($algo, $data, $key, $raw_output);
832 if (strlen($key) > $size) {
833 $key = str_pad(pack($pack, $algo($key)), $size, chr(0x00));
835 $key = str_pad($key, $size, chr(0x00));
838 for ($i = 0; $i < strlen($key) - 1; $i++) {
839 $ochar = $opad[$i] ^ $key[$i];
840 $ichar = $ipad[$i] ^ $key[$i];