Lines Matching refs:hash

528      * "The exchange hash H from the first key exchange is additionally
540 * Exchange hash
542 * The current exchange hash
1862 $this->exchange_hash = $kexHash->hash($this->exchange_hash);
1920 $iv = $kexHash->hash($keyBytes . $this->exchange_hash . 'A' . $this->session_id);
1922 $iv .= $kexHash->hash($keyBytes . $this->exchange_hash . $iv);
1930 $nonce = $kexHash->hash($keyBytes . $this->exchange_hash . 'A' . $this->session_id);
1940 $key = $kexHash->hash($keyBytes . $this->exchange_hash . 'C' . $this->session_id);
1942 $key .= $kexHash->hash($keyBytes . $this->exchange_hash . $key);
1965 $iv = $kexHash->hash($keyBytes . $this->exchange_hash . 'B' . $this->session_id);
1967 $iv .= $kexHash->hash($keyBytes . $this->exchange_hash . $iv);
1976 $nonce = $kexHash->hash($keyBytes . $this->exchange_hash . 'B' . $this->session_id);
1986 $key = $kexHash->hash($keyBytes . $this->exchange_hash . 'D' . $this->session_id);
1988 $key .= $kexHash->hash($keyBytes . $this->exchange_hash . $key);
2024 $key = $kexHash->hash($keyBytes . $this->exchange_hash . 'E' . $this->session_id);
2026 $key .= $kexHash->hash($keyBytes . $this->exchange_hash . $key);
2045 $key = $kexHash->hash($keyBytes . $this->exchange_hash . 'F' . $this->session_id);
2047 $key .= $kexHash->hash($keyBytes . $this->exchange_hash . $key);
2660 $hash = 'sha512';
2664 $hash = 'sha256';
2669 $hash = 'sha1';
2677 $hash = 'sha512';
2681 $hash = 'sha256';
2685 $hash = 'sha384';
2689 $hash = 'sha512';
2700 $hash = 'sha1';
2747 $privatekey = $privatekey->withHash($hash);
3688 if ($hmac != $this->hmac_check->hash($reconstructed)) {
3693 if ($hmac != $this->hmac_check->hash(pack('Na*', $this->get_seq_no, $reconstructed))) {
4333 $hmac = $this->hmac_create->hash($packet);
4335 $hmac = $this->hmac_create->hash(pack('Na*', $this->send_seq_no, $packet));
4385 $hmac = $this->hmac_create->hash($packet);
4387 $hmac = $this->hmac_create->hash(pack('Na*', $this->send_seq_no, $packet));
4912 // (which is always gonna be super fast to compute thanks to the hash extension, which
5216 $hash = 'sha512';
5219 $hash = 'sha256';
5222 $hash = 'sha384';
5225 $hash = 'sha512';
5227 $key = $key->withHash($hash);
5246 $hash = 'sha512';
5249 $hash = 'sha256';
5253 $hash = 'sha1';
5255 $key = $key->withHash($hash);