Lines Matching refs:server_public_key_len
705 size_t server_public_key_len = (size_t) EVP_PKEY_size(server_public_key); in mysqlnd_sha256_public_encrypt() local
713 if (server_public_key_len <= passwd_len + 41) { in mysqlnd_sha256_public_encrypt()
721 *auth_data_len = server_public_key_len; in mysqlnd_sha256_public_encrypt()
726 … EVP_PKEY_encrypt(ctx, ret, &server_public_key_len, (zend_uchar *) xor_str, passwd_len + 1) <= 0) { in mysqlnd_sha256_public_encrypt()
785 DWORD server_public_key_len = passwd_len; in mysqlnd_sha256_public_encrypt() local
793 NULL, 0, NULL, 0, &server_public_key_len, BCRYPT_PAD_OAEP)) { in mysqlnd_sha256_public_encrypt()
802 if ((size_t) server_public_key_len <= passwd_len + 41) { in mysqlnd_sha256_public_encrypt()
810 *auth_data_len = server_public_key_len; in mysqlnd_sha256_public_encrypt()
813 NULL, 0, ret, server_public_key_len, &server_public_key_len, BCRYPT_PAD_OAEP)) { in mysqlnd_sha256_public_encrypt()
1012 size_t server_public_key_len = (size_t) EVP_PKEY_size(server_public_key); in mysqlnd_caching_sha2_public_encrypt() local
1020 if (server_public_key_len <= passwd_len + 41) { in mysqlnd_caching_sha2_public_encrypt()
1028 *crypted = emalloc(server_public_key_len); in mysqlnd_caching_sha2_public_encrypt()
1032 …EVP_PKEY_encrypt(ctx, *crypted, &server_public_key_len, (zend_uchar *) xor_str, passwd_len + 1) <=… in mysqlnd_caching_sha2_public_encrypt()
1034 server_public_key_len = 0; in mysqlnd_caching_sha2_public_encrypt()
1038 DBG_RETURN(server_public_key_len); in mysqlnd_caching_sha2_public_encrypt()
1048 DWORD server_public_key_len = passwd_len; in mysqlnd_caching_sha2_public_encrypt() local
1056 NULL, 0, NULL, 0, &server_public_key_len, BCRYPT_PAD_OAEP)) { in mysqlnd_caching_sha2_public_encrypt()
1065 if ((size_t) server_public_key_len <= passwd_len + 41) { in mysqlnd_caching_sha2_public_encrypt()
1073 *crypted = emalloc(server_public_key_len); in mysqlnd_caching_sha2_public_encrypt()
1075 NULL, 0, *crypted, server_public_key_len, &server_public_key_len, BCRYPT_PAD_OAEP)) { in mysqlnd_caching_sha2_public_encrypt()
1080 DBG_RETURN(server_public_key_len); in mysqlnd_caching_sha2_public_encrypt()
1204 int server_public_key_len; in mysqlnd_caching_sha2_get_and_use_key() local
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()
1212 DBG_RETURN(server_public_key_len); in mysqlnd_caching_sha2_get_and_use_key()