Home
last modified time | relevance | path

Searched refs:nx_crypto_algorithm (Results 1 – 25 of 80) sorted by relevance

1234

/NetX-Duo-v6.4.1/test/regression/nx_secure_test/
Dnx_secure_sha_additional_test.c131 test_method.nx_crypto_algorithm = NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_256; in thread_0_entry()
211 test_method.nx_crypto_algorithm = 0xFFFF; in thread_0_entry()
227 test_method.nx_crypto_algorithm = NX_CRYPTO_HASH_SHA512; in thread_0_entry()
466 test_method.nx_crypto_algorithm = 0; in thread_0_entry()
478 test_method.nx_crypto_algorithm = NX_CRYPTO_HASH_SHA256; in thread_0_entry()
490 test_method.nx_crypto_algorithm = NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_256; in thread_0_entry()
502 test_method.nx_crypto_algorithm = NX_CRYPTO_HASH_SHA224; in thread_0_entry()
515 test_method.nx_crypto_algorithm = NX_CRYPTO_HASH_SHA256; in thread_0_entry()
527 test_method.nx_crypto_algorithm = NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_256; in thread_0_entry()
539 test_method.nx_crypto_algorithm = NX_CRYPTO_HASH_SHA224; in thread_0_entry()
[all …]
Dnx_secure_aes_additional_test.c167 test_crypto_method_aes.nx_crypto_algorithm = aes_data[i].algorithm; in thread_0_entry()
221 test_crypto_method_aes.nx_crypto_algorithm = 0xFFFF; in thread_0_entry()
238 test_crypto_method_aes.nx_crypto_algorithm = NX_CRYPTO_ENCRYPTION_AES_CBC; in thread_0_entry()
283 test_crypto_method_aes.nx_crypto_algorithm = NX_CRYPTO_ENCRYPTION_AES_CCM_8; in thread_0_entry()
436 test_crypto_method_aes.nx_crypto_algorithm = NX_CRYPTO_ENCRYPTION_AES_CCM_8 - 1; in thread_0_entry()
440 test_crypto_method_aes.nx_crypto_algorithm = NX_CRYPTO_ENCRYPTION_AES_CCM + 1; in thread_0_entry()
540 test_crypto_method_aes.nx_crypto_algorithm = NX_CRYPTO_AUTHENTICATION_AES_XCBC_MAC_96; in thread_0_entry()
567 test_method.nx_crypto_algorithm = NX_CRYPTO_ENCRYPTION_AES_CBC; in thread_0_entry()
574 test_method.nx_crypto_algorithm = NX_CRYPTO_ENCRYPTION_AES_CTR; in thread_0_entry()
581 test_method.nx_crypto_algorithm = NX_CRYPTO_ENCRYPTION_AES_CTR; in thread_0_entry()
[all …]
Dnx_secure_tls_client_handshake_coverage_test.c442 temp_crypto_algorithm = fake_crypto_method.nx_crypto_algorithm; in TEST()
443 fake_crypto_method.nx_crypto_algorithm = NX_CRYPTO_KEY_EXCHANGE_ECDH; in TEST()
446 fake_crypto_method.nx_crypto_algorithm = temp_crypto_algorithm; in TEST()
508 fake_crypto_method.nx_crypto_algorithm = NX_CRYPTO_KEY_EXCHANGE_RSA; in TEST()
519 fake_crypto_method.nx_crypto_algorithm = NX_CRYPTO_KEY_EXCHANGE_RSA; in TEST()
530 fake_crypto_method.nx_crypto_algorithm = NX_CRYPTO_KEY_EXCHANGE_RSA; in TEST()
540 fake_crypto_method.nx_crypto_algorithm = NX_CRYPTO_KEY_EXCHANGE_RSA; in TEST()
Dnx_secure_hmac_sha512_test.c163 test_crypto_method_hmac_sha512.nx_crypto_algorithm = 0xFFFF; in thread_0_entry()
248 test_crypto_method_hmac_sha512.nx_crypto_algorithm = NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_512; in thread_0_entry()
260 test_crypto_method_hmac_sha512.nx_crypto_algorithm = NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_512; in thread_0_entry()
/NetX-Duo-v6.4.1/crypto_libraries/src/
Dnx_crypto_sha5.c825 if ((method -> nx_crypto_algorithm != NX_CRYPTO_HASH_SHA384) && in _nx_crypto_method_sha512_operation()
826 (method -> nx_crypto_algorithm != NX_CRYPTO_HASH_SHA512) && in _nx_crypto_method_sha512_operation()
827 (method -> nx_crypto_algorithm != NX_CRYPTO_HASH_SHA512_224) && in _nx_crypto_method_sha512_operation()
828 (method -> nx_crypto_algorithm != NX_CRYPTO_HASH_SHA512_256)) in _nx_crypto_method_sha512_operation()
837 … _nx_crypto_sha512_initialize((NX_CRYPTO_SHA512 *)crypto_metadata, method -> nx_crypto_algorithm); in _nx_crypto_method_sha512_operation()
845 … if(((method -> nx_crypto_algorithm == NX_CRYPTO_HASH_SHA512) && (output_length_in_byte < 64)) || in _nx_crypto_method_sha512_operation()
846 … ((method -> nx_crypto_algorithm == NX_CRYPTO_HASH_SHA384) && (output_length_in_byte < 48)) || in _nx_crypto_method_sha512_operation()
847 … ((method -> nx_crypto_algorithm == NX_CRYPTO_HASH_SHA512_224) && (output_length_in_byte < 28)) || in _nx_crypto_method_sha512_operation()
848 … ((method -> nx_crypto_algorithm == NX_CRYPTO_HASH_SHA512_256) && (output_length_in_byte < 32))) in _nx_crypto_method_sha512_operation()
852 …ha512_digest_calculate((NX_CRYPTO_SHA512 *)crypto_metadata, output, method -> nx_crypto_algorithm); in _nx_crypto_method_sha512_operation()
[all …]
Dnx_crypto_hmac_sha5.c268 if (method -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_512) in _nx_crypto_method_hmac_sha512_operation()
272 else if (method -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_384) in _nx_crypto_method_hmac_sha512_operation()
276 else if (method -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_512_224) in _nx_crypto_method_hmac_sha512_operation()
280 else if (method -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_512_256) in _nx_crypto_method_hmac_sha512_operation()
294 method -> nx_crypto_algorithm, in _nx_crypto_method_hmac_sha512_operation()
Dnx_crypto_sha2.c825 if ((method -> nx_crypto_algorithm != NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_256) && in _nx_crypto_method_sha256_operation()
826 (method -> nx_crypto_algorithm != NX_CRYPTO_HASH_SHA224) && in _nx_crypto_method_sha256_operation()
827 (method -> nx_crypto_algorithm != NX_CRYPTO_HASH_SHA256)) in _nx_crypto_method_sha256_operation()
836 … _nx_crypto_sha256_initialize((NX_CRYPTO_SHA256 *)crypto_metadata, method -> nx_crypto_algorithm); in _nx_crypto_method_sha256_operation()
844 if ((method -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_256) || in _nx_crypto_method_sha256_operation()
845 (method -> nx_crypto_algorithm == NX_CRYPTO_HASH_SHA256)) in _nx_crypto_method_sha256_operation()
853 method -> nx_crypto_algorithm); in _nx_crypto_method_sha256_operation()
857 if ((method -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_256) || in _nx_crypto_method_sha256_operation()
858 (method -> nx_crypto_algorithm == NX_CRYPTO_HASH_SHA256)) in _nx_crypto_method_sha256_operation()
866 _nx_crypto_sha256_initialize(ctx, method -> nx_crypto_algorithm); in _nx_crypto_method_sha256_operation()
[all …]
Dnx_crypto_hmac_sha2.c260 if (method -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_224) in _nx_crypto_method_hmac_sha256_operation()
264 else if (method -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_256) in _nx_crypto_method_hmac_sha256_operation()
280 method -> nx_crypto_algorithm, in _nx_crypto_method_hmac_sha256_operation()
Dnx_crypto_method_self_test_hmac_md5.c111 if (crypto_method_hmac_md5 -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_MD5_96) in _nx_crypto_method_self_test_hmac_md5()
115 else if (crypto_method_hmac_md5 -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_MD5_128) in _nx_crypto_method_self_test_hmac_md5()
/NetX-Duo-v6.4.1/nx_secure/src/
Dnx_secure_generate_master_secret.c107 …if (ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_RSA in _nx_secure_generate_master_secret()
109 …|| ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_ECD… in _nx_secure_generate_master_secret()
110 …|| ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_ECDH in _nx_secure_generate_master_secret()
113 … || ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_PSK in _nx_secure_generate_master_secret()
116 …|| ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_ECJPA… in _nx_secure_generate_master_secret()
Dnx_secure_tls_record_payload_encrypt.c201 if (session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_CBC) in _nx_secure_tls_record_payload_encrypt()
307 if (session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_CBC) in _nx_secure_tls_record_payload_encrypt()
477 if ((session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_CCM_8) || in _nx_secure_tls_record_data_encrypt_init()
478 (session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_CCM_12) || in _nx_secure_tls_record_data_encrypt_init()
479 (session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_CCM_16) || in _nx_secure_tls_record_data_encrypt_init()
480 (session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_GCM_16) || in _nx_secure_tls_record_data_encrypt_init()
481 NX_SECURE_AEAD_CIPHER_CHECK(session_cipher_method -> nx_crypto_algorithm)) in _nx_secure_tls_record_data_encrypt_init()
631 if (session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_CBC) in _nx_secure_tls_record_data_encrypt_init()
Dnx_secure_generate_client_key_exchange.c131 …if (ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_EC… in _nx_secure_generate_client_key_exchange()
132 … ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_ECDHE) in _nx_secure_generate_client_key_exchange()
155 … if (ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_PSK) in _nx_secure_generate_client_key_exchange()
183 …if (ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_ECJP… in _nx_secure_generate_client_key_exchange()
Dnx_secure_generate_premaster_secret.c120 …if (ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_EC… in _nx_secure_generate_premaster_secret()
125 …else if (ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHAN… in _nx_secure_generate_premaster_secret()
231 … if (ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_PSK) in _nx_secure_generate_premaster_secret()
295 …if (ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_ECJP… in _nx_secure_generate_premaster_secret()
Dnx_secure_generate_server_key_exchange.c142 … if (ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_PSK) in _nx_secure_generate_server_key_exchange()
174 …if (ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_ECJP… in _nx_secure_generate_server_key_exchange()
219 …if (ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_EC… in _nx_secure_generate_server_key_exchange()
Dnx_secure_process_client_key_exchange.c149 …if (ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_ECJP… in _nx_secure_process_client_key_exchange()
188 … if (ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_PSK) in _nx_secure_process_client_key_exchange()
202 …if (ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_EC… in _nx_secure_process_client_key_exchange()
203 … ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_ECDHE) in _nx_secure_process_client_key_exchange()
213 …if (ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_EC… in _nx_secure_process_client_key_exchange()
403 if (public_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_RSA && in _nx_secure_process_client_key_exchange()
Dnx_secure_dtls_server_handshake.c424 … nx_secure_tls_session_ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm != NX_CRYPT… in _nx_secure_dtls_server_handshake()
425 … nx_secure_tls_session_ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm != NX_CRYPT… in _nx_secure_dtls_server_handshake()
443 … nx_secure_tls_session_ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPT… in _nx_secure_dtls_server_handshake()
444 … nx_secure_tls_session_ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPT… in _nx_secure_dtls_server_handshake()
445 …x_secure_tls_session_ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPT… in _nx_secure_dtls_server_handshake()
Dnx_secure_crypto_method_self_test_hmac_md5.c107 if (crypto_method_hmac_md5 -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_MD5_96) in _nx_secure_crypto_method_self_test_hmac_md5()
111 else if (crypto_method_hmac_md5 -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_MD5_128) in _nx_secure_crypto_method_self_test_hmac_md5()
Dnx_secure_process_server_key_exchange.c167 … if (ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_PSK) in _nx_secure_process_server_key_exchange()
192 …if (ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_ECJP… in _nx_secure_process_server_key_exchange()
239 …if ((ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_E… in _nx_secure_process_server_key_exchange()
670 (auth_method -> nx_crypto_algorithm == NX_CRYPTO_DIGITAL_SIGNATURE_RSA || in _nx_secure_process_server_key_exchange()
671 auth_method -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_RSA)) in _nx_secure_process_server_key_exchange()
690 if (auth_method -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_RSA) in _nx_secure_process_server_key_exchange()
793 auth_method -> nx_crypto_algorithm == NX_CRYPTO_DIGITAL_SIGNATURE_ECDSA) in _nx_secure_process_server_key_exchange()
Dnx_secure_dtls_process_clienthello.c409 …if ((ciphersuite_info -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANG… in _nx_secure_dtls_process_clienthello()
675 switch (ciphersuite_info -> nx_secure_tls_public_cipher -> nx_crypto_algorithm) in _nx_secure_dtls_check_ciphersuite()
684 …if (ciphersuite_info -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_DIGITAL_SIGN… in _nx_secure_dtls_check_ciphersuite()
705 …if (ciphersuite_info -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_DIGITAL_SIGN… in _nx_secure_dtls_check_ciphersuite()
727 …if (ciphersuite_info -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_DIGITAL_SIGN… in _nx_secure_dtls_check_ciphersuite()
Dnx_secure_tls_record_payload_decrypt.c161 if ((session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_CCM_8) || in _nx_secure_tls_record_payload_decrypt()
162 (session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_CCM_12) || in _nx_secure_tls_record_payload_decrypt()
163 (session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_CCM_16) || in _nx_secure_tls_record_payload_decrypt()
164 (session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_GCM_16) || in _nx_secure_tls_record_payload_decrypt()
165 NX_SECURE_AEAD_CIPHER_CHECK(session_cipher_method -> nx_crypto_algorithm)) in _nx_secure_tls_record_payload_decrypt()
400 if (session_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_ENCRYPTION_AES_CBC) in _nx_secure_tls_record_payload_decrypt()
Dnx_secure_tls_process_clienthello.c639 switch (ciphersuite_info -> nx_secure_tls_public_cipher -> nx_crypto_algorithm) in _nx_secure_tls_check_ciphersuite()
648 …if (ciphersuite_info -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_DIGITAL_SIGN… in _nx_secure_tls_check_ciphersuite()
675 …if (ciphersuite_info -> nx_secure_tls_public_auth -> nx_crypto_algorithm != NX_CRYPTO_DIGITAL_SIGN… in _nx_secure_tls_check_ciphersuite()
689 …if (ciphersuite_info -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPTO_DIGITAL_SIGN… in _nx_secure_tls_check_ciphersuite()
Dnx_secure_crypto_table_self_test.c242 crypto_algorithm = crypto_method -> nx_crypto_algorithm; in _nx_secure_crypto_method_self_test()
255 if (crypto_algorithm == nx_crypto_self_test_map[i].nx_crypto_algorithm) in _nx_secure_crypto_method_self_test()
Dnx_secure_tls_server_handshake.c286 … nx_secure_tls_session_ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm != NX_CRYPT… in _nx_secure_tls_server_handshake()
310 …x_secure_tls_session_ciphersuite -> nx_secure_tls_public_cipher -> nx_crypto_algorithm == NX_CRYPT… in _nx_secure_tls_server_handshake()
313 … nx_secure_tls_session_ciphersuite -> nx_secure_tls_public_auth -> nx_crypto_algorithm == NX_CRYPT… in _nx_secure_tls_server_handshake()
Dnx_secure_x509_certificate_verify.c210 if (public_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_RSA || in _nx_secure_x509_certificate_verify()
211 public_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_DIGITAL_SIGNATURE_RSA) in _nx_secure_x509_certificate_verify()
322 else if (public_cipher_method -> nx_crypto_algorithm == NX_CRYPTO_DIGITAL_SIGNATURE_ECDSA) in _nx_secure_x509_certificate_verify()
/NetX-Duo-v6.4.1/test/regression/nx_secure_test/hash_clone/
Dnx_crypto_clone_cleanup_test.c116 crypto_instances[i].nx_crypto_hash_algorithm = method -> nx_crypto_algorithm; in _nx_crypto_method_clone_cleanup_test_init()
261 _nx_crypto_clone_cleanup_test_initialize(inst, method -> nx_crypto_algorithm); in _nx_crypto_method_clone_cleanup_test_operation()
269 if ((method -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_256) || in _nx_crypto_method_clone_cleanup_test_operation()
270 (method -> nx_crypto_algorithm == NX_CRYPTO_HASH_SHA256)) in _nx_crypto_method_clone_cleanup_test_operation()
278 method -> nx_crypto_algorithm); in _nx_crypto_method_clone_cleanup_test_operation()
282 if ((method -> nx_crypto_algorithm == NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_256) || in _nx_crypto_method_clone_cleanup_test_operation()
283 (method -> nx_crypto_algorithm == NX_CRYPTO_HASH_SHA256)) in _nx_crypto_method_clone_cleanup_test_operation()
298 crypto_instances[i].nx_crypto_hash_algorithm = method -> nx_crypto_algorithm; in _nx_crypto_method_clone_cleanup_test_operation()
301 … _nx_crypto_clone_cleanup_test_initialize(&crypto_instances[i], method -> nx_crypto_algorithm); in _nx_crypto_method_clone_cleanup_test_operation()
303 …o_clone_cleanup_test_digest_calculate(&crypto_instances[i], output, method -> nx_crypto_algorithm); in _nx_crypto_method_clone_cleanup_test_operation()

1234