| /dokuwiki/_test/tests/inc/ |
| H A D | auth_password.test.php | 49 function test_cryptPassword($method, $hash) { argument 51 $hash, 61 function test_verifyPassword($method, $hash) { argument 62 $this->assertTrue(auth_verifyPassword('foo' . $method, $hash)); 63 $this->assertFalse(auth_verifyPassword('bar' . $method, $hash)); 71 function test_verifySelf($method, $hash) { argument 72 $hash = auth_cryptPassword('foo' . $method, $method); 73 $this->assertTrue(auth_verifyPassword('foo' . $method, $hash)); 81 function test_verifyUnusable($method, $hash) { argument 82 $hash = auth_cryptPassword(null, $method); [all …]
|
| /dokuwiki/inc/ |
| H A D | PassHash.php | 29 * @param string $hash Hash to compare against 32 public function verify_hash($clear, $hash) argument 39 if (str_starts_with($hash, 'U$')) { 42 $hash = substr($hash, 1); 45 $len = strlen($hash); 46 if (preg_match('/^\$1\$([^\$]{0,8})\$/', $hash, $m)) { 50 } elseif (preg_match('/^\$apr1\$([^\$]{0,8})\$/', $hash, $m)) { 54 } elseif (preg_match('/^\$S\$(.{52})$/', $hash, $m)) { 58 } elseif (preg_match('/^\$P\$(.{31})$/', $hash, $m)) { 62 } elseif (preg_match('/^\$H\$(.{31})$/', $hash, $m)) { [all …]
|
| H A D | JWT.php | 183 $hash = hash('sha256', $user); 184 $file = $conf['metadir'] . '/jwt/' . $hash[0] . '/' . $hash . '.token';
|
| /dokuwiki/inc/Remote/Response/ |
| H A D | Media.php | 23 public $hash; variable in dokuwiki\\Remote\\Response\\Media 39 * @param string $hash MD5 sum over the file's content 48 $hash = '', argument 58 $this->hash = $hash; 69 $this->hash = md5(io_readFile($this->file, false));
|
| H A D | Page.php | 23 public $hash; variable in dokuwiki\\Remote\\Response\\Page 39 * @param string $hash MD5 sum over the page's content 49 $hash = '', argument 57 $this->hash = $hash; 89 $this->hash = md5(trim(io_readFile($this->file)));
|
| H A D | PageHit.php | 17 public $hash; variable in dokuwiki\\Remote\\Response\\PageHit
|
| /dokuwiki/inc/File/ |
| H A D | PageResolver.php | 23 [$id, $hash] = sexplode('#', $id, 2); 24 $hash = cleanID($hash); 26 $hash = ''; 41 if ($hash !== '') $id .= "#$hash";
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Traits/ |
| H A D | Fingerprint.php | 48 $hash = new Hash('sha256'); 49 $base = base64_encode($hash->hash($key));
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/ |
| H A D | RSA.php | 485 $this->hLen = $this->hash->getLengthInBytes(); 536 $h = $this->hash->hash($m); 539 switch ($this->hash->getHash()) { 614 $h = $this->hash->hash($m); 617 switch ($this->hash->getHash()) { 690 $t .= $this->mgfHash->hash($mgfSeed . $c); 714 * @param string $hash 716 public function withHash($hash) argument 721 switch (strtolower($hash)) { 735 $new->hash = new Hash($hash); [all …]
|
| H A D | Hash.php | 209 * @param string $hash 211 public function __construct($hash = 'sha256') argument 213 $this->setHash($hash); 275 hash($this->algo, $this->key, true); 293 * @param string $hash 295 public function setHash($hash) argument 298 $this->hashParam = $hash = strtolower(str_replace('/', '-', $hash)); 299 switch ($hash) { 308 $this->length = abs(substr($hash, -3)) >> 3; 328 $hash = substr($hash, 0, -3); [all …]
|
| H A D | EC.php | 537 ->withHash($this->hash->getHash()) 611 * @param string $hash 613 public function withHash($hash) argument 618 if ($this->curve instanceof Ed25519 && $hash != 'sha512') { 621 if ($this->curve instanceof Ed448 && $hash != 'shake256-912') { 625 return parent::withHash($hash);
|
| H A D | DSA.php | 236 ->withHash($params->hash->getHash()) 255 ->withHash($params->hash->getHash()) 326 ->withHash($this->hash->getHash())
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/ |
| H A D | PuTTY.php | 245 $hash = new Hash('sha256'); 246 $hash->setKey($hashkey); 249 $hash = new Hash('sha1'); 250 $hash->setKey(sha1($hashkey, true)); 268 if (!hash_equals($hash->hash($source), $hmac)) { 309 $hash = new Hash('sha256'); 310 $hash->setKey(''); 313 $hash = new Hash('sha1'); 314 $hash->setKey(sha1('putty-private-key-file-mac-key', true)); 334 $hash = new Hash('sha256'); [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent/ |
| H A D | Identity.php | 161 * @param string $hash 163 public function withHash($hash) argument 167 $hash = strtolower($hash); 171 switch ($hash) { 197 if ($hash != $expectedHash) { 202 if ($hash != 'sha1') {
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/ |
| H A D | PublicKey.php | 56 if (in_array($this->hash->getHash(), openssl_get_md_methods())) { 59 … $result = openssl_verify($message, $sig, $this->toString('PKCS8'), $this->hash->getHash()); 65 …igurationException('Engine OpenSSL is forced but unsupported for DSA / ' . $this->hash->getHash()); 75 $h = $this->hash->hash($message);
|
| H A D | PrivateKey.php | 68 ->withHash($this->hash->getHash()) 92 if (in_array($this->hash->getHash(), openssl_get_md_methods())) { 94 … $result = openssl_sign($message, $signature, $this->toString('PKCS8'), $this->hash->getHash()); 110 …igurationException('Engine OpenSSL is forced but unsupported for DSA / ' . $this->hash->getHash()); 114 $h = $this->hash->hash($message);
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/ |
| H A D | PrivateKey.php | 180 $hash = new Hash($curve::HASH); 182 $secret = substr($hash->hash($this->secret), $curve::SIZE); 192 $r = $hash->hash($dom . $secret . $message); 198 $k = $hash->hash($dom . $R . $A . $message); 215 if (in_array($this->hash->getHash(), openssl_get_md_methods())) { 222 …nature, $this->withPassword()->toString('PKCS8', ['namedCurve' => false]), $this->hash->getHash()); 238 …urationException('Engine OpenSSL is forced but unsupported for ECDSA / ' . $this->hash->getHash()); 242 $e = $this->hash->hash($message); 245 $Ln = $this->hash->getLength() - $order->getLength(); 325 ->withHash($this->hash->getHash())
|
| H A D | PublicKey.php | 144 $hash = new Hash($curve::HASH); 145 $k = $hash->hash($dom2 . substr($signature, 0, $curve::SIZE) . $A . $message); 174 if (in_array($this->hash->getHash(), openssl_get_md_methods())) { 177 …_verify($message, $sig, $this->toString('PKCS8', ['namedCurve' => false]), $this->hash->getHash()); 186 …urationException('Engine OpenSSL is forced but unsupported for ECDSA / ' . $this->hash->getHash()); 197 $e = $this->hash->hash($message); 200 $Ln = $this->hash->getLength() - $order->getLength();
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/ |
| H A D | PublicKey.php | 205 $hash = $decoded['digestAlgorithm']['algorithm']; 206 $hash = substr($hash, 0, 3) == 'id-' ? 207 substr($hash, 3) : 208 $hash; 209 $hash = new Hash($hash); 210 $em = $hash->hash($m); 234 $mHash = $this->hash->hash($m); 258 $h2 = $this->hash->hash($m2); 426 $lHash = $this->hash->hash($this->label); 531 'hash' => $this->hash->getHash(), [all …]
|
| H A D | PrivateKey.php | 207 $mHash = $this->hash->hash($m); 214 $h = $this->hash->hash($m2); 382 $lHash = $this->hash->hash($this->label); 472 ->withHash($this->hash->getHash()) 497 'hash' => $this->hash->getHash(),
|
| /dokuwiki/inc/parser/ |
| H A D | renderer.php | 580 * @param string $hash hash link identifier 583 public function locallink($hash, $name = null) argument 898 [$name, $hash] = sexplode('#', $name, 2); 899 if ($hash) return $hash; 933 $hash = strrchr($reference, '#'); 934 if ($hash) { 935 $reference = substr($reference, 0, -strlen($hash)); 936 $hash = substr($hash, 1); 981 if ($hash) $url .= '#' . rawurlencode($hash);
|
| H A D | xhtml.php | 843 * @param string $hash hash link identifier 848 public function locallink($hash, $name = null, $returnonly = false) argument 851 $name = $this->_getLinkTitle($name, $hash, $isImage); 852 $hash = $this->_headerToLink($hash); 855 $doc = '<a href="#' . $hash . '" title="' . $title . '" class="wikilink1">'; 922 [$id, $hash] = sexplode('#', $id, 2); 923 if (!empty($hash)) $hash = $this->_headerToLink($hash); 950 if ($hash) $link['url'] .= '#' . $hash; 1197 [$src, $hash] = sexplode('#', $src, 2); 1236 if (!empty($hash)) $link['url'] .= '#' . $hash; [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/ |
| H A D | AsymmetricKey.php | 56 protected $hash; variable in phpseclib3\\Crypt\\Common\\AsymmetricKey 109 $this->hash = new Hash('sha256'); 476 * @param string $hash 478 public function withHash($hash) argument 482 $new->hash = new Hash($hash); 483 $new->hmac = new Hash($hash); 494 return clone $this->hash; 514 $k = $this->hmac->hash($v . "\0" . $x . $h1); 516 $v = $this->hmac->hash($v); 517 $k = $this->hmac->hash($v . "\1" . $x . $h1); [all …]
|
| /dokuwiki/inc/Remote/ |
| H A D | ApiCore.php | 244 * @param bool $hash Whether to include a MD5 hash of the page content 248 public function listPages($namespace = '', $depth = 1, $hash = false) argument 256 return $this->getAllPages($hash); 269 $opts['hash'] = $hash; 291 protected function getAllPages($hash = false) argument 304 if ($hash) $page->calculateHash(); 448 * @param bool $hash whether to include the MD5 hash of the page content 453 public function getPageInfo($page, $rev = 0, $author = false, $hash = false) argument 459 if ($hash) $result->calculateHash(); 750 * @param bool $hash Whether to include a MD5 hash of the media content [all …]
|
| /dokuwiki/_test/tests/test/ |
| H A D | edit_and_save.test.php | 86 $hash = strpos($found[0], '#'); 87 $headerID = substr($found[0], $hash); 169 $hash = strpos($found[0], '#'); 170 $headerID = substr($found[0], $hash);
|