Lines Matching refs:xor_str

691 mysqlnd_xor_string(char * dst, const size_t dst_len, const char * xor_str, const size_t xor_str_len)  in mysqlnd_xor_string()  argument
695 dst[i] ^= xor_str[i % xor_str_len]; in mysqlnd_xor_string()
720 … * conn, mysqlnd_rsa_t server_public_key, size_t passwd_len, size_t * auth_data_len, char *xor_str) in mysqlnd_sha256_public_encrypt() argument
741 …RSA_public_encrypt(passwd_len + 1, (zend_uchar *) xor_str, ret, server_public_key, RSA_PKCS1_OAEP_… in mysqlnd_sha256_public_encrypt()
792 … * conn, mysqlnd_rsa_t server_public_key, size_t passwd_len, size_t * auth_data_len, char *xor_str) in mysqlnd_sha256_public_encrypt() argument
802 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_sha256_public_encrypt()
822 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_sha256_public_encrypt()
934 char *xor_str = do_alloca(passwd_len + 1, use_heap); in mysqlnd_sha256_auth_get_auth_data() local
935 memcpy(xor_str, passwd, passwd_len); in mysqlnd_sha256_auth_get_auth_data()
936 xor_str[passwd_len] = '\0'; in mysqlnd_sha256_auth_get_auth_data()
937 mysqlnd_xor_string(xor_str, passwd_len, (char *) auth_plugin_data, auth_plugin_data_len); in mysqlnd_sha256_auth_get_auth_data()
938 ret = mysqlnd_sha256_public_encrypt(conn, server_public_key, passwd_len, auth_data_len, xor_str); in mysqlnd_sha256_auth_get_auth_data()
939 free_alloca(xor_str, use_heap); in mysqlnd_sha256_auth_get_auth_data()
1014 …* conn, mysqlnd_rsa_t server_public_key, size_t passwd_len, unsigned char **crypted, char *xor_str) in mysqlnd_caching_sha2_public_encrypt() argument
1033 …RSA_public_encrypt(passwd_len + 1, (zend_uchar *) xor_str, *crypted, server_public_key, RSA_PKCS1_… in mysqlnd_caching_sha2_public_encrypt()
1043 …* conn, mysqlnd_rsa_t server_public_key, size_t passwd_len, unsigned char **crypted, char *xor_str) in mysqlnd_caching_sha2_public_encrypt() argument
1052 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_caching_sha2_public_encrypt()
1071 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_caching_sha2_public_encrypt()
1203 char *xor_str = do_alloca(passwd_len + 1, use_heap); in mysqlnd_caching_sha2_get_and_use_key()
1204 memcpy(xor_str, passwd, passwd_len); in mysqlnd_caching_sha2_get_and_use_key()
1205 xor_str[passwd_len] = '\0'; in mysqlnd_caching_sha2_get_and_use_key()
1206 mysqlnd_xor_string(xor_str, passwd_len, (char *) auth_plugin_data, SCRAMBLE_LENGTH); in mysqlnd_caching_sha2_get_and_use_key()
1207 …y_len = mysqlnd_caching_sha2_public_encrypt(conn, server_public_key, passwd_len, crypted, xor_str); in mysqlnd_caching_sha2_get_and_use_key()
1208 free_alloca(xor_str, use_heap); in mysqlnd_caching_sha2_get_and_use_key()