Lines Matching refs:xor_str
673 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
677 dst[i] ^= xor_str[i % xor_str_len]; in mysqlnd_xor_string()
702 … * 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
726 … EVP_PKEY_encrypt(ctx, ret, &server_public_key_len, (zend_uchar *) xor_str, passwd_len + 1) <= 0) { in mysqlnd_sha256_public_encrypt()
782 … * 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
792 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, 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()
927 char *xor_str = do_alloca(passwd_len + 1, use_heap); in mysqlnd_sha256_auth_get_auth_data() local
928 memcpy(xor_str, passwd, passwd_len); in mysqlnd_sha256_auth_get_auth_data()
929 xor_str[passwd_len] = '\0'; in mysqlnd_sha256_auth_get_auth_data()
933 mysqlnd_xor_string(xor_str, passwd_len, (char *) auth_plugin_data, SCRAMBLE_LENGTH); 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()
935 free_alloca(xor_str, use_heap); in mysqlnd_sha256_auth_get_auth_data()
1010 …* conn, mysqlnd_rsa_t server_public_key, size_t passwd_len, unsigned char **crypted, char *xor_str) in mysqlnd_caching_sha2_public_encrypt() argument
1032 …EVP_PKEY_encrypt(ctx, *crypted, &server_public_key_len, (zend_uchar *) xor_str, passwd_len + 1) <=… in mysqlnd_caching_sha2_public_encrypt()
1046 …* conn, mysqlnd_rsa_t server_public_key, size_t passwd_len, unsigned char **crypted, char *xor_str) 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()
1074 if (BCryptEncrypt((BCRYPT_KEY_HANDLE) server_public_key, xor_str, passwd_len + 1, &padding_info, in mysqlnd_caching_sha2_public_encrypt()
1206 char *xor_str = do_alloca(passwd_len + 1, use_heap); in mysqlnd_caching_sha2_get_and_use_key()
1207 memcpy(xor_str, passwd, passwd_len); in mysqlnd_caching_sha2_get_and_use_key()
1208 xor_str[passwd_len] = '\0'; in mysqlnd_caching_sha2_get_and_use_key()
1209 mysqlnd_xor_string(xor_str, passwd_len, (char *) auth_plugin_data, SCRAMBLE_LENGTH); in mysqlnd_caching_sha2_get_and_use_key()
1210 …y_len = mysqlnd_caching_sha2_public_encrypt(conn, server_public_key, passwd_len, crypted, xor_str); in mysqlnd_caching_sha2_get_and_use_key()
1211 free_alloca(xor_str, use_heap); in mysqlnd_caching_sha2_get_and_use_key()