Lines Matching refs:server_public_key
702 mysqlnd_sha256_public_encrypt(MYSQLND_CONN_DATA * conn, mysqlnd_rsa_t server_public_key, size_t pas… in mysqlnd_sha256_public_encrypt() argument
705 size_t server_public_key_len = (size_t) EVP_PKEY_size(server_public_key); in mysqlnd_sha256_public_encrypt()
715 EVP_PKEY_free(server_public_key); in mysqlnd_sha256_public_encrypt()
723 EVP_PKEY_CTX *ctx = EVP_PKEY_CTX_new(server_public_key, NULL); in mysqlnd_sha256_public_encrypt()
732 EVP_PKEY_free(server_public_key); in mysqlnd_sha256_public_encrypt()
782 mysqlnd_sha256_public_encrypt(MYSQLND_CONN_DATA * conn, mysqlnd_rsa_t server_public_key, size_t pas… in mysqlnd_sha256_public_encrypt() argument
792 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_sha256_public_encrypt()
804 BCryptDestroyKey((BCRYPT_KEY_HANDLE) server_public_key); in mysqlnd_sha256_public_encrypt()
812 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_sha256_public_encrypt()
814 BCryptDestroyKey((BCRYPT_KEY_HANDLE) server_public_key); in mysqlnd_sha256_public_encrypt()
817 BCryptDestroyKey((BCRYPT_KEY_HANDLE) server_public_key); in mysqlnd_sha256_public_encrypt()
906 mysqlnd_rsa_t server_public_key; in mysqlnd_sha256_auth_get_auth_data() local
923 server_public_key = mysqlnd_sha256_get_rsa_key(conn, session_options, pfc_data); in mysqlnd_sha256_auth_get_auth_data()
925 if (server_public_key) { in mysqlnd_sha256_auth_get_auth_data()
934 ret = mysqlnd_sha256_public_encrypt(conn, server_public_key, passwd_len, auth_data_len, xor_str); in mysqlnd_sha256_auth_get_auth_data()
1010 mysqlnd_caching_sha2_public_encrypt(MYSQLND_CONN_DATA * conn, mysqlnd_rsa_t server_public_key, size… in mysqlnd_caching_sha2_public_encrypt() argument
1012 size_t server_public_key_len = (size_t) EVP_PKEY_size(server_public_key); in mysqlnd_caching_sha2_public_encrypt()
1022 EVP_PKEY_free(server_public_key); in mysqlnd_caching_sha2_public_encrypt()
1029 EVP_PKEY_CTX *ctx = EVP_PKEY_CTX_new(server_public_key, NULL); in mysqlnd_caching_sha2_public_encrypt()
1037 EVP_PKEY_free(server_public_key); in mysqlnd_caching_sha2_public_encrypt()
1046 mysqlnd_caching_sha2_public_encrypt(MYSQLND_CONN_DATA * conn, mysqlnd_rsa_t server_public_key, size… in mysqlnd_caching_sha2_public_encrypt() argument
1055 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_caching_sha2_public_encrypt()
1067 BCryptDestroyKey((BCRYPT_KEY_HANDLE) server_public_key); in mysqlnd_caching_sha2_public_encrypt()
1074 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_caching_sha2_public_encrypt()
1076 BCryptDestroyKey((BCRYPT_KEY_HANDLE) server_public_key); in mysqlnd_caching_sha2_public_encrypt()
1079 BCryptDestroyKey((BCRYPT_KEY_HANDLE) server_public_key); in mysqlnd_caching_sha2_public_encrypt()
1199 mysqlnd_rsa_t server_public_key = mysqlnd_caching_sha2_get_key(conn); in mysqlnd_caching_sha2_get_and_use_key() local
1203 if (server_public_key) { in mysqlnd_caching_sha2_get_and_use_key()
1210 …server_public_key_len = mysqlnd_caching_sha2_public_encrypt(conn, server_public_key, passwd_len, c… in mysqlnd_caching_sha2_get_and_use_key()