| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/ |
| H A D | PublicKeyLoader.php | 30 * Loads a public or private key 33 * @param string|array $key 35 * @throws NoKeyLoadedException if key is not valid 37 public static function load($key, $password = false) argument 40 return EC::load($key, $password); 45 return RSA::load($key, $password); 50 return DSA::load($key, $password); 56 $x509->loadX509($key); 57 $key = $x509->getPublicKey(); 58 if ($key) { [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/ |
| H A D | JWK.php | 4 * JSON Web Key (RFC7517) Handler 19 * JSON Web Key Formatted Key Handler 26 * Break a public or private key down into its constituent components 28 * @param string $key 32 public static function load($key, $password = '') argument 34 if (!Strings::is_stringable($key)) { 35 throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); 38 $key = preg_replace('#\s#', '', $key); // remove whitespace 41 $key = json_decode($key, null, 512, JSON_THROW_ON_ERROR); 43 $key = json_decode($key); [all …]
|
| H A D | OpenSSH.php | 4 * OpenSSH Key Handler 24 * OpenSSH Formatted RSA Key Handler 35 protected static $comment = 'phpseclib-generated-key'; 38 * Binary key flag 55 * Break a public or private key down into its constituent components 59 * @param string $key 63 public static function load($key, $password = '') argument 65 if (!Strings::is_stringable($key)) { 66 throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); 69 // key format is described here: [all …]
|
| H A D | PuTTY.php | 4 * PuTTY Formatted Key Handler 25 * PuTTY Formatted Key Handler 36 private static $comment = 'phpseclib-generated-key'; 69 * Generate a symmetric key for PuTTY v2 keys 87 * Generate a symmetric key for PuTTY v3 keys 124 * Break a public or private key down into its constituent components 126 * @param string $key 130 public static function load($key, $password) argument 132 if (!Strings::is_stringable($key)) { 133 throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); [all …]
|
| H A D | PKCS1.php | 4 * PKCS1 Formatted Key Handler 25 * PKCS1 Formatted Key Handler 93 * Generate a symmetric key for PKCS#1 keys 111 * Break a public or private key down into its constituent components 113 * @param string $key 117 protected static function load($key, $password) argument 119 if (!Strings::is_stringable($key)) { 120 throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); 126 two new "fields" to the key - DEK-Info and Proc-Type. These fields are discussed here: 132 …ES-CBC and DES-EDE are discussed in RFC1423, however, DES-EDE3-CBC isn't, nor is its key derivation [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Keys/ |
| H A D | Raw.php | 4 * Raw DSA Key Handler 21 * Raw DSA Key Handler 28 * Break a public or private key down into its constituent components 30 * @param array $key 34 public static function load($key, $password = '') argument 36 if (!is_array($key)) { 37 throw new \UnexpectedValueException('Key should be a array - not a ' . gettype($key)); 41 case !isset($key['p']) || !isset($key['q']) || !isset($key['g']): 42 case !$key['p'] instanceof BigInteger: 43 case !$key['q'] instanceof BigInteger: [all …]
|
| H A D | PKCS1.php | 4 * PKCS#1 Formatted DSA Key Handler 12 * -----BEGIN DSA PRIVATE KEY----- 13 * -----BEGIN DSA PUBLIC KEY----- 19 * The DSA private key format seems to have been adapted from the RSA private key format so 37 * PKCS#1 Formatted DSA Key Handler 44 * Break a public or private key down into its constituent components 46 * @param string $key 50 public static function load($key, $password = '') argument 52 $key = parent::load($key, $password); 54 $decoded = ASN1::decodeBER($key); [all …]
|
| H A D | PKCS8.php | 4 * PKCS#8 Formatted DSA Key Handler 10 * -----BEGIN ENCRYPTED PRIVATE KEY----- 11 * -----BEGIN PRIVATE KEY----- 12 * -----BEGIN PUBLIC KEY----- 32 * PKCS#8 Formatted DSA Key Handler 60 * Break a public or private key down into its constituent components 62 * @param string $key 66 public static function load($key, $password = '') argument 68 $key = parent::load($key, $password); 70 $type = isset($key['privateKey']) ? 'privateKey' : 'publicKey'; [all …]
|
| H A D | XML.php | 4 * XML Formatted DSA Key Handler 6 * While XKMS defines a private key format for RSA it does not do so for DSA. Quoting that standard: 8 …* "[XKMS] does not specify private key parameters for the DSA signature algorithm since the algori… 9 …* supports signature modes and so the application of server generated keys and key recovery is of… 27 * XML Formatted DSA Key Handler 34 * Break a public or private key down into its constituent components 36 * @param string $key 40 public static function load($key, $password = '') argument 42 if (!Strings::is_stringable($key)) { 43 throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/ |
| H A D | PKCS1.php | 4 * PKCS#1 Formatted RSA Key Handler 12 * -----BEGIN RSA PRIVATE KEY----- 13 * -----BEGIN RSA PUBLIC KEY----- 32 * PKCS#1 Formatted RSA Key Handler 39 * Break a public or private key down into its constituent components 41 * @param string $key 45 public static function load($key, $password = '') argument 47 if (!Strings::is_stringable($key)) { 48 throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); 51 if (strpos($key, 'PUBLIC') !== false) { [all …]
|
| H A D | MSBLOB.php | 4 * Miccrosoft BLOB Formatted RSA Key Handler 25 * Microsoft BLOB Formatted RSA Key Handler 32 * Public/Private Key Pair 37 * Public Key 42 * Public Key 47 * RSA public key exchange algorithm 52 * RSA public key exchange algorithm 57 * Public Key 62 * Private Key 68 * Break a public or private key down into its constituent components [all …]
|
| H A D | PKCS8.php | 4 * PKCS#8 Formatted RSA Key Handler 12 * -----BEGIN ENCRYPTED PRIVATE KEY----- 13 * -----BEGIN PRIVATE KEY----- 14 * -----BEGIN PUBLIC KEY----- 33 * PKCS#8 Formatted RSA Key Handler 61 * Break a public or private key down into its constituent components 63 * @param string $key 67 public static function load($key, $password = '') argument 69 $key = parent::load($key, $password); 71 if (isset($key['privateKey'])) { [all …]
|
| H A D | Raw.php | 4 * Raw RSA Key Handler 29 * Raw RSA Key Handler 36 * Break a public or private key down into its constituent components 38 * @param string $key 42 public static function load($key, $password = '') argument 44 if (!is_array($key)) { 45 throw new \UnexpectedValueException('Key should be a array - not a ' . gettype($key)); 48 $key = array_change_key_case($key, CASE_LOWER); 53 if (isset($key[$index])) { 54 $components['publicExponent'] = $key[$index]; [all …]
|
| H A D | PSS.php | 4 * PKCS#8 Formatted RSA-PSS Key Handler 12 * -----BEGIN ENCRYPTED PRIVATE KEY----- 13 * -----BEGIN PRIVATE KEY----- 14 * -----BEGIN PUBLIC KEY----- 33 * PKCS#8 Formatted RSA-PSS Key Handler 92 * Break a public or private key down into its constituent components 94 * @param string $key 98 public static function load($key, $password = '') argument 102 if (!Strings::is_stringable($key)) { 103 throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/Cache/ |
| H A D | Psr16.php | 43 * public function get(string $key, mixed $default = null): mixed; 46 * @param string $key The unique key of this item in the cache. 47 * @param mixed $default Default value to return if the key does not exist. 52 * MUST be thrown if the $key string is not a legal value. 54 public function get_data(string $key, $default = null) argument 56 $data = $this->cache->get($key, $default); 66 … * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. 70 * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool; 73 * @param string $key The key of the item to store. 82 * MUST be thrown if the $key string is not a legal value. [all …]
|
| H A D | DataCache.php | 30 * public function get(string $key, mixed $default = null): mixed; 33 * @param string $key The unique key of this item in the cache. 34 * @param mixed $default Default value to return if the key does not exist. 39 * MUST be thrown if the $key string is not a legal value. 41 public function get_data(string $key, $default = null); argument 44 … * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. 48 * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool; 51 * @param string $key The key of the item to store. 60 * MUST be thrown if the $key string is not a legal value. 62 public function set_data(string $key, array $value, ?int $ttl = null): bool; argument [all …]
|
| H A D | BaseDataCache.php | 34 * public function get(string $key, mixed $default = null): mixed; 37 * @param string $key The unique key of this item in the cache. 38 * @param mixed $default Default value to return if the key does not exist. 43 * MUST be thrown if the $key string is not a legal value. 45 public function get_data(string $key, $default = null) argument 70 … * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. 74 * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool; 77 * @param string $key The key of the item to store. 86 * MUST be thrown if the $key string is not a legal value. 88 public function set_data(string $key, array $value, ?int $ttl = null): bool argument [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/ |
| H A D | PKCS8.php | 4 * PKCS#8 Formatted EC Key Handler 10 * -----BEGIN ENCRYPTED PRIVATE KEY----- 11 * -----BEGIN PRIVATE KEY----- 12 * -----BEGIN PUBLIC KEY----- 41 * PKCS#8 Formatted EC Key Handler 64 * Break a public or private key down into its constituent components 66 * @param string $key 70 public static function load($key, $password = '') argument 79 $key = parent::load($key, $password); 81 $type = isset($key['privateKey']) ? 'privateKey' : 'publicKey'; [all …]
|
| H A D | JWK.php | 4 * JSON Web Key (RFC7517 / RFC8037) Formatted EC Handler 38 * Break a public or private key down into its constituent components 40 * @param string $key 44 public static function load($key, $password = '') argument 46 $key = parent::load($key, $password); 48 switch ($key->kty) { 50 switch ($key->crv) { 57 …xception('Only P-256, P-384, P-521 and secp256k1 curves are accepted (' . $key->crv . ' provided)'… 61 switch ($key->crv) { 66 …nsupportedCurveException('Only Ed25519 and Ed448 curves are accepted (' . $key->crv . ' provided)'… [all …]
|
| H A D | PKCS1.php | 4 * "PKCS1" (RFC5915) Formatted EC Key Handler 12 * -----BEGIN EC PRIVATE KEY----- 39 * "PKCS1" (RFC5915) Formatted EC Key Handler 48 * Break a public or private key down into its constituent components 50 * @param string $key 54 public static function load($key, $password = '') argument 58 if (!Strings::is_stringable($key)) { 59 throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); 62 if (strpos($key, 'BEGIN EC PARAMETERS') && strpos($key, 'BEGIN EC PRIVATE KEY')) { 65 preg_match('#-*BEGIN EC PRIVATE KEY-*[^-]*-*END EC PRIVATE KEY-*#s', $key, $matches); [all …]
|
| H A D | libsodium.php | 4 * libsodium Key Handler 6 * Different NaCl implementations store the key differently. 25 * libsodium Key Handler 40 * Break a public or private key down into its constituent components 42 * @param string $key 46 public static function load($key, $password = '') argument 48 switch (strlen($key)) { 50 $public = $key; 53 $private = substr($key, 0, 32); 54 $public = substr($key, -32); [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/ |
| H A D | AsymmetricKey.php | 4 * Base Class for all asymmetric key ciphers 45 * Format of the loaded key 82 * Key Comment 134 * Load the key 136 * @param string $key 140 public static function load($key, $password = false) argument 155 $components = $format::load($key, $password); 165 throw new NoKeyLoadedException('Unable to read key'); 180 * Loads a private key 183 * @param string|array $key [all …]
|
| /dokuwiki/lib/plugins/config/core/ |
| H A D | Configuration.php | 110 foreach ($this->settings as $key => $obj) { 111 $value = $input[$key] ?? null; 169 foreach ($keys as $key) { 170 $obj = $this->instantiateClass($key); 172 if ($obj->shouldHaveDefault() && !isset($this->default[$key])) { 173 $this->undefined[$key] = new SettingNoDefault($key); 176 $d = $this->default[$key] ?? null; 177 $l = $this->local[$key] ?? null; 178 $p = $this->protected[$key] ?? null; 185 * Instantiates the proper class for the given config key [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/Formats/Keys/ |
| H A D | PKCS8.php | 4 * PKCS#8 Formatted DH Key Handler 10 * -----BEGIN ENCRYPTED PRIVATE KEY----- 11 * -----BEGIN PRIVATE KEY----- 12 * -----BEGIN PUBLIC KEY----- 28 * PKCS#8 Formatted DH Key Handler 56 * Break a public or private key down into its constituent components 58 * @param string $key 62 public static function load($key, $password = '') argument 64 $key = parent::load($key, $password); 66 $type = isset($key['privateKey']) ? 'privateKey' : 'publicKey'; [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent/ |
| H A D | Identity.php | 35 * methods phpseclib looks for to perform public key authentication. 50 * Key Object 55 private $key; variable in phpseclib3\\System\\SSH\\Agent\\Identity 58 * Key Blob 112 * Set Public Key 116 * @param PublicKey $key 118 public function withPublicKey(PublicKey $key) argument 120 if ($key instanceof EC) { 121 if (is_array($key->getCurve()) || !isset(self::$curveAliases[$key->getCurve()])) { 127 $new->key = $key; [all …]
|