Lines Matching refs:pkey
42 private $pkey; variable in X509Certificate
73 if ($this->pkey !== null && $this->pkey !== false) {
74 openssl_pkey_free($this->pkey);
129 if ($this->pkey == null || $this->pkey === false) {
130 $this->pkey = openssl_pkey_get_public($this->cert);
133 return X509Certificate::verifyPublicKeySignature($this->pkey, $data, $sign, $algorithm);
170 if ($this->pkey === null || $this->pkey === false) {
171 $this->pkey = openssl_pkey_get_public($this->cert);
174 return $this->pkey;
231 * @param resource $pkey OpenSSL public key resource
234 public static function getPublicKeyHash($pkey) { argument
236 if (!is_resource($pkey)) {
240 $params = openssl_pkey_get_details($pkey);
263 * @param resource $pkey public key to use for verification
269 public static function verifyPublicKeySignature($pkey, $data, $sign, $algorithm = 'sha256') { argument
279 if (!is_resource($pkey)) {
286 return openssl_verify($data, $sign, $pkey, $algorithm) === 1;