/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/ |
D | JWK.php | 16 use phpseclib3\Common\Functions\Strings; alias 49 $value = new BigInteger(Strings::base64url_decode($key->$var), 256); 111 'n' => Strings::base64url_encode($n->toBytes()), 112 'e' => Strings::base64url_encode($e->toBytes()), 113 'd' => Strings::base64url_encode($d->toBytes()), 114 'p' => Strings::base64url_encode($primes[1]->toBytes()), 115 'q' => Strings::base64url_encode($primes[2]->toBytes()), 116 'dp' => Strings::base64url_encode($exponents[1]->toBytes()), 117 'dq' => Strings::base64url_encode($exponents[2]->toBytes()), 118 'qi' => Strings::base64url_encode($coefficients[2]->toBytes()) [all …]
|
D | XML.php | 23 use phpseclib3\Common\Functions\Strings; alias 44 if (!Strings::is_stringable($key)) { 77 $value = new BigInteger(Strings::base64_decode($temp->item(0)->nodeValue), 256); 146 ' <Modulus>' . Strings::base64_encode($n->toBytes()) . "</Modulus>\r\n" . 147 ' <Exponent>' . Strings::base64_encode($e->toBytes()) . "</Exponent>\r\n" . 148 ' <P>' . Strings::base64_encode($primes[1]->toBytes()) . "</P>\r\n" . 149 ' <Q>' . Strings::base64_encode($primes[2]->toBytes()) . "</Q>\r\n" . 150 ' <DP>' . Strings::base64_encode($exponents[1]->toBytes()) . "</DP>\r\n" . 151 ' <DQ>' . Strings::base64_encode($exponents[2]->toBytes()) . "</DQ>\r\n" . 152 … ' <InverseQ>' . Strings::base64_encode($coefficients[2]->toBytes()) . "</InverseQ>\r\n" . [all …]
|
D | MSBLOB.php | 20 use phpseclib3\Common\Functions\Strings; alias 76 if (!Strings::is_stringable($key)) { 80 $key = Strings::base64_decode($key); 91 extract(unpack('atype/aversion/vreserved/Valgo', Strings::shift($key, 8))); 124 extract(unpack('Vmagic/Vbitlen/a4pubexp', Strings::shift($key, 12))); 147 $components['modulus'] = new BigInteger(strrev(Strings::shift($key, $bitlen / 8)), 256); 156 … $components['primes'] = [1 => new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256)]; 158 $components['primes'][] = new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256); 160 … $components['exponents'] = [1 => new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256)]; 162 … $components['exponents'][] = new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256); [all …]
|
D | PuTTY.php | 16 use phpseclib3\Common\Functions\Strings; alias 64 $result = Strings::unpackSSH2('ii', $public); 70 $result = Strings::unpackSSH2('iiii', $private); 104 $public = Strings::packSSH2('ii', $e, $n); 105 $private = Strings::packSSH2('iiii', $d, $primes[1], $primes[2], $coefficients[2]); 119 return self::wrapPublicKey(Strings::packSSH2('ii', $e, $n), 'ssh-rsa');
|
D | OpenSSH.php | 18 use phpseclib3\Common\Functions\Strings; alias 53 list($type) = Strings::unpackSSH2('s', $parsed['paddedKey']); 68 ) = Strings::unpackSSH2('i6s', $parsed['paddedKey']); 80 list($publicExponent, $modulus) = Strings::unpackSSH2('ii', $parsed['publicKey']); 100 $RSAPublicKey = Strings::packSSH2('sii', 'ssh-rsa', $e, $n); 128 …$privateKey = Strings::packSSH2('si6', 'ssh-rsa', $n, $e, $d, $coefficients[2], $primes[1], $prime…
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/ |
D | PuTTY.php | 16 use phpseclib3\Common\Functions\Strings; alias 66 …$temp = Strings::base64_encode(Strings::packSSH2('s', $components['type']) . $components['public']… 70 if (Strings::shift($private, 4) != "\0\0\0\x20") { 77 list($components['dA']) = Strings::unpackSSH2('i', $private); 101 $public = Strings::base64_decode($public[1]); 102 list(, $length) = unpack('N', Strings::shift($public, 4)); 103 Strings::shift($public, $length); 115 Strings::packSSH2('s', $secret) : 116 Strings::packSSH2('s', $private); 132 $public = Strings::base64_decode($public[1]); [all …]
|
D | JWK.php | 16 use phpseclib3\Common\Functions\Strings; alias 77 $QA = self::extractPoint(Strings::base64url_decode($key->x), $curve); 81 $arr = $curve->extractSecret(Strings::base64url_decode($key->d)); 86 $curve->convertInteger(new BigInteger(Strings::base64url_decode($key->x), 256)), 87 $curve->convertInteger(new BigInteger(Strings::base64url_decode($key->y), 256)) 98 $dA = new BigInteger(Strings::base64url_decode($key->d), 256); 143 'x' => Strings::base64url_encode($curve->encodePoint($publicKey)) 150 'x' => Strings::base64url_encode($publicKey[0]->toBytes()), 151 'y' => Strings::base64url_encode($publicKey[1]->toBytes()) 185 $key['d'] = Strings::base64url_encode($key['d']);
|
D | OpenSSH.php | 18 use phpseclib3\Common\Functions\Strings; alias 59 list($type) = Strings::unpackSSH2('s', $paddedKey); 64 list(, $key, $comment) = Strings::unpackSSH2('sss', $paddedKey); 69 … list($curveName, $publicKey, $privateKey, $comment) = Strings::unpackSSH2('ssis', $paddedKey); 81 if (Strings::shift($parsed['publicKey'], 4) != "\0\0\0\x20") { 88 list($curveName, $publicKey) = Strings::unpackSSH2('ss', $parsed['publicKey']); 147 $key = Strings::packSSH2('ss', 'ssh-ed25519', $curve->encodePoint($publicKey)); 160 $key = Strings::packSSH2('sss', 'ecdsa-sha2-' . $alias, $alias, $points); 194 $publicKey = Strings::packSSH2('ss', 'ssh-ed25519', $pubKey); 195 $privateKey = Strings::packSSH2('sss', 'ssh-ed25519', $pubKey, $secret . $pubKey); [all …]
|
D | XML.php | 21 use phpseclib3\Common\Functions\Strings; alias 64 if (!Strings::is_stringable($key)) { 167 return Strings::base64_decode(str_replace(["\r", "\n", ' ', "\t"], '', $value)); 403 …'<' . $pre . 'PublicKey>' . Strings::base64_encode($publicKey) . '</' . $pre . 'PublicKey>' . "\r\… 468 …'<' . $pre . 'P>' . Strings::base64_encode($temp['fieldID']['parameters']->toBytes()) . '</' . $pr… 476 … '<' . $pre . 'A>' . Strings::base64_encode($temp['curve']['a']) . '</' . $pre . 'A>' . "\r\n" . 477 … '<' . $pre . 'B>' . Strings::base64_encode($temp['curve']['b']) . '</' . $pre . 'B>' . "\r\n" . 479 … '<' . $pre . 'Base>' . Strings::base64_encode($temp['base']) . '</' . $pre . 'Base>' . "\r\n" . 480 … '<' . $pre . 'Order>' . Strings::base64_encode($temp['order']) . '</' . $pre . 'Order>' . "\r\n" .
|
D | Common.php | 16 use phpseclib3\Common\Functions\Strings; alias 252 Strings::bin2hex($data['curve']['a']), 253 Strings::bin2hex($data['curve']['b']) 298 if (($val = Strings::shift($str)) != "\0") { 299 …edValueException('extractPoint expects the first byte to be null - not ' . Strings::bin2hex($val)); 317 …eException('The first byte of an uncompressed point should be 04 - not ' . Strings::bin2hex($val));
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/ |
D | OpenSSH.php | 18 use phpseclib3\Common\Functions\Strings; alias 65 if (!Strings::is_stringable($key)) { 74 $key = Strings::base64_decode($key); 75 $magic = Strings::shift($key, 15); 79 list($ciphername, $kdfname, $kdfoptions, $numKeys) = Strings::unpackSSH2('sssN', $key); 93 list($salt, $rounds) = Strings::unpackSSH2('sN', $kdfoptions); 103 list($publicKey, $paddedKey) = Strings::unpackSSH2('ss', $key); 104 list($type) = Strings::unpackSSH2('s', $publicKey); 108 list($checkint1, $checkint2) = Strings::unpackSSH2('NN', $paddedKey); 136 list($type) = Strings::unpackSSH2('s', $key); [all …]
|
D | PuTTY.php | 18 use phpseclib3\Common\Functions\Strings; alias 81 $symkey .= Strings::hex2bin(sha1($temp)); 132 if (!Strings::is_stringable($key)) { 180 if (Strings::shift($key[0], strlen('PuTTY-User-Key-File-')) != 'PuTTY-User-Key-File-') { 183 …$version = (int) Strings::shift($key[0], 3); // should be either "2: " or "3: 0" prior to int cast… 198 …$public = Strings::base64_decode(implode('', array_map('trim', array_slice($key, 4, $publicLength)… 200 $source = Strings::packSSH2('ssss', $type, $encryption, $components['comment'], $public); 202 extract(unpack('Nlength', Strings::shift($public, 4))); 203 $newtype = Strings::shift($public, $length); 228 … $salt = Strings::hex2bin(trim(preg_replace('#Argon2-Salt: ([0-9a-f]+)#', '$1', $key[$offset++]))); [all …]
|
D | PKCS1.php | 16 use phpseclib3\Common\Functions\Strings; alias 119 if (!Strings::is_stringable($key)) { 139 $iv = Strings::hex2bin(trim($matches[2])); 177 chunk_split(Strings::base64_encode($key), 64) . 187 $iv = strtoupper(Strings::bin2hex($iv)); 192 chunk_split(Strings::base64_encode($cipher->encrypt($key)), 64) . 206 chunk_split(Strings::base64_encode($key), 64) .
|
D | JWK.php | 16 use phpseclib3\Common\Functions\Strings; alias 34 if (!Strings::is_stringable($key)) {
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Signature/ |
D | SSH2.php | 18 use phpseclib3\Common\Functions\Strings; alias 40 $result = Strings::unpackSSH2('ss', $sig); 55 $result = Strings::unpackSSH2('ii', $blob); 90 $blob = Strings::packSSH2('ii', $r, $s); 92 return Strings::packSSH2('ss', 'ecdsa-sha2-' . $curve, $blob);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Keys/ |
D | XML.php | 22 use phpseclib3\Common\Functions\Strings; alias 42 if (!Strings::is_stringable($key)) { 68 $value = new BigInteger(Strings::base64_decode($temp->item(0)->nodeValue), 256); 126 ' <P>' . Strings::base64_encode($p->toBytes()) . "</P>\r\n" . 127 ' <Q>' . Strings::base64_encode($q->toBytes()) . "</Q>\r\n" . 128 ' <G>' . Strings::base64_encode($g->toBytes()) . "</G>\r\n" . 129 ' <Y>' . Strings::base64_encode($y->toBytes()) . "</Y>\r\n" .
|
D | PuTTY.php | 21 use phpseclib3\Common\Functions\Strings; alias 62 list($p, $q, $g, $y) = Strings::unpackSSH2('iiii', $public); 63 list($x) = Strings::unpackSSH2('i', $private); 86 $public = Strings::packSSH2('iiii', $p, $q, $g, $y); 87 $private = Strings::packSSH2('i', $x); 107 return self::wrapPublicKey(Strings::packSSH2('iiii', $p, $q, $g, $y), 'ssh-dss');
|
D | OpenSSH.php | 18 use phpseclib3\Common\Functions\Strings; alias 48 list($type) = Strings::unpackSSH2('s', $parsed['paddedKey']); 53 list($p, $q, $g, $y, $x, $comment) = Strings::unpackSSH2('i5s', $parsed['paddedKey']); 58 list($p, $q, $g, $y) = Strings::unpackSSH2('iiii', $parsed['publicKey']); 87 $DSAPublicKey = Strings::packSSH2('siiii', 'ssh-dss', $p, $q, $g, $y); 114 $privateKey = Strings::packSSH2('si5', 'ssh-dss', $p, $q, $g, $y, $x);
|
D | PKCS1.php | 30 use phpseclib3\Common\Functions\Strings; alias 96 chunk_split(Strings::base64_encode($key), 64) .
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Signature/ |
D | SSH2.php | 18 use phpseclib3\Common\Functions\Strings; alias 40 $result = Strings::unpackSSH2('ss', $sig); 67 return Strings::packSSH2(
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/ |
D | SFTP.php | 36 use phpseclib3\Common\Functions\Strings; alias 556 $packet = Strings::packSSH2( 576 $packet = Strings::packSSH2( 607 list($this->defaultVersion) = Strings::unpackSSH2('N', $response); 609 list($key, $value) = Strings::unpackSSH2('ss', $response); 666 $packet = Strings::packSSH2('ss', 'version-select', "$ver"); 673 list($status) = Strings::unpackSSH2('N', $response); 806 list($status) = Strings::unpackSSH2('N', $response); 812 list($message) = Strings::unpackSSH2('s', $response); 870 $this->send_sftp_packet(NET_SFTP_REALPATH, Strings::packSSH2('s', $path)); [all …]
|
D | SSH2.php | 48 use phpseclib3\Common\Functions\Strings; alias 1284 if (Strings::is_stringable($host)) { 1653 $kexinit_payload_client .= Strings::packSSH2( 1688 Strings::shift($response, 1); // skip past the message number (it should be SSH_MSG_KEXINIT) 1689 $server_cookie = Strings::shift($response, 16); 1703 ) = Strings::unpackSSH2('L10C', $response); 1833 list($type, $primeBytes, $gBytes) = Strings::unpackSSH2('Css', $response); 1838 $exchange_hash_rfc4419 = $dh_group_sizes_packed . Strings::packSSH2( 1879 ) = Strings::unpackSSH2('Csss', $response); 1890 list($public_key_format) = Strings::unpackSSH2('s', $server_public_host_key); [all …]
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent/ |
D | Identity.php | 18 use phpseclib3\Common\Functions\Strings; alias 275 $packet = Strings::packSSH2( 282 $packet = Strings::packSSH2('s', $packet); 290 list($type, $signature_blob) = Strings::unpackSSH2('Cs', $packet); 299 list($type, $signature_blob) = Strings::unpackSSH2('ss', $signature_blob);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/ |
D | Agent.php | 35 use phpseclib3\Common\Functions\Strings; alias 173 list($type, $keyCount) = Strings::unpackSSH2('CN', $packet); 180 list($key_blob, $comment) = Strings::unpackSSH2('ss', $packet); 182 list($key_type) = Strings::unpackSSH2('s', $temp);
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/ |
D | BinaryField.php | 17 use phpseclib3\Common\Functions\Strings; alias 175 $str = Strings::bits2bin($x); 201 return Strings::bin2bits($x);
|