Lines Matching refs:ecjpake
72 NX_CRYPTO_KEEP VOID _nx_crypto_ecjpake_init(NX_CRYPTO_ECJPAKE *ecjpake, in _nx_crypto_ecjpake_init() argument
82 ecjpake -> nx_crypto_ecjpake_curve = curve; in _nx_crypto_ecjpake_init()
83 ecjpake -> nx_crypto_ecjpake_hash_method = hash_method; in _nx_crypto_ecjpake_init()
84 ecjpake -> nx_crypto_ecjpake_hash_metadata_size = hash_metadata_size; in _nx_crypto_ecjpake_init()
87 ecjpake -> nx_crypto_ecjpake_hash_metadata = scratch_ptr; in _nx_crypto_ecjpake_init()
92 ecjpake -> nx_crypto_ecjpake_hash_metadata = hash_metadata; in _nx_crypto_ecjpake_init()
95 NX_CRYPTO_EC_POINT_INITIALIZE(&ecjpake -> nx_crypto_ecjpake_public_x1, in _nx_crypto_ecjpake_init()
97 NX_CRYPTO_EC_POINT_INITIALIZE(&ecjpake -> nx_crypto_ecjpake_public_x2, in _nx_crypto_ecjpake_init()
99 NX_CRYPTO_EC_POINT_INITIALIZE(&ecjpake -> nx_crypto_ecjpake_public_x3, in _nx_crypto_ecjpake_init()
101 NX_CRYPTO_EC_POINT_INITIALIZE(&ecjpake -> nx_crypto_ecjpake_public_x4, in _nx_crypto_ecjpake_init()
104 …NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&ecjpake -> nx_crypto_ecjpake_private_x2, scratch_ptr, buffer_siz… in _nx_crypto_ecjpake_init()
165 NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_hello_generate(NX_CRYPTO_ECJPAKE *ecjpake, in _nx_crypto_ecjpake_hello_generate() argument
171 NX_CRYPTO_EC *curve = ecjpake -> nx_crypto_ecjpake_curve; in _nx_crypto_ecjpake_hello_generate()
185 &ecjpake -> nx_crypto_ecjpake_public_x1, scratch); in _nx_crypto_ecjpake_hello_generate()
192 status = _nx_crypto_ecjpake_schnorr_zkp_generate(ecjpake -> nx_crypto_ecjpake_hash_method, in _nx_crypto_ecjpake_hello_generate()
193 ecjpake -> nx_crypto_ecjpake_hash_metadata, in _nx_crypto_ecjpake_hello_generate()
197 &ecjpake -> nx_crypto_ecjpake_public_x1, in _nx_crypto_ecjpake_hello_generate()
209 &ecjpake -> nx_crypto_ecjpake_public_x1, in _nx_crypto_ecjpake_hello_generate()
236 &ecjpake -> nx_crypto_ecjpake_private_x2, in _nx_crypto_ecjpake_hello_generate()
237 &ecjpake -> nx_crypto_ecjpake_public_x2, scratch); in _nx_crypto_ecjpake_hello_generate()
244 status = _nx_crypto_ecjpake_schnorr_zkp_generate(ecjpake -> nx_crypto_ecjpake_hash_method, in _nx_crypto_ecjpake_hello_generate()
245 ecjpake -> nx_crypto_ecjpake_hash_metadata, in _nx_crypto_ecjpake_hello_generate()
249 &ecjpake -> nx_crypto_ecjpake_public_x2, in _nx_crypto_ecjpake_hello_generate()
251 &ecjpake -> nx_crypto_ecjpake_private_x2, in _nx_crypto_ecjpake_hello_generate()
261 &ecjpake -> nx_crypto_ecjpake_public_x2, in _nx_crypto_ecjpake_hello_generate()
335 NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_hello_process(NX_CRYPTO_ECJPAKE *ecjpake, in _nx_crypto_ecjpake_hello_process() argument
340 NX_CRYPTO_EC *curve = ecjpake -> nx_crypto_ecjpake_curve; in _nx_crypto_ecjpake_hello_process()
353 status = _nx_crypto_ec_point_setup(&ecjpake -> nx_crypto_ecjpake_public_x3, in _nx_crypto_ecjpake_hello_process()
379 status = _nx_crypto_ecjpake_schnorr_zkp_verify(ecjpake -> nx_crypto_ecjpake_hash_method, in _nx_crypto_ecjpake_hello_process()
380 ecjpake -> nx_crypto_ecjpake_hash_metadata, in _nx_crypto_ecjpake_hello_process()
384 &ecjpake -> nx_crypto_ecjpake_public_x3, in _nx_crypto_ecjpake_hello_process()
394 status = _nx_crypto_ec_point_setup(&ecjpake -> nx_crypto_ecjpake_public_x4, in _nx_crypto_ecjpake_hello_process()
418 status = _nx_crypto_ecjpake_schnorr_zkp_verify(ecjpake -> nx_crypto_ecjpake_hash_method, in _nx_crypto_ecjpake_hello_process()
419 ecjpake -> nx_crypto_ecjpake_hash_metadata, in _nx_crypto_ecjpake_hello_process()
423 &ecjpake -> nx_crypto_ecjpake_public_x4, in _nx_crypto_ecjpake_hello_process()
491 NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_key_exchange_generate(NX_CRYPTO_ECJPAKE *ecjpake, in _nx_crypto_ecjpake_key_exchange_generate() argument
499 NX_CRYPTO_EC *curve = ecjpake -> nx_crypto_ecjpake_curve; in _nx_crypto_ecjpake_key_exchange_generate()
521 &ecjpake -> nx_crypto_ecjpake_public_x1, in _nx_crypto_ecjpake_key_exchange_generate()
522 &ecjpake -> nx_crypto_ecjpake_public_x3, in _nx_crypto_ecjpake_key_exchange_generate()
523 &ecjpake -> nx_crypto_ecjpake_public_x4, in _nx_crypto_ecjpake_key_exchange_generate()
524 &ecjpake -> nx_crypto_ecjpake_private_x2, in _nx_crypto_ecjpake_key_exchange_generate()
531 status = _nx_crypto_ecjpake_schnorr_zkp_generate(ecjpake -> nx_crypto_ecjpake_hash_method, in _nx_crypto_ecjpake_key_exchange_generate()
532 ecjpake -> nx_crypto_ecjpake_hash_metadata, in _nx_crypto_ecjpake_key_exchange_generate()
629 NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_key_exchange_process(NX_CRYPTO_ECJPAKE *ecjpake, in _nx_crypto_ecjpake_key_exchange_process() argument
637 NX_CRYPTO_EC *curve = ecjpake -> nx_crypto_ecjpake_curve; in _nx_crypto_ecjpake_key_exchange_process()
665 &ecjpake -> nx_crypto_ecjpake_public_x1.nx_crypto_ec_point_x); in _nx_crypto_ecjpake_key_exchange_process()
667 &ecjpake -> nx_crypto_ecjpake_public_x1.nx_crypto_ec_point_y); in _nx_crypto_ecjpake_key_exchange_process()
668 curve -> nx_crypto_ec_add(curve, &ga, &ecjpake -> nx_crypto_ecjpake_public_x2, scratch); in _nx_crypto_ecjpake_key_exchange_process()
669 curve -> nx_crypto_ec_add(curve, &ga, &ecjpake -> nx_crypto_ecjpake_public_x3, scratch); in _nx_crypto_ecjpake_key_exchange_process()
694 status = _nx_crypto_ecjpake_schnorr_zkp_verify(ecjpake -> nx_crypto_ecjpake_hash_method, in _nx_crypto_ecjpake_key_exchange_process()
695 ecjpake -> nx_crypto_ecjpake_hash_metadata, in _nx_crypto_ecjpake_key_exchange_process()
708 status = _nx_crypto_ecjpake_pre_master_secret_generate(ecjpake -> nx_crypto_ecjpake_hash_method, in _nx_crypto_ecjpake_key_exchange_process()
709 … ecjpake -> nx_crypto_ecjpake_hash_metadata, in _nx_crypto_ecjpake_key_exchange_process()
711 &ecjpake -> nx_crypto_ecjpake_public_x4, in _nx_crypto_ecjpake_key_exchange_process()
714 &ecjpake -> nx_crypto_ecjpake_private_x2, in _nx_crypto_ecjpake_key_exchange_process()
1644 NX_CRYPTO_ECJPAKE *ecjpake; in _nx_crypto_method_ecjpake_init() local
1684 ecjpake = (NX_CRYPTO_ECJPAKE *)crypto_metadata; in _nx_crypto_method_ecjpake_init()
1685 ecjpake -> nx_crypto_ecjpake_psk = key; in _nx_crypto_method_ecjpake_init()
1686 ecjpake -> nx_crypto_ecjpake_psk_length = key_size_in_bits >> 3; in _nx_crypto_method_ecjpake_init()
1687 …ecjpake -> nx_crypto_ecjpake_scratch_ptr = (HN_UBASE *)ecjpake -> nx_crypto_ecjpake_scratch_buffer; in _nx_crypto_method_ecjpake_init()
1822 NX_CRYPTO_ECJPAKE *ecjpake; in _nx_crypto_method_ecjpake_operation() local
1864 ecjpake = (NX_CRYPTO_ECJPAKE *)crypto_metadata; in _nx_crypto_method_ecjpake_operation()
1869 if (ecjpake -> nx_crypto_ecjpake_curve != NX_CRYPTO_NULL) in _nx_crypto_method_ecjpake_operation()
1871 _nx_crypto_ecjpake_init(ecjpake, ecjpake -> nx_crypto_ecjpake_curve, in _nx_crypto_method_ecjpake_operation()
1874 &ecjpake -> nx_crypto_ecjpake_scratch_ptr); in _nx_crypto_method_ecjpake_operation()
1878 ecjpake -> nx_crypto_ecjpake_hash_method = (NX_CRYPTO_METHOD *)input; in _nx_crypto_method_ecjpake_operation()
1879 ecjpake -> nx_crypto_ecjpake_hash_metadata = (VOID *)key; in _nx_crypto_method_ecjpake_operation()
1880 ecjpake -> nx_crypto_ecjpake_hash_metadata_size = key_size_in_bits >> 3; in _nx_crypto_method_ecjpake_operation()
1891 … (UCHAR *)&ecjpake -> nx_crypto_ecjpake_curve, in _nx_crypto_method_ecjpake_operation()
1901 if (ecjpake -> nx_crypto_ecjpake_hash_method != NX_CRYPTO_NULL) in _nx_crypto_method_ecjpake_operation()
1903 _nx_crypto_ecjpake_init(ecjpake, ecjpake -> nx_crypto_ecjpake_curve, in _nx_crypto_method_ecjpake_operation()
1904 ecjpake -> nx_crypto_ecjpake_hash_method, in _nx_crypto_method_ecjpake_operation()
1905 ecjpake -> nx_crypto_ecjpake_hash_metadata, in _nx_crypto_method_ecjpake_operation()
1906 ecjpake -> nx_crypto_ecjpake_hash_metadata_size, in _nx_crypto_method_ecjpake_operation()
1907 &ecjpake -> nx_crypto_ecjpake_scratch_ptr); in _nx_crypto_method_ecjpake_operation()
1914 status = _nx_crypto_ecjpake_hello_generate(ecjpake, in _nx_crypto_method_ecjpake_operation()
1919 ecjpake -> nx_crypto_ecjpake_scratch_ptr); in _nx_crypto_method_ecjpake_operation()
1924 status = _nx_crypto_ecjpake_hello_process(ecjpake, in _nx_crypto_method_ecjpake_operation()
1927 ecjpake -> nx_crypto_ecjpake_scratch_ptr); in _nx_crypto_method_ecjpake_operation()
1933 status = _nx_crypto_ecjpake_key_exchange_generate(ecjpake, in _nx_crypto_method_ecjpake_operation()
1934 ecjpake -> nx_crypto_ecjpake_psk, in _nx_crypto_method_ecjpake_operation()
1935 ecjpake -> nx_crypto_ecjpake_psk_length, in _nx_crypto_method_ecjpake_operation()
1940 ecjpake -> nx_crypto_ecjpake_scratch_ptr); in _nx_crypto_method_ecjpake_operation()
1945 status = _nx_crypto_ecjpake_key_exchange_process(ecjpake, in _nx_crypto_method_ecjpake_operation()
1946 ecjpake -> nx_crypto_ecjpake_psk, in _nx_crypto_method_ecjpake_operation()
1947 ecjpake -> nx_crypto_ecjpake_psk_length, in _nx_crypto_method_ecjpake_operation()
1951 ecjpake -> nx_crypto_ecjpake_scratch_ptr); in _nx_crypto_method_ecjpake_operation()