| /NetX-Duo-v6.2.1/crypto_libraries/src/ |
| D | nx_crypto_dh.c | 127 NX_CRYPTO_HUGE_NUMBER modulus, public_key, private_key, generator; in _nx_crypto_dh_setup() local 160 …NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&public_key, scratch_buf_ptr, dh_ptr -> nx_crypto_dh_key_size << … in _nx_crypto_dh_setup() 182 &modulus, &public_key, scratch_buf_ptr); in _nx_crypto_dh_setup() 185 _nx_crypto_huge_number_extract(&public_key, local_public_key_ptr, in _nx_crypto_dh_setup() 262 NX_CRYPTO_HUGE_NUMBER modulus, public_key, private_key, shared_secret; in _nx_crypto_dh_compute_secret() local 282 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&public_key, scratch_buf_ptr, key_size); in _nx_crypto_dh_compute_secret() 286 _nx_crypto_huge_number_setup(&public_key, remote_public_key, remote_public_key_len); in _nx_crypto_dh_compute_secret() 307 _nx_crypto_huge_number_mont_power_modulus(&public_key, &private_key, &modulus, in _nx_crypto_dh_compute_secret()
|
| D | nx_crypto_ecdh.c | 263 NX_CRYPTO_EC_POINT public_key; in _nx_crypto_ecdh_setup() local 277 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch_buf_ptr, in _nx_crypto_ecdh_setup() 292 &public_key, scratch_buf_ptr); in _nx_crypto_ecdh_setup() 295 _nx_crypto_ec_point_extract_uncompressed(curve, &public_key, local_public_key_ptr, in _nx_crypto_ecdh_setup() 376 NX_CRYPTO_EC_POINT public_key, shared_secret; in _nx_crypto_ecdh_compute_secret() local 403 … NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch_buf_ptr, key_size); in _nx_crypto_ecdh_compute_secret() 408 status = _nx_crypto_ec_point_setup(&public_key, remote_public_key, remote_public_key_len); in _nx_crypto_ecdh_compute_secret() 415 status = _nx_crypto_ec_validate_public_key(&public_key, curve, NX_CRYPTO_TRUE, scratch_buf_ptr); in _nx_crypto_ecdh_compute_secret() 431 … curve -> nx_crypto_ec_multiple(curve, &public_key, &private_key, &shared_secret, scratch_buf_ptr); in _nx_crypto_ecdh_compute_secret() 1033 NX_CRYPTO_EC_POINT public_key; in _nx_crypto_ecdh_setup_x25519_448() local [all …]
|
| D | nx_crypto_ecjpake.c | 503 NX_CRYPTO_EC_POINT public_key, v; in _nx_crypto_ecjpake_key_exchange_generate() local 513 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in _nx_crypto_ecjpake_key_exchange_generate() 526 &public_key, in _nx_crypto_ecjpake_key_exchange_generate() 535 &public_key, in _nx_crypto_ecjpake_key_exchange_generate() 547 &public_key, in _nx_crypto_ecjpake_key_exchange_generate() 640 NX_CRYPTO_EC_POINT public_key, v; in _nx_crypto_ecjpake_key_exchange_process() local 650 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in _nx_crypto_ecjpake_key_exchange_process() 671 status = _nx_crypto_ec_point_setup(&public_key, in _nx_crypto_ecjpake_key_exchange_process() 698 &public_key, in _nx_crypto_ecjpake_key_exchange_process() 712 &public_key, in _nx_crypto_ecjpake_key_exchange_process() [all …]
|
| D | nx_crypto_method_self_test_ecdsa.c | 100 NX_CRYPTO_EC_POINT public_key; in _nx_crypto_method_self_test_ecdsa() local 223 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in _nx_crypto_method_self_test_ecdsa() 228 &public_key, scratch); in _nx_crypto_method_self_test_ecdsa() 243 …_nx_crypto_ec_point_extract_uncompressed(curve, &public_key, pubkey, 4 + 2 * buffer_size, &pubkey_… in _nx_crypto_method_self_test_ecdsa()
|
| D | nx_crypto_ec.c | 3149 NX_CRYPTO_EC_POINT *public_key, in _nx_crypto_ec_key_pair_generation_extra() argument 3186 curve -> nx_crypto_ec_multiple(curve, g, private_key, public_key, scratch); in _nx_crypto_ec_key_pair_generation_extra() 3250 NX_CRYPTO_EC_POINT public_key; in _nx_crypto_ec_key_pair_stream_generate() local 3263 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, in _nx_crypto_ec_key_pair_stream_generate() 3271 &public_key, scratch); in _nx_crypto_ec_key_pair_stream_generate() 3284 _nx_crypto_ec_point_extract_uncompressed(curve, &public_key, &output[private_key_len], in _nx_crypto_ec_key_pair_stream_generate() 4286 UINT _nx_crypto_ec_validate_public_key(NX_CRYPTO_EC_POINT *public_key, in _nx_crypto_ec_validate_public_key() argument 4300 if(_nx_crypto_ec_point_is_infinite(public_key)) in _nx_crypto_ec_validate_public_key() 4308 …compare_value = _nx_crypto_huge_number_compare(&public_key -> nx_crypto_ec_point_x, &chosen_curve … in _nx_crypto_ec_validate_public_key() 4314 …compare_value = _nx_crypto_huge_number_compare(&public_key -> nx_crypto_ec_point_y, &chosen_curve … in _nx_crypto_ec_validate_public_key() [all …]
|
| D | nx_crypto_pkcs1_v1.5.c | 230 UCHAR *public_key, UINT public_key_size, in _nx_crypto_pkcs1_v1_5_verify() argument 271 public_key, in _nx_crypto_pkcs1_v1_5_verify()
|
| D | nx_crypto_ecdsa.c | 316 UCHAR *public_key, UINT public_key_length, in _nx_crypto_ecdsa_verify() argument 378 status = _nx_crypto_ec_point_setup(&pubkey, public_key, public_key_length); in _nx_crypto_ecdsa_verify()
|
| /NetX-Duo-v6.2.1/test/regression/nx_secure_test/ |
| D | nx_secure_tls_ecc_generate_keys_coverage_test.c | 465 static UCHAR public_key[50]; variable 552 … &session.nx_secure_tls_credentials, 0, 0, public_key, &public_key_size, &ecc_data, in TEST() 563 … &session.nx_secure_tls_credentials, 0, 0, public_key, &public_key_size, &ecc_data, in TEST() 574 … &session.nx_secure_tls_credentials, 0, 0, public_key, &public_key_size, &ecc_data, in TEST() 586 … &session.nx_secure_tls_credentials, 0, 0, public_key, &public_key_size, &ecc_data, in TEST() 598 … &session.nx_secure_tls_credentials, 0, 0, public_key, &public_key_size, &ecc_data, in TEST() 609 … &session.nx_secure_tls_credentials, 0, 1, public_key, &public_key_size, &ecc_data, in TEST() 638 … &session.nx_secure_tls_credentials, 0, 1, public_key, &public_key_size, &ecc_data, in TEST() 661 …&session.nx_secure_tls_credentials, NX_CRYPTO_EC_SECP256R1, 1, public_key, &public_key_size, &ecc_… in TEST() 674 …&session.nx_secure_tls_credentials, NX_CRYPTO_EC_SECP256R1, 1, public_key, &public_key_size, &ecc_… in TEST() [all …]
|
| D | nx_secure_ecdsa_test.c | 98 NX_CRYPTO_EC_POINT public_key; in thread_0_entry() local 151 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in thread_0_entry() 158 &public_key, scratch); in thread_0_entry() 165 …_nx_crypto_ec_point_extract_uncompressed(curve, &public_key, pubkey, 4 + 2 * buffer_size, &pubkey_… in thread_0_entry() 202 ecdsa_data[i].public_key, in thread_0_entry() 220 ecdsa_data[i].public_key, in thread_0_entry()
|
| D | nx_secure_crypto_method_cleanup_test.c | 583 NX_CRYPTO_EC_POINT public_key; in crypto_method_cleanup_ecdsa_test() local 643 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in crypto_method_cleanup_ecdsa_test() 648 &public_key, scratch); in crypto_method_cleanup_ecdsa_test() 672 (UCHAR *)&public_key, in crypto_method_cleanup_ecdsa_test()
|
| D | nx_secure_ecdsa_error_checking_test.c | 75 NX_CRYPTO_EC_POINT public_key; in thread_0_entry() local
|
| D | nx_secure_tls_generate_premaster_secret_coverage_test.c | 465 static UCHAR public_key[50]; variable
|
| D | nx_secure_ecdsa_test_data.c | 10 UCHAR *public_key; member
|
| /NetX-Duo-v6.2.1/nx_secure/src/ |
| D | nx_secure_tls_ecc_generate_keys.c | 126 … UCHAR *public_key, UINT *public_key_size, NX_SECURE_TLS_ECDHE_HANDSHAKE_DATA *ecc_data, in _nx_secure_tls_ecc_generate_keys() argument 237 public_key[length] = 3; in _nx_secure_tls_ecc_generate_keys() 241 public_key[length] = (UCHAR)((ecc_data -> nx_secure_tls_ecdhe_named_curve & 0xFF00) >> 8); in _nx_secure_tls_ecc_generate_keys() 242 public_key[length + 1] = (UCHAR)(ecc_data -> nx_secure_tls_ecdhe_named_curve & 0x00FF); in _nx_secure_tls_ecc_generate_keys() 251 extended_output.nx_crypto_extended_output_data = &public_key[length]; in _nx_secure_tls_ecc_generate_keys() 257 extended_output.nx_crypto_extended_output_data = &public_key[length + 1]; in _nx_secure_tls_ecc_generate_keys() 279 public_key[length] = (UCHAR)extended_output.nx_crypto_extended_output_actual_size; in _nx_secure_tls_ecc_generate_keys() 472 public_key, in _nx_secure_tls_ecc_generate_keys() 621 public_key, in _nx_secure_tls_ecc_generate_keys() 682 … public_key[length] = (UCHAR)((ecc_data -> nx_secure_tls_ecdhe_signature_algorithm & 0xFF00) >> 8); in _nx_secure_tls_ecc_generate_keys() [all …]
|
| /NetX-Duo-v6.2.1/crypto_libraries/inc/ |
| D | nx_crypto_ecjpake.h | 153 NX_CRYPTO_EC_POINT *public_key, 165 NX_CRYPTO_EC_POINT *public_key, 178 NX_CRYPTO_EC_POINT *public_key, 187 NX_CRYPTO_EC_POINT *public_key,
|
| D | nx_crypto_ecdsa.h | 98 UCHAR *public_key,
|
| D | nx_crypto_pkcs1_v1.5.h | 93 UCHAR *public_key, UINT public_key_size,
|
| D | nx_crypto_ec.h | 570 NX_CRYPTO_EC_POINT *public_key, 578 UINT _nx_crypto_ec_validate_public_key(NX_CRYPTO_EC_POINT *public_key, 668 NX_CRYPTO_EC_POINT *public_key,
|
| /NetX-Duo-v6.2.1/nx_secure/inc/ |
| D | nx_secure_tls.h | 1641 … UCHAR *public_key, UINT *public_key_size, NX_SECURE_TLS_ECDHE_HANDSHAKE_DATA *ecc_data,
|