Home
last modified time | relevance | path

Searched refs:hmac (Results 1 – 8 of 8) sorted by relevance

/dokuwiki/_test/tests/inc/
H A DPassHash.test.php14 … $this->assertEquals('df08aef118f36b32e29d2f47cda649b6', PassHash::hmac('md5','data','secret'));
15 …$this->assertEquals('9818e3306ba5ac267b5f2679fe4abd37e6cd7b54', PassHash::hmac('sha1','data','secr…
18 $this->assertEquals('74e6f7298a9c2d168935f58c001bad88', PassHash::hmac('md5','',''));
19 … $this->assertEquals('fbdb1d1b18aa6c08324b7d64b71fb76370690e1d', PassHash::hmac('sha1','',''));
20 …$this->assertEquals('80070713463e7749b90c2dc24911e275', PassHash::hmac('md5','The quick brown fox …
21 …$this->assertEquals('de7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9', PassHash::hmac('sha1','The quick b…
H A Dcommon_ml.test.php127 $hash = substr(\dokuwiki\PassHash::hmac('md5', $id, auth_cookiesalt()), 0, 6);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/
H A DAsymmetricKey.php63 private $hmac; variable in phpseclib3\\Crypt\\Common\\AsymmetricKey
109 $this->hmac = new Hash('sha256');
472 $new->hmac = new Hash($hash);
502 $this->hmac->setKey($k);
503 $k = $this->hmac->hash($v . "\0" . $x . $h1);
504 $this->hmac->setKey($k);
505 $v = $this->hmac->hash($v);
506 $k = $this->hmac->hash($v . "\1" . $x . $h1);
507 $this->hmac->setKey($k);
508 $v = $this->hmac->hash($v);
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/
H A DPuTTY.php262 $hmac = trim(preg_replace('#Private-MAC: (.+)#', '$1', $key[$offset + $privateLength]));
263 $hmac = Strings::hex2bin($hmac);
265 if (!hash_equals($hash->hash($source), $hmac)) {
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/
H A DSSH2.php3655 $hmac = Strings::pop($raw, $this->hmac_size);
3712 if ($hmac != $this->hmac_check->hash($reconstructed)) {
3717 … if ($hmac != $this->hmac_check->hash(pack('Na*', $this->get_seq_no, $reconstructed))) {
4370 $hmac = '';
4374 $hmac = $this->hmac_create->hash($packet);
4376 $hmac = $this->hmac_create->hash(pack('Na*', $this->send_seq_no, $packet));
4426 $hmac = $this->hmac_create->hash($packet);
4428 $hmac = $this->hmac_create->hash(pack('Na*', $this->send_seq_no, $packet));
4434 $packet .= $this->encrypt && $this->encrypt->usesNonce() ? $this->encrypt->getTag() : $hmac;
/dokuwiki/inc/
H A DPassHash.php837 public static function hmac($algo, $data, $key, $raw_output = false) function in dokuwiki\\PassHash
H A Dcommon.php119 return PassHash::hmac('md5', $session . $user, auth_cookiesalt());
H A Dmedia.php1872 return substr(PassHash::hmac('md5', $token, auth_cookiesalt()), 0, 6);