Lines Matching refs:dh_ptr

117 NX_CRYPTO_KEEP UINT _nx_crypto_dh_setup(NX_CRYPTO_DH  *dh_ptr,  in _nx_crypto_dh_setup()  argument
137 dh_ptr -> nx_crypto_dh_key_size = NX_CRYPTO_DIFFIE_HELLMAN_GROUP_2_KEY_SIZE; in _nx_crypto_dh_setup()
138 dh_ptr -> nx_crypto_dh_modulus = (HN_UBASE *)_nx_dh_group_2_modulus; in _nx_crypto_dh_setup()
144 modulus.nx_crypto_huge_number_data = dh_ptr -> nx_crypto_dh_modulus; in _nx_crypto_dh_setup()
145 modulus.nx_crypto_huge_number_size = dh_ptr -> nx_crypto_dh_key_size >> HN_SIZE_SHIFT; in _nx_crypto_dh_setup()
146 modulus.nx_crypto_huge_buffer_size = dh_ptr -> nx_crypto_dh_key_size; in _nx_crypto_dh_setup()
161 …NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&public_key, scratch_buf_ptr, dh_ptr -> nx_crypto_dh_key_size << … in _nx_crypto_dh_setup()
164 private_key.nx_crypto_huge_number_data = dh_ptr -> nx_crypto_dh_private_key_buffer; in _nx_crypto_dh_setup()
165 private_key.nx_crypto_huge_number_size = dh_ptr -> nx_crypto_dh_key_size >> HN_SIZE_SHIFT; in _nx_crypto_dh_setup()
166 private_key.nx_crypto_huge_buffer_size = sizeof(dh_ptr -> nx_crypto_dh_private_key_buffer); in _nx_crypto_dh_setup()
176dh_ptr -> nx_crypto_dh_private_key_buffer[i] = (HN_UBASE)((HN_UBASE)(NX_CRYPTO_RAND()) & HN_MASK); in _nx_crypto_dh_setup()
187 dh_ptr -> nx_crypto_dh_key_size, local_public_key_len_ptr); in _nx_crypto_dh_setup()
252 NX_CRYPTO_KEEP UINT _nx_crypto_dh_compute_secret(NX_CRYPTO_DH *dh_ptr, in _nx_crypto_dh_compute_secret() argument
269 if (0 == dh_ptr -> nx_crypto_dh_key_size) in _nx_crypto_dh_compute_secret()
275 if (remote_public_key_len > dh_ptr -> nx_crypto_dh_key_size) in _nx_crypto_dh_compute_secret()
281 key_size = dh_ptr -> nx_crypto_dh_key_size; in _nx_crypto_dh_compute_secret()
292 modulus.nx_crypto_huge_number_data = (HN_UBASE *)dh_ptr -> nx_crypto_dh_modulus; in _nx_crypto_dh_compute_secret()
300 private_key.nx_crypto_huge_number_data = (HN_UBASE *)dh_ptr -> nx_crypto_dh_private_key_buffer; in _nx_crypto_dh_compute_secret()