Lines Matching refs:key
51 * @param string $key
55 public static function load($key, $password = '') argument
57 $key = parent::load($key, $password);
59 $decoded = ASN1::decodeBER($key);
64 $key = ASN1::asn1map($decoded[0], Maps\DSAParams::MAP);
65 if (is_array($key)) {
66 return $key;
69 $key = ASN1::asn1map($decoded[0], Maps\DSAPrivateKey::MAP);
70 if (is_array($key)) {
71 return $key;
74 $key = ASN1::asn1map($decoded[0], Maps\DSAPublicKey::MAP);
75 if (is_array($key)) {
76 return $key;
93 $key = [
99 $key = ASN1::encodeDER($key, Maps\DSAParams::MAP);
102 chunk_split(Base64::encode($key), 64) .
121 $key = [
130 $key = ASN1::encodeDER($key, Maps\DSAPrivateKey::MAP);
132 return self::wrapPrivateKey($key, 'DSA', $password, $options);
147 $key = ASN1::encodeDER($y, Maps\DSAPublicKey::MAP);
149 return self::wrapPublicKey($key, 'DSA');