/NetX-Duo-v6.4.1/nx_secure/src/ |
D | nx_secure_tls_1_3_generate_keys.c | 42 UCHAR *output, UINT output_length, const NX_CRYPTO_METHOD *hash_method); 47 … UCHAR *output, UINT output_length, const NX_CRYPTO_METHOD *hash_method); 50 … UCHAR *ikm, UINT ikm_len, UCHAR *output, UINT output_length, const NX_CRYPTO_METHOD *hash_method); 99 …_TLS_SESSION *tls_session, NX_SECURE_TLS_PSK_STORE *psk_entry, const NX_CRYPTO_METHOD *hash_method) in _nx_secure_tls_1_3_generate_psk_secret() argument 111 hash_length = (hash_method->nx_crypto_ICV_size_in_bits >> 3); in _nx_secure_tls_1_3_generate_psk_secret() 124 … psk_entry->nx_secure_tls_psk_early_secret, hash_length, hash_method); in _nx_secure_tls_1_3_generate_psk_secret() 143 … psk_entry->nx_secure_tls_psk_binder_key, hash_length, hash_method); in _nx_secure_tls_1_3_generate_psk_secret() 157 … psk_entry->nx_secure_tls_psk_finished_key, hash_length, hash_method); in _nx_secure_tls_1_3_generate_psk_secret() 216 const NX_CRYPTO_METHOD *hash_method = NX_NULL; in _nx_secure_tls_1_3_generate_handshake_keys() local 263 hash_method = tls_session -> nx_secure_tls_session_ciphersuite -> nx_secure_tls_hash; in _nx_secure_tls_1_3_generate_handshake_keys() [all …]
|
D | nx_secure_process_server_key_exchange.c | 127 const NX_CRYPTO_METHOD *hash_method; in _nx_secure_process_server_key_exchange() local 345 hash_method = tls_crypto_table -> nx_secure_tls_handshake_hash_md5_method; in _nx_secure_process_server_key_exchange() 350 hash_method = crypto_methods -> nx_secure_x509_hash_method; in _nx_secure_process_server_key_exchange() 356 if (hash_method -> nx_crypto_init) in _nx_secure_process_server_key_exchange() 358 status = hash_method -> nx_crypto_init((NX_CRYPTO_METHOD*)hash_method, in _nx_secure_process_server_key_exchange() 371 if (hash_method -> nx_crypto_operation != NX_NULL) in _nx_secure_process_server_key_exchange() 373 status = hash_method -> nx_crypto_operation(NX_CRYPTO_HASH_INITIALIZE, in _nx_secure_process_server_key_exchange() 375 (NX_CRYPTO_METHOD*)hash_method, in _nx_secure_process_server_key_exchange() 398 status = hash_method -> nx_crypto_operation(NX_CRYPTO_HASH_UPDATE, in _nx_secure_process_server_key_exchange() 400 (NX_CRYPTO_METHOD*)hash_method, in _nx_secure_process_server_key_exchange() [all …]
|
D | nx_secure_tls_ecc_generate_keys.c | 144 const NX_CRYPTO_METHOD *hash_method; in _nx_secure_tls_ecc_generate_keys() local 373 hash_method = tls_crypto_table -> nx_secure_tls_handshake_hash_md5_method; in _nx_secure_tls_ecc_generate_keys() 378 hash_method = crypto_methods -> nx_secure_x509_hash_method; in _nx_secure_tls_ecc_generate_keys() 381 hash_length = hash_method -> nx_crypto_ICV_size_in_bits >> 3; in _nx_secure_tls_ecc_generate_keys() 385 if (hash_method -> nx_crypto_init) in _nx_secure_tls_ecc_generate_keys() 387 status = hash_method -> nx_crypto_init((NX_CRYPTO_METHOD*)hash_method, in _nx_secure_tls_ecc_generate_keys() 400 if (hash_method -> nx_crypto_operation != NX_NULL) in _nx_secure_tls_ecc_generate_keys() 402 status = hash_method -> nx_crypto_operation(NX_CRYPTO_HASH_INITIALIZE, in _nx_secure_tls_ecc_generate_keys() 404 (NX_CRYPTO_METHOD*)hash_method, in _nx_secure_tls_ecc_generate_keys() 427 status = hash_method -> nx_crypto_operation(NX_CRYPTO_HASH_UPDATE, in _nx_secure_tls_ecc_generate_keys() [all …]
|
D | nx_secure_tls_process_certificate_verify.c | 121 const NX_CRYPTO_METHOD *hash_method = NX_NULL; in _nx_secure_tls_process_certificate_verify() local 258 hash_method = crypto_methods -> nx_secure_x509_hash_method; in _nx_secure_tls_process_certificate_verify() 265 if (hash_method -> nx_crypto_init) in _nx_secure_tls_process_certificate_verify() 267 status = hash_method -> nx_crypto_init((NX_CRYPTO_METHOD*)hash_method, in _nx_secure_tls_process_certificate_verify() 280 if (hash_method -> nx_crypto_operation != NX_NULL) in _nx_secure_tls_process_certificate_verify() 282 status = hash_method -> nx_crypto_operation(NX_CRYPTO_HASH_INITIALIZE, in _nx_secure_tls_process_certificate_verify() 284 (NX_CRYPTO_METHOD*)hash_method, in _nx_secure_tls_process_certificate_verify() 303 if (hash_method -> nx_crypto_operation != NX_NULL) in _nx_secure_tls_process_certificate_verify() 305 status = hash_method -> nx_crypto_operation(NX_CRYPTO_HASH_UPDATE, in _nx_secure_tls_process_certificate_verify() 307 (NX_CRYPTO_METHOD*)hash_method, in _nx_secure_tls_process_certificate_verify() [all …]
|
D | nx_secure_tls_send_certificate_verify.c | 125 const NX_CRYPTO_METHOD *hash_method = NX_NULL; in _nx_secure_tls_send_certificate_verify() local 281 hash_method = crypto_methods -> nx_secure_x509_hash_method; in _nx_secure_tls_send_certificate_verify() 287 if (hash_method -> nx_crypto_init) in _nx_secure_tls_send_certificate_verify() 289 status = hash_method -> nx_crypto_init((NX_CRYPTO_METHOD*)hash_method, in _nx_secure_tls_send_certificate_verify() 302 if (hash_method -> nx_crypto_operation != NX_NULL) in _nx_secure_tls_send_certificate_verify() 304 status = hash_method -> nx_crypto_operation(NX_CRYPTO_HASH_INITIALIZE, in _nx_secure_tls_send_certificate_verify() 306 (NX_CRYPTO_METHOD*)hash_method, in _nx_secure_tls_send_certificate_verify() 325 if (hash_method -> nx_crypto_operation != NX_NULL) in _nx_secure_tls_send_certificate_verify() 327 status = hash_method -> nx_crypto_operation(NX_CRYPTO_HASH_UPDATE, in _nx_secure_tls_send_certificate_verify() 329 (NX_CRYPTO_METHOD*)hash_method, in _nx_secure_tls_send_certificate_verify() [all …]
|
D | nx_secure_x509_certificate_verify.c | 103 const NX_CRYPTO_METHOD *hash_method; in _nx_secure_x509_certificate_verify() local 146 hash_method = crypto_methods -> nx_secure_x509_hash_method; in _nx_secure_x509_certificate_verify() 152 if (hash_method -> nx_crypto_init) in _nx_secure_x509_certificate_verify() 154 status = hash_method -> nx_crypto_init((NX_CRYPTO_METHOD*)hash_method, in _nx_secure_x509_certificate_verify() 168 if (hash_method -> nx_crypto_operation != NX_CRYPTO_NULL) in _nx_secure_x509_certificate_verify() 170 status = hash_method -> nx_crypto_operation(NX_CRYPTO_VERIFY, in _nx_secure_x509_certificate_verify() 172 (NX_CRYPTO_METHOD*)hash_method, in _nx_secure_x509_certificate_verify() 190 if (hash_method -> nx_crypto_cleanup) in _nx_secure_x509_certificate_verify() 192 status = hash_method -> nx_crypto_cleanup(certificate -> nx_secure_x509_hash_metadata_area); in _nx_secure_x509_certificate_verify() 203 hash_length = (hash_method -> nx_crypto_ICV_size_in_bits >> 3); in _nx_secure_x509_certificate_verify() [all …]
|
D | nx_secure_x509_crl_verify.c | 103 const NX_CRYPTO_METHOD *hash_method; in _nx_secure_x509_crl_verify() local 146 hash_method = crypto_methods -> nx_secure_x509_hash_method; in _nx_secure_x509_crl_verify() 149 if (hash_method -> nx_crypto_init) in _nx_secure_x509_crl_verify() 151 status = hash_method -> nx_crypto_init((NX_CRYPTO_METHOD*)hash_method, in _nx_secure_x509_crl_verify() 165 if (hash_method -> nx_crypto_operation != NX_CRYPTO_NULL) in _nx_secure_x509_crl_verify() 167 status = hash_method -> nx_crypto_operation(NX_CRYPTO_VERIFY, in _nx_secure_x509_crl_verify() 169 (NX_CRYPTO_METHOD*)hash_method, in _nx_secure_x509_crl_verify() 187 if (hash_method -> nx_crypto_cleanup) in _nx_secure_x509_crl_verify() 189 status = hash_method -> nx_crypto_cleanup(certificate -> nx_secure_x509_hash_metadata_area); in _nx_secure_x509_crl_verify() 200 hash_length = (hash_method -> nx_crypto_ICV_size_in_bits >> 3); in _nx_secure_x509_crl_verify() [all …]
|
D | nx_secure_tls_psk_binder_generate.c | 103 const NX_CRYPTO_METHOD *hash_method = NX_NULL; in _nx_secure_tls_psk_binder_generate() local 169 hash_method = psk_entry->nx_secure_tls_psk_binder_ciphersuite->nx_secure_tls_hash; in _nx_secure_tls_psk_binder_generate() 175 … hash_method = tls_session->nx_secure_tls_crypto_table->nx_secure_tls_handshake_hash_sha256_method; in _nx_secure_tls_psk_binder_generate() 176 hash_size = (hash_method->nx_crypto_ICV_size_in_bits >> 3); in _nx_secure_tls_psk_binder_generate() 182 status = _nx_secure_tls_1_3_generate_psk_secret(tls_session, psk_entry, hash_method); in _nx_secure_tls_psk_binder_generate() 211 if (hash_method -> nx_crypto_init) in _nx_secure_tls_psk_binder_generate() 227 …_crypto_operation(NX_CRYPTO_HMAC_SET_HASH, NX_NULL, (NX_CRYPTO_METHOD*)hash_method, NX_NULL, 0, NX… in _nx_secure_tls_psk_binder_generate()
|
D | nx_secure_tls_1_3_finished_hash_generate.c | 86 const NX_CRYPTO_METHOD *hash_method = NX_NULL; in _nx_secure_tls_1_3_finished_hash_generate() local 133 hash_method = tls_session -> nx_secure_tls_session_ciphersuite -> nx_secure_tls_hash; in _nx_secure_tls_1_3_finished_hash_generate() 158 if (hash_method -> nx_crypto_init) in _nx_secure_tls_1_3_finished_hash_generate() 174 …_crypto_operation(NX_CRYPTO_HMAC_SET_HASH, NX_NULL, (NX_CRYPTO_METHOD*)hash_method, NX_NULL, 0, NX… in _nx_secure_tls_1_3_finished_hash_generate()
|
/NetX-Duo-v6.4.1/crypto_libraries/src/ |
D | nx_crypto_phash.c | 93 NX_CRYPTO_METHOD *hash_method = phash -> nx_crypto_hmac_method; in _nx_crypto_phash() local 98 if (hash_method == NX_CRYPTO_NULL in _nx_crypto_phash() 99 || hash_method -> nx_crypto_operation == NX_CRYPTO_NULL in _nx_crypto_phash() 100 || hash_method -> nx_crypto_cleanup == NX_CRYPTO_NULL in _nx_crypto_phash() 113 hash_size = hash_method -> nx_crypto_ICV_size_in_bits >> 3; in _nx_crypto_phash() 138 if (hash_method -> nx_crypto_init) in _nx_crypto_phash() 140 status = hash_method -> nx_crypto_init(hash_method, in _nx_crypto_phash() 153 status = hash_method -> nx_crypto_operation(NX_CRYPTO_AUTHENTICATE, in _nx_crypto_phash() 155 hash_method, in _nx_crypto_phash() 196 status = hash_method -> nx_crypto_operation(NX_CRYPTO_AUTHENTICATE, in _nx_crypto_phash() [all …]
|
D | nx_crypto_ecjpake.c | 73 NX_CRYPTO_METHOD *hash_method, in _nx_crypto_ecjpake_init() argument 82 ecjpake -> nx_crypto_ecjpake_hash_method = hash_method; in _nx_crypto_ecjpake_init() 776 NX_CRYPTO_KEEP UINT _nx_crypto_ecjpake_schnorr_zkp_hash(NX_CRYPTO_METHOD *hash_method, in _nx_crypto_ecjpake_schnorr_zkp_hash() argument 791 if (hash_method -> nx_crypto_init) in _nx_crypto_ecjpake_schnorr_zkp_hash() 793 status = hash_method -> nx_crypto_init(hash_method, in _nx_crypto_ecjpake_schnorr_zkp_hash() 798 hash_method -> nx_crypto_metadata_area_size); in _nx_crypto_ecjpake_schnorr_zkp_hash() 806 status = hash_method -> nx_crypto_operation(NX_CRYPTO_HASH_INITIALIZE, in _nx_crypto_ecjpake_schnorr_zkp_hash() 808 hash_method, in _nx_crypto_ecjpake_schnorr_zkp_hash() 817 hash_method -> nx_crypto_metadata_area_size, in _nx_crypto_ecjpake_schnorr_zkp_hash() 830 status = hash_method -> nx_crypto_operation(NX_CRYPTO_HASH_UPDATE, in _nx_crypto_ecjpake_schnorr_zkp_hash() [all …]
|
D | nx_crypto_ecdsa.c | 693 NX_CRYPTO_METHOD *hash_method; in _nx_crypto_method_ecdsa_operation() local 787 hash_method = (NX_CRYPTO_METHOD *)input; in _nx_crypto_method_ecdsa_operation() 791 if ((hash_method -> nx_crypto_metadata_area_size + in _nx_crypto_method_ecdsa_operation() 792 (hash_method -> nx_crypto_ICV_size_in_bits >> 3)) > in _nx_crypto_method_ecdsa_operation() 799 ecdsa -> nx_crypto_ecdsa_hash_method = hash_method; in _nx_crypto_method_ecdsa_operation() 804 hash_method = ecdsa -> nx_crypto_ecdsa_hash_method; in _nx_crypto_method_ecdsa_operation() 805 if (hash_method == NX_CRYPTO_NULL) in _nx_crypto_method_ecdsa_operation() 816 …(sizeof(ecdsa -> nx_crypto_ecdsa_scratch_buffer) - (hash_method -> nx_crypto_ICV_size_in_bits >> 3… in _nx_crypto_method_ecdsa_operation() 819 if (hash_method -> nx_crypto_init) in _nx_crypto_method_ecdsa_operation() 821 status = hash_method -> nx_crypto_init(hash_method, in _nx_crypto_method_ecdsa_operation() [all …]
|
D | nx_crypto_pkcs1_v1.5.c | 122 if (ctx -> hash_method == NX_CRYPTO_NULL in _nx_crypto_pkcs1_v1_5_sign() 135 …status = _nx_crypto_pkcs1_v1_5_encode(input, input_length, ctx -> hash_method, ctx -> hash_metadat… in _nx_crypto_pkcs1_v1_5_sign() 238 if (ctx -> hash_method == NX_CRYPTO_NULL in _nx_crypto_pkcs1_v1_5_verify() 296 …status = _nx_crypto_pkcs1_v1_5_encode(message, message_length, ctx -> hash_method, ctx -> hash_met… in _nx_crypto_pkcs1_v1_5_verify() 351 NX_CRYPTO_METHOD *hash_method, in _nx_crypto_pkcs1_v1_5_encode() argument 372 hash_length = (hash_method -> nx_crypto_ICV_size_in_bits) >> 3; in _nx_crypto_pkcs1_v1_5_encode() 375 switch(hash_method -> nx_crypto_algorithm) in _nx_crypto_pkcs1_v1_5_encode() 437 status = hash_method -> nx_crypto_operation(NX_CRYPTO_AUTHENTICATE, in _nx_crypto_pkcs1_v1_5_encode() 439 hash_method, in _nx_crypto_pkcs1_v1_5_encode() 687 … || (options -> hash_metadata_size < (options -> hash_method) -> nx_crypto_metadata_area_size)) in _nx_crypto_method_pkcs1_v1_5_operation() [all …]
|
D | nx_crypto_hmac.c | 449 hash = hmac->hash_method; in _nx_crypto_hmac_hash_initialize() 525 hash = hmac->hash_method; in _nx_crypto_hmac_hash_update() 603 hash = hmac->hash_method; in _nx_crypto_hmac_hash_digest_calculate() 707 hmac->hash_method = method; in _nx_crypto_method_hmac_init() 876 hmac->hash_method = method; in _nx_crypto_method_hmac_operation() 911 … (output_length_in_byte > (ULONG)((hmac-> hash_method -> nx_crypto_ICV_size_in_bits) >> 3) ? in _nx_crypto_method_hmac_operation() 912 … ((hmac-> hash_method -> nx_crypto_ICV_size_in_bits) >> 3) : output_length_in_byte)); in _nx_crypto_method_hmac_operation() 927 … (output_length_in_byte > (ULONG)((hmac -> hash_method -> nx_crypto_ICV_size_in_bits) >> 3) ? in _nx_crypto_method_hmac_operation() 928 … ((hmac -> hash_method -> nx_crypto_ICV_size_in_bits) >> 3) : output_length_in_byte)); in _nx_crypto_method_hmac_operation()
|
D | nx_crypto_method_self_test_ecdsa.c | 105 NX_CRYPTO_METHOD *hash_method; in _nx_crypto_method_self_test_ecdsa() local 122 hash_method = &crypto_method_sha256; in _nx_crypto_method_self_test_ecdsa() 156 (UCHAR *)hash_method, in _nx_crypto_method_self_test_ecdsa()
|
D | nx_crypto_method_self_test_pkcs1.c | 175 pkcs1_options.hash_method = &crypto_method_sha256; in _nx_crypto_method_self_test_pkcs1()
|
/NetX-Duo-v6.4.1/crypto_libraries/inc/ |
D | nx_crypto_ecjpake.h | 105 NX_CRYPTO_METHOD *hash_method, 137 UINT _nx_crypto_ecjpake_schnorr_zkp_hash(NX_CRYPTO_METHOD *hash_method, 148 UINT _nx_crypto_ecjpake_schnorr_zkp_generate(NX_CRYPTO_METHOD *hash_method, 160 UINT _nx_crypto_ecjpake_schnorr_zkp_verify(NX_CRYPTO_METHOD *hash_method, 182 UINT _nx_crypto_ecjpake_pre_master_secret_generate(NX_CRYPTO_METHOD *hash_method, 192 UINT _nx_crypto_ecjpake_key_encryption_key_generate(NX_CRYPTO_METHOD *hash_method,
|
D | nx_crypto_pkcs1_v1.5.h | 67 NX_CRYPTO_METHOD *hash_method; member 81 NX_CRYPTO_METHOD *hash_method; member 97 NX_CRYPTO_METHOD *hash_method,
|
D | nx_crypto_hmac.h | 79 NX_CRYPTO_METHOD *hash_method; member
|
/NetX-Duo-v6.4.1/test/regression/nx_secure_test/ |
D | nx_secure_pkcs1_v1_5_test.c | 167 pkcs1_options.hash_method = &crypto_method_sha1; in thread_0_entry() 308 pkcs1_options.hash_method = &crypto_method_sha1; in thread_0_entry() 338 pkcs1.hash_method = &crypto_method_hmac_sha256; in thread_0_entry() 372 pkcs1.hash_method = &crypto_method_sha1; in thread_0_entry() 375 pkcs1_options.hash_method = &crypto_method_sha1; in thread_0_entry() 413 pkcs1.hash_method = NX_CRYPTO_NULL; in thread_0_entry() 421 pkcs1.hash_method = &crypto_method_sha1; in thread_0_entry() 448 pkcs1.hash_method = NX_CRYPTO_NULL; in thread_0_entry() 456 pkcs1.hash_method = &crypto_method_sha1; in thread_0_entry()
|
D | nx_secure_tls_coverage_test.c | 1268 NX_CRYPTO_METHOD hash_method; in ntest_0_entry() local 1271 memset(&hash_method, 0, sizeof(hash_method)); in ntest_0_entry() 1282 test_ciphersuite.nx_secure_tls_hash = &hash_method; in ntest_0_entry() 1283 hash_method.nx_crypto_operation = _hash_initialize_fail; in ntest_0_entry() 1287 hash_method.nx_crypto_operation = _hash_update_fail; in ntest_0_entry() 1405 test_ciphersuite.nx_secure_tls_hash = &hash_method; in ntest_0_entry() 1406 hash_method.nx_crypto_operation = NX_NULL; in ntest_0_entry() 1460 test_ciphersuite.nx_secure_tls_session_cipher = &hash_method; in ntest_0_entry() 1461 hash_method.nx_crypto_algorithm = NX_CRYPTO_ENCRYPTION_AES_CBC; in ntest_0_entry() 1471 test_crypto_table.nx_secure_tls_handshake_hash_sha256_method = &hash_method; in ntest_0_entry() [all …]
|
D | nx_secure_tls_server_handshake_test.c | 643 NX_CRYPTO_METHOD hash_method; in ntest_1_entry() local 644 memset(&hash_method, 0, sizeof(hash_method)); in ntest_1_entry() 645 test_crypto_table.nx_secure_tls_handshake_hash_sha256_method = &hash_method; in ntest_1_entry() 646 test_ciphersuite.nx_secure_tls_prf = &hash_method; in ntest_1_entry() 647 hash_method.nx_crypto_operation = test_crypto_operation; in ntest_1_entry() 648 hash_method.nx_crypto_init = test_crypto_init; in ntest_1_entry() 976 test_crypto_table.nx_secure_tls_handshake_hash_sha256_method = &hash_method; in ntest_1_entry() 977 test_ciphersuite.nx_secure_tls_prf = &hash_method; in ntest_1_entry() 978 hash_method.nx_crypto_operation = test_crypto_operation; in ntest_1_entry() 979 hash_method.nx_crypto_init = test_crypto_init; in ntest_1_entry()
|
/NetX-Duo-v6.4.1/nx_secure/inc/ |
D | nx_secure_tls.h | 1497 const NX_CRYPTO_METHOD *hash_method);
|