Lines Matching refs:ecdh_ptr

76 NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_key_pair_import(NX_CRYPTO_ECDH  *ecdh_ptr,  in _nx_crypto_ecdh_key_pair_import()  argument
88 if (local_private_key_len > sizeof(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer)) in _nx_crypto_ecdh_key_pair_import()
100 ecdh_ptr -> nx_crypto_ecdh_key_size = curve -> nx_crypto_ec_n.nx_crypto_huge_buffer_size; in _nx_crypto_ecdh_key_pair_import()
103 NX_CRYPTO_MEMSET(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer, 0, in _nx_crypto_ecdh_key_pair_import()
104 sizeof(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer)); in _nx_crypto_ecdh_key_pair_import()
107 private_key.nx_crypto_huge_number_data = ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_key_pair_import()
108 private_key.nx_crypto_huge_buffer_size = sizeof(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer); in _nx_crypto_ecdh_key_pair_import()
157 UINT _nx_crypto_ecdh_private_key_export(NX_CRYPTO_ECDH *ecdh_ptr, in _nx_crypto_ecdh_private_key_export() argument
170 if (0 == ecdh_ptr -> nx_crypto_ecdh_key_size) in _nx_crypto_ecdh_private_key_export()
175 curve = ecdh_ptr -> nx_crypto_ecdh_curve; in _nx_crypto_ecdh_private_key_export()
178 key_size = ecdh_ptr -> nx_crypto_ecdh_key_size; in _nx_crypto_ecdh_private_key_export()
189 …private_key.nx_crypto_huge_number_data = (HN_UBASE *)ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_private_key_export()
254 NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_setup(NX_CRYPTO_ECDH *ecdh_ptr, in _nx_crypto_ecdh_setup() argument
272 ecdh_ptr -> nx_crypto_ecdh_curve = curve; in _nx_crypto_ecdh_setup()
275 ecdh_ptr -> nx_crypto_ecdh_key_size = curve -> nx_crypto_ec_n.nx_crypto_huge_buffer_size; in _nx_crypto_ecdh_setup()
279 ecdh_ptr -> nx_crypto_ecdh_key_size); in _nx_crypto_ecdh_setup()
282 private_key.nx_crypto_huge_number_data = ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_setup()
283 private_key.nx_crypto_huge_number_size = ecdh_ptr -> nx_crypto_ecdh_key_size >> HN_SIZE_SHIFT; in _nx_crypto_ecdh_setup()
284 private_key.nx_crypto_huge_buffer_size = sizeof(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer); in _nx_crypto_ecdh_setup()
288 NX_CRYPTO_MEMSET(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer, 0, in _nx_crypto_ecdh_setup()
289 sizeof(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer)); in _nx_crypto_ecdh_setup()
363 NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_compute_secret(NX_CRYPTO_ECDH *ecdh_ptr, in _nx_crypto_ecdh_compute_secret() argument
381 if (0 == ecdh_ptr -> nx_crypto_ecdh_key_size) in _nx_crypto_ecdh_compute_secret()
386 curve = ecdh_ptr -> nx_crypto_ecdh_curve; in _nx_crypto_ecdh_compute_secret()
389 key_size = ecdh_ptr -> nx_crypto_ecdh_key_size; in _nx_crypto_ecdh_compute_secret()
425 …private_key.nx_crypto_huge_number_data = (HN_UBASE *)ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_compute_secret()
865 NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_key_pair_import_x25519_448(NX_CRYPTO_ECDH *ecdh_ptr, in _nx_crypto_ecdh_key_pair_import_x25519_448() argument
890 ecdh_ptr -> nx_crypto_ecdh_key_size = key_len; in _nx_crypto_ecdh_key_pair_import_x25519_448()
893 …NX_CRYPTO_MEMCPY(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer, local_private_key_ptr, local_priva… in _nx_crypto_ecdh_key_pair_import_x25519_448()
939 NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_private_key_export_x25519_448(NX_CRYPTO_ECDH *ecdh_ptr, in _nx_crypto_ecdh_private_key_export_x25519_448() argument
948 if (0 == ecdh_ptr -> nx_crypto_ecdh_key_size) in _nx_crypto_ecdh_private_key_export_x25519_448()
953 curve = ecdh_ptr -> nx_crypto_ecdh_curve; in _nx_crypto_ecdh_private_key_export_x25519_448()
963 …NX_CRYPTO_MEMCPY(local_private_key_ptr, ecdh_ptr -> nx_crypto_ecdh_private_key_buffer, clen); /* U… in _nx_crypto_ecdh_private_key_export_x25519_448()
1024 NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_setup_x25519_448(NX_CRYPTO_ECDH *ecdh_ptr, in _nx_crypto_ecdh_setup_x25519_448() argument
1042 ecdh_ptr -> nx_crypto_ecdh_curve = curve; in _nx_crypto_ecdh_setup_x25519_448()
1045 ecdh_ptr -> nx_crypto_ecdh_key_size = key_len; in _nx_crypto_ecdh_setup_x25519_448()
1051 private_key.nx_crypto_huge_number_data = ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_setup_x25519_448()
1052 private_key.nx_crypto_huge_number_size = ecdh_ptr -> nx_crypto_ecdh_key_size >> HN_SIZE_SHIFT; in _nx_crypto_ecdh_setup_x25519_448()
1053 private_key.nx_crypto_huge_buffer_size = sizeof(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer); in _nx_crypto_ecdh_setup_x25519_448()
1057 NX_CRYPTO_MEMSET(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer, 0, in _nx_crypto_ecdh_setup_x25519_448()
1058 sizeof(ecdh_ptr -> nx_crypto_ecdh_private_key_buffer)); in _nx_crypto_ecdh_setup_x25519_448()
1128 NX_CRYPTO_KEEP UINT _nx_crypto_ecdh_compute_secret_x25519_448(NX_CRYPTO_ECDH *ecdh_ptr, in _nx_crypto_ecdh_compute_secret_x25519_448() argument
1145 if (0 == ecdh_ptr -> nx_crypto_ecdh_key_size) in _nx_crypto_ecdh_compute_secret_x25519_448()
1150 curve = ecdh_ptr -> nx_crypto_ecdh_curve; in _nx_crypto_ecdh_compute_secret_x25519_448()
1153 key_size = ecdh_ptr -> nx_crypto_ecdh_key_size; in _nx_crypto_ecdh_compute_secret_x25519_448()
1176 … private_key.nx_crypto_huge_number_data = (HN_UBASE*)ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_compute_secret_x25519_448()