Home
last modified time | relevance | path

Searched refs:public_key (Results 1 – 12 of 12) sorted by relevance

/php-src/ext/openssl/
H A Dopenssl.stub.php433 /** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key */ argument
434 function openssl_x509_verify(OpenSSLCertificate|string $certificate, $public_key): int {}
501 /** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key */
502 function openssl_pkey_get_public($public_key): OpenSSLAsymmetricKey|false {}
505 * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
508 function openssl_get_publickey($public_key): OpenSSLAsymmetricKey|false {}
590 * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
596 * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
608 /** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key */
660 * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
[all …]
H A Dopenssl_arginfo.h29 ZEND_ARG_INFO(0, public_key)
132 ZEND_ARG_INFO(0, public_key)
266 ZEND_ARG_INFO(0, public_key)
273 ZEND_ARG_INFO(0, public_key)
290 ZEND_ARG_INFO(0, public_key)
298 ZEND_ARG_TYPE_INFO(0, public_key, IS_ARRAY, 0)
357 ZEND_ARG_TYPE_INFO(0, public_key, IS_STRING, 0)
362 ZEND_ARG_INFO(0, public_key)
H A Dopenssl.c659 zval *val, int public_key, char *passphrase, size_t passphrase_len, uint32_t arg_num);
3602 zval *val, int public_key, char *passphrase, size_t passphrase_len, uint32_t arg_num) in php_openssl_pkey_from_zval() argument
3655 if (!public_key && !is_priv) { in php_openssl_pkey_from_zval()
3660 if (public_key && is_priv) { in php_openssl_pkey_from_zval()
3694 if (public_key) { in php_openssl_pkey_from_zval()
3748 if (public_key && cert) { in php_openssl_pkey_from_zval()
/php-src/ext/openssl/tests/
H A Decc_sm2.phpt29 $public_key = openssl_pkey_get_public($details["key"]);
30 var_dump($public_key);
31 $details_public_key = openssl_pkey_get_details($public_key);
62 $public_key = openssl_pkey_get_public($details["key"]);
63 $details_public_key = openssl_pkey_get_details($public_key);
H A Dopenssl_seal_basic.phpt43 openssl_seal(): Argument #4 ($public_key) must not be empty
49 openssl_seal(): Argument #4 ($public_key) must not be empty
H A Dbug81713.phpt145 openssl_pkey_get_public(): Argument #1 ($public_key) must not contain any null bytes
150 openssl_pkey_derive(): Argument #1 ($public_key) must not contain any null bytes
154 openssl_public_encrypt(): Argument #3 ($public_key) must not contain any null bytes
155 openssl_public_decrypt(): Argument #3 ($public_key) must not contain any null bytes
157 openssl_verify(): Argument #3 ($public_key) must not contain any null bytes
158 openssl_seal(): Argument #4 ($public_key) must not contain any null bytes
178 openssl_x509_verify(): Argument #2 ($public_key) must not contain any null bytes
/php-src/ext/sodium/
H A Dlibsodium.stub.php739 function sodium_crypto_sign_ed25519_pk_to_curve25519(string $public_key): string {}
747 function sodium_crypto_sign_open(string $signed_message, string $public_key): string|false {}
757 function sodium_crypto_sign_verify_detached(string $signature, string $message, string $public_key)…
H A Dlibsodium_arginfo.h133 ZEND_ARG_TYPE_INFO(0, public_key, IS_STRING, 0)
152 ZEND_ARG_TYPE_INFO(0, public_key, IS_STRING, 0)
375 ZEND_ARG_TYPE_INFO(0, public_key, IS_STRING, 0)
386 ZEND_ARG_TYPE_INFO(0, public_key, IS_STRING, 0)
400 ZEND_ARG_TYPE_INFO(0, public_key, IS_STRING, 0)
/php-src/ext/pdo_mysql/
H A Dmysql_driver.c889 … zend_string *public_key = pdo_attr_strval(driver_options, PDO_MYSQL_ATTR_SERVER_PUBLIC_KEY, NULL); local
890 if (public_key) {
891 if (mysql_options(H->server, MYSQL_SERVER_PUBLIC_KEY, ZSTR_VAL(public_key))) {
893 zend_string_release_ex(public_key, 0);
896 zend_string_release_ex(public_key, 0);
/php-src/ext/mysqlnd/
H A Dmysqlnd_auth.c855 if (FAIL == PACKET_READ(conn, &pk_resp_packet) || NULL == pk_resp_packet.public_key) { in mysqlnd_sha256_get_rsa_key()
861 DBG_INF_FMT("Public key(%zu):\n%s", pk_resp_packet.public_key_len, pk_resp_packet.public_key); in mysqlnd_sha256_get_rsa_key()
863 …ret = mysqlnd_sha256_get_rsa_from_pem((const char *) pk_resp_packet.public_key, pk_resp_packet.pub… in mysqlnd_sha256_get_rsa_key()
1151 if (FAIL == PACKET_READ(conn, &pk_resp_packet) || NULL == pk_resp_packet.public_key) { in mysqlnd_caching_sha2_get_key()
1157 DBG_INF_FMT("Public key(%zu):\n%s", pk_resp_packet.public_key_len, pk_resp_packet.public_key); in mysqlnd_caching_sha2_get_key()
1159 …ret = mysqlnd_sha256_get_rsa_from_pem((const char *) pk_resp_packet.public_key, pk_resp_packet.pub… in mysqlnd_caching_sha2_get_key()
H A Dmysqlnd_wireprotocol.h276 zend_uchar *public_key; member
H A Dmysqlnd_wireprotocol.c2046 packet->public_key = mnd_emalloc(packet->public_key_len + 1); in php_mysqlnd_sha256_pk_request_response_read()
2047 memcpy(packet->public_key, p, packet->public_key_len); in php_mysqlnd_sha256_pk_request_response_read()
2048 packet->public_key[packet->public_key_len] = '\0'; in php_mysqlnd_sha256_pk_request_response_read()
2066 if (p->public_key) { in php_mysqlnd_sha256_pk_request_response_free_mem()
2067 mnd_efree(p->public_key); in php_mysqlnd_sha256_pk_request_response_free_mem()
2068 p->public_key = NULL; in php_mysqlnd_sha256_pk_request_response_free_mem()

Completed in 48 milliseconds