Home
last modified time | relevance | path

Searched full:key (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DPublicKeyLoader.php30 * Loads a public or private key
33 * @param string|array $key
36 public static function load($key, $password = false) argument
39 return EC::load($key, $password);
44 return RSA::load($key, $password);
49 return DSA::load($key, $password);
55 $x509->loadX509($key);
56 $key = $x509->getPublicKey();
57 if ($key) {
58 return $key;
[all …]
H A DAES.php15 …* {@link self::setKey() setKey()}. ie. if the key is 128-bits, the key length will be 128-bits. …
16 …* it'll be null-padded to 192-bits and 192 bits will be the key length until {@link self::setKey()…
72 * Sets the key length
74 …* Valid key lengths are 128, 192, and 256. Set the link to bool(false) to disable a fixed key len…
78 * @throws \LengthException if the key length isn't supported
88 …throw new \LengthException('Key of size ' . $length . ' not supported by this algorithm. Only keys…
94 * Sets the key.
96 * Rijndael supports five different key lengths, AES only supports three.
100 * @param string $key
101 * @throws \LengthException if the key length isn't supported
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/Formats/Keys/
H A DJWK.php4 * 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 DOpenSSH.php4 * 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 DPuTTY.php4 * 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 DPKCS1.php4 * 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/RSA/Formats/Keys/
H A DPKCS1.php4 * 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 DMSBLOB.php4 * 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 DPKCS8.php4 * 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 DRaw.php4 * 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 DPSS.php4 * 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/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Keys/
H A DRaw.php4 * 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 DPKCS1.php4 * 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 DPKCS8.php4 * 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 DXML.php4 * 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/EC/Formats/Keys/
H A DPKCS8.php4 * PKCS#8 Formatted EC Key Handler
10 * -----BEGIN ENCRYPTED PRIVATE KEY-----
11 * -----BEGIN PRIVATE KEY-----
12 * -----BEGIN PUBLIC KEY-----
38 * PKCS#8 Formatted EC 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
76 $key = parent::load($key, $password);
78 $type = isset($key['privateKey']) ? 'privateKey' : 'publicKey';
[all …]
H A DJWK.php4 * 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 DPKCS1.php4 * "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 Dlibsodium.php4 * 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 …]
H A DOpenSSH.php4 * OpenSSH Formatted EC Key Handler
26 * OpenSSH Formatted EC Key Handler
35 * Supported Key Types
47 * Break a public or private key down into its constituent components
49 * @param string $key
53 public static function load($key, $password = '') argument
55 $parsed = parent::load($key, $password);
64 list(, $key, $comment) = Strings::unpackSSH2('sss', $paddedKey);
65 $key = libsodium::load($key);
66 $key['comment'] = $comment;
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/
H A DAsymmetricKey.php4 * Base Class for all asymmetric key ciphers
45 * Format of the loaded key
89 * Key Comment
129 * Load the key
131 * @param string $key
135 public static function load($key, $password = false) argument
150 $components = $format::load($key, $password);
160 throw new NoKeyLoadedException('Unable to read key');
175 * Loads a private key
178 * @param string|array $key
[all …]
/dokuwiki/lib/plugins/config/core/
H A DConfiguration.php110 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 DPKCS8.php4 * 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 DIdentity.php35 * 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 …]
/dokuwiki/vendor/simplepie/simplepie/src/Cache/
H A DPsr16.php81 * public function get(string $key, mixed $default = null): mixed;
84 * @param string $key The unique key of this item in the cache.
85 * @param mixed $default Default value to return if the key does not exist.
90 * MUST be thrown if the $key string is not a legal value.
92 public function get_data(string $key, $default = null) argument
94 $data = $this->cache->get($key, $default);
104 … * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
108 * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool;
111 * @param string $key The key of the item to store.
120 * MUST be thrown if the $key string is not a legal value.
[all …]

12345678910>>...12