Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 116) sorted by relevance

12345

/NetX-Duo-v6.2.1/crypto_libraries/src/
Dnx_crypto_hmac_sha5.c222 NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha512_operation(UINT op, /* Encrypt, Decrypt, Aut… in _nx_crypto_method_hmac_sha512_operation() argument
261 if (op != NX_CRYPTO_AUTHENTICATE && op != NX_CRYPTO_VERIFY && op != NX_CRYPTO_HASH_INITIALIZE && in _nx_crypto_method_hmac_sha512_operation()
262 op != NX_CRYPTO_HASH_UPDATE && op != NX_CRYPTO_HASH_CALCULATE) in _nx_crypto_method_hmac_sha512_operation()
302 switch (op) in _nx_crypto_method_hmac_sha512_operation()
Dnx_crypto_ecjpake.c1810 NX_CRYPTO_KEEP UINT _nx_crypto_method_ecjpake_operation(UINT op, in _nx_crypto_method_ecjpake_operation() argument
1846 if ((op == NX_CRYPTO_ECJPAKE_CLIENT_HELLO_GENERATE) || in _nx_crypto_method_ecjpake_operation()
1847 (op == NX_CRYPTO_ECJPAKE_CLIENT_HELLO_PROCESS) || in _nx_crypto_method_ecjpake_operation()
1848 (op == NX_CRYPTO_ECJPAKE_CLIENT_KEY_EXCHANGE_GENERATE) || in _nx_crypto_method_ecjpake_operation()
1849 (op == NX_CRYPTO_ECJPAKE_CLIENT_KEY_EXCHANGE_PROCESS)) in _nx_crypto_method_ecjpake_operation()
1854 else if((op == NX_CRYPTO_ECJPAKE_SERVER_HELLO_GENERATE) || in _nx_crypto_method_ecjpake_operation()
1855 (op == NX_CRYPTO_ECJPAKE_SERVER_HELLO_PROCESS) || in _nx_crypto_method_ecjpake_operation()
1856 (op == NX_CRYPTO_ECJPAKE_SERVER_KEY_EXCHANGE_GENERATE) || in _nx_crypto_method_ecjpake_operation()
1857 (op == NX_CRYPTO_ECJPAKE_SERVER_KEY_EXCHANGE_PROCESS)) in _nx_crypto_method_ecjpake_operation()
1865 if (op == NX_CRYPTO_ECJPAKE_HASH_METHOD_SET) in _nx_crypto_method_ecjpake_operation()
[all …]
Dnx_crypto_ecdsa.c678 NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdsa_operation(UINT op, in _nx_crypto_method_ecdsa_operation() argument
717 if (op == NX_CRYPTO_EC_CURVE_SET) in _nx_crypto_method_ecdsa_operation()
735 else if (op == NX_CRYPTO_AUTHENTICATE) in _nx_crypto_method_ecdsa_operation()
754 else if (op == NX_CRYPTO_VERIFY) in _nx_crypto_method_ecdsa_operation()
769 else if (op == NX_CRYPTO_EC_KEY_PAIR_GENERATE) in _nx_crypto_method_ecdsa_operation()
783 else if (op == NX_CRYPTO_HASH_METHOD_SET) in _nx_crypto_method_ecdsa_operation()
802 else if ((op == NX_CRYPTO_SIGNATURE_GENERATE) || (op == NX_CRYPTO_SIGNATURE_VERIFY)) in _nx_crypto_method_ecdsa_operation()
865 else if (op == NX_CRYPTO_SIGNATURE_GENERATE) in _nx_crypto_method_ecdsa_operation()
Dnx_crypto_sha5.c773 NX_CRYPTO_KEEP UINT _nx_crypto_method_sha512_operation(UINT op, /* Encrypt, Decrypt, Authenti… in _nx_crypto_method_sha512_operation() argument
818 if (op != NX_CRYPTO_AUTHENTICATE && op != NX_CRYPTO_VERIFY && op != NX_CRYPTO_HASH_INITIALIZE && in _nx_crypto_method_sha512_operation()
819 op != NX_CRYPTO_HASH_UPDATE && op != NX_CRYPTO_HASH_CALCULATE) in _nx_crypto_method_sha512_operation()
834 switch (op) in _nx_crypto_method_sha512_operation()
Dnx_crypto_null_cipher.c188 NX_CRYPTO_KEEP UINT _nx_crypto_method_null_operation(UINT op, /* Encrypt, Decrypt, Authentica… in _nx_crypto_method_null_operation() argument
203 NX_CRYPTO_PARAMETER_NOT_USED(op); in _nx_crypto_method_null_operation()
Dnx_crypto_ecdh.c637 NX_CRYPTO_KEEP UINT _nx_crypto_method_ecdh_operation(UINT op, in _nx_crypto_method_ecdh_operation() argument
674 if (op == NX_CRYPTO_EC_CURVE_SET) in _nx_crypto_method_ecdh_operation()
689 else if (op == NX_CRYPTO_EC_KEY_PAIR_GENERATE) in _nx_crypto_method_ecdh_operation()
703 else if (op == NX_CRYPTO_DH_SETUP) in _nx_crypto_method_ecdh_operation()
729 else if (op == NX_CRYPTO_DH_KEY_PAIR_IMPORT) in _nx_crypto_method_ecdh_operation()
756 else if (op == NX_CRYPTO_DH_PRIVATE_KEY_EXPORT) in _nx_crypto_method_ecdh_operation()
780 else if (op == NX_CRYPTO_DH_CALCULATE) in _nx_crypto_method_ecdh_operation()
Dnx_crypto_rsa.c365 NX_CRYPTO_KEEP UINT _nx_crypto_method_rsa_operation(UINT op, /* Encrypt, Decrypt, Authenticat… in _nx_crypto_method_rsa_operation() argument
405 if (op == NX_CRYPTO_SET_PRIME_P) in _nx_crypto_method_rsa_operation()
410 else if (op == NX_CRYPTO_SET_PRIME_Q) in _nx_crypto_method_rsa_operation()
Dnx_crypto_3des.c433 NX_CRYPTO_KEEP UINT _nx_crypto_method_3des_operation(UINT op, /* Encrypt, Decrypt, Authentic… in _nx_crypto_method_3des_operation() argument
460 if (op == NX_CRYPTO_AUTHENTICATE) in _nx_crypto_method_3des_operation()
490 switch (op) in _nx_crypto_method_3des_operation()
Dnx_crypto_aes.c1904 NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_operation(UINT op, /* Encrypt, Decrypt, Authenticat… in _nx_crypto_method_aes_operation() argument
1939 status = _nx_crypto_method_aes_cbc_operation(op, handle, method, key, key_size_in_bits, in _nx_crypto_method_aes_operation()
1950 status = _nx_crypto_method_aes_ccm_operation(op, handle, method, key, key_size_in_bits, in _nx_crypto_method_aes_operation()
1962 status = _nx_crypto_method_aes_gcm_operation(op, handle, method, key, key_size_in_bits, in _nx_crypto_method_aes_operation()
1973 status = _nx_crypto_method_aes_ctr_operation(op, handle, method, key, key_size_in_bits, in _nx_crypto_method_aes_operation()
1981 status = _nx_crypto_method_aes_xcbc_operation(op, handle, method, key, key_size_in_bits, in _nx_crypto_method_aes_operation()
2051 NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_cbc_operation(UINT op, /* Encrypt, Decrypt, Authent… in _nx_crypto_method_aes_cbc_operation() argument
2092 switch (op) in _nx_crypto_method_aes_cbc_operation()
2230 NX_CRYPTO_KEEP UINT _nx_crypto_method_aes_ccm_operation(UINT op, /* Encrypt, Decrypt, Authent… in _nx_crypto_method_aes_ccm_operation() argument
2279 switch (op) in _nx_crypto_method_aes_ccm_operation()
[all …]
Dnx_crypto_hmac_md5.c223 NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_md5_operation(UINT op, /* Encrypt, Decrypt, Authen… in _nx_crypto_method_hmac_md5_operation() argument
271 switch (op) in _nx_crypto_method_hmac_md5_operation()
Dnx_crypto_hmac_sha1.c222 NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha1_operation(UINT op, /* Encrypt, Decrypt, Authe… in _nx_crypto_method_hmac_sha1_operation() argument
270 switch (op) in _nx_crypto_method_hmac_sha1_operation()
Dnx_crypto_hmac_sha2.c223 NX_CRYPTO_KEEP UINT _nx_crypto_method_hmac_sha256_operation(UINT op, /* Encrypt, Decrypt, Aut… in _nx_crypto_method_hmac_sha256_operation() argument
288 switch (op) in _nx_crypto_method_hmac_sha256_operation()
Dnx_crypto_tls_prf_sha256.c229 NX_CRYPTO_KEEP UINT _nx_crypto_method_prf_sha_256_operation(UINT op, /* Encrypt, Decrypt, Aut… in _nx_crypto_method_prf_sha_256_operation() argument
267 if (op != NX_CRYPTO_PRF) in _nx_crypto_method_prf_sha_256_operation()
/NetX-Duo-v6.2.1/test/regression/nx_secure_test/
Dnx_secure_hmac_md5_error_checking_test.c43 static UINT test_nx_crypto_operation_failed(UINT op, VOID *handler, struct NX_CRYPTO_METHOD_STRUCT … in test_nx_crypto_operation_failed() argument
48 static UINT test_nx_crypto_operation_succeed(UINT op, VOID *handler, struct NX_CRYPTO_METHOD_STRUCT… in test_nx_crypto_operation_succeed() argument
53 static UINT test_nx_crypto_operation_NX_CRYPTO_HASH_INITIALIZE_failed(UINT op, VOID *handler, struc… in test_nx_crypto_operation_NX_CRYPTO_HASH_INITIALIZE_failed() argument
55 if (op == NX_CRYPTO_HASH_INITIALIZE) in test_nx_crypto_operation_NX_CRYPTO_HASH_INITIALIZE_failed()
58 …return _nx_crypto_method_hmac_md5_operation(op, handler, method, key, key_size_in_bits, input, inp… in test_nx_crypto_operation_NX_CRYPTO_HASH_INITIALIZE_failed()
61 static UINT test_nx_crypto_operation_NX_CRYPTO_HASH_UPDATE_failed(UINT op, VOID *handler, struct NX… in test_nx_crypto_operation_NX_CRYPTO_HASH_UPDATE_failed() argument
63 if (op == NX_CRYPTO_HASH_UPDATE) in test_nx_crypto_operation_NX_CRYPTO_HASH_UPDATE_failed()
66 …return _nx_crypto_method_hmac_md5_operation(op, handler, method, key, key_size_in_bits, input, inp… in test_nx_crypto_operation_NX_CRYPTO_HASH_UPDATE_failed()
69 static UINT test_nx_crypto_operation_NX_CRYPTO_HASH_CALCULATE_failed(UINT op, VOID *handler, struct… in test_nx_crypto_operation_NX_CRYPTO_HASH_CALCULATE_failed() argument
71 if (op == NX_CRYPTO_HASH_CALCULATE) in test_nx_crypto_operation_NX_CRYPTO_HASH_CALCULATE_failed()
[all …]
Dnx_secure_drbg_test.c22 static UINT test_nx_crypto_operation_failed(UINT op, VOID *handler, struct NX_CRYPTO_METHOD_STRUCT … in test_nx_crypto_operation_failed() argument
27 static UINT test_nx_crypto_operation_failed_NX_CRYPTO_DRBG_INSTANTIATE(UINT op, VOID *handler, stru… in test_nx_crypto_operation_failed_NX_CRYPTO_DRBG_INSTANTIATE() argument
29 if (op == NX_CRYPTO_DRBG_INSTANTIATE) in test_nx_crypto_operation_failed_NX_CRYPTO_DRBG_INSTANTIATE()
35 static UINT test_nx_crypto_operation_failed_NX_CRYPTO_DRBG_GENERATE(UINT op, VOID *handler, struct … in test_nx_crypto_operation_failed_NX_CRYPTO_DRBG_GENERATE() argument
37 if (op == NX_CRYPTO_DRBG_GENERATE) in test_nx_crypto_operation_failed_NX_CRYPTO_DRBG_GENERATE()
44 static UINT test_nx_crypto_operation_failed_NX_CRYPTO_DRBG_GENERATE_0(UINT op, VOID *handler, struc… in test_nx_crypto_operation_failed_NX_CRYPTO_DRBG_GENERATE_0() argument
46 if (op == NX_CRYPTO_DRBG_GENERATE) in test_nx_crypto_operation_failed_NX_CRYPTO_DRBG_GENERATE_0()
56 static UINT test_nx_crypto_operation_succeed(UINT op, VOID *handler, struct NX_CRYPTO_METHOD_STRUCT… in test_nx_crypto_operation_succeed() argument
Dnx_secure_x509_crl_verify_test.c256 static UINT test_crypto_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ in test_crypto_operation() argument
274 static UINT test_crypto_operation_2(UINT op, /* Encrypt, Decrypt, Authenticate */ in test_crypto_operation_2() argument
289 if(op == NX_CRYPTO_EC_CURVE_SET) in test_crypto_operation_2()
297 static UINT test_nx_crypto_method_md5_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ in test_nx_crypto_method_md5_operation() argument
314 … status = crypto_method_md5.nx_crypto_operation(op, handler, method, key, key_size_in_bits, input, in test_nx_crypto_method_md5_operation()
318 if((op == NX_CRYPTO_VERIFY) && output) in test_nx_crypto_method_md5_operation()
Dnx_secure_tls_generate_premaster_secret_coverage_test.c90 static UINT _nx_crypto_method_ecdh_operation_test(UINT op, in _nx_crypto_method_ecdh_operation_test() argument
105 …status = _nx_crypto_method_ecdh_operation(op, handle, method, key, key_size_in_bits, input, input_… in _nx_crypto_method_ecdh_operation_test()
109 if (op == NX_CRYPTO_DH_SETUP) in _nx_crypto_method_ecdh_operation_test()
254 static UINT fake_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ in fake_operation() argument
299 static UINT ecdsa_fake_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ in ecdsa_fake_operation() argument
344 static UINT x509_sha256_fake_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ in x509_sha256_fake_operation() argument
388 static UINT public_auth_fake_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ in public_auth_fake_operation() argument
Dnx_secure_tls_ecc_point_format_test.c49 UINT _nx_crypto_method_ecdh_operation(UINT op,
60 UINT _nx_crypto_method_ecdh_operation_test(UINT op,
168 UINT _nx_crypto_method_ecdh_operation_test(UINT op, in _nx_crypto_method_ecdh_operation_test() argument
183 …status = _nx_crypto_method_ecdh_operation(op, handle, method, key, key_size_in_bits, input, input_… in _nx_crypto_method_ecdh_operation_test()
187 if (op == NX_CRYPTO_DH_SETUP) in _nx_crypto_method_ecdh_operation_test()
Dnx_secure_pkcs1_v1_5_test.c35 static UINT test_crypto_operation(UINT op, /* Encrypt, Decrypt, Authenticate */ in test_crypto_operation() argument
49 static UINT test_crypto_operation_failed(UINT op, /* Encrypt, Decrypt, Authenticate */ in test_crypto_operation_failed() argument
63 static UINT test_crypto_operation_authenticate_failed(UINT op, VOID *handler, struct NX_CRYPTO_METH… in test_crypto_operation_authenticate_failed() argument
65 if (op == NX_CRYPTO_AUTHENTICATE) in test_crypto_operation_authenticate_failed()
71 static UINT test_nx_crypto_operation_NX_CRYPTO_VERIFY_failed(UINT op, VOID *handler, struct NX_CRYP… in test_nx_crypto_operation_NX_CRYPTO_VERIFY_failed() argument
73 if (op == NX_CRYPTO_VERIFY) in test_nx_crypto_operation_NX_CRYPTO_VERIFY_failed()
76 …return _nx_crypto_method_pkcs1_v1_5_operation(op, handler, method, key, key_size_in_bits, input, i… in test_nx_crypto_operation_NX_CRYPTO_VERIFY_failed()
Dnx_secure_des_error_checking_test.c51 static UINT test_nx_crypto_operation_failed(UINT op, VOID *handler, struct NX_CRYPTO_METHOD_STRUCT … in test_nx_crypto_operation_failed() argument
57 …return _nx_crypto_method_des_operation(op, handler, method, key, key_size_in_bits, input, input_le… in test_nx_crypto_operation_failed()
60 static UINT test_nx_crypto_operation_succeed(UINT op, VOID *handler, struct NX_CRYPTO_METHOD_STRUCT… in test_nx_crypto_operation_succeed() argument
66 …return _nx_crypto_method_des_operation(op, handler, method, key, key_size_in_bits, input, input_le… in test_nx_crypto_operation_succeed()
Dnx_secure_ecdh_error_checking_test.c54 static UINT test_nx_crypto_operation_failed(UINT op, VOID *handler, struct NX_CRYPTO_METHOD_STRUCT … in test_nx_crypto_operation_failed() argument
60 …return _nx_crypto_method_ecdh_operation(op, handler, method, key, key_size_in_bits, input, input_l… in test_nx_crypto_operation_failed()
63 static UINT test_nx_crypto_operation_succeed(UINT op, VOID *handler, struct NX_CRYPTO_METHOD_STRUCT… in test_nx_crypto_operation_succeed() argument
69 …return _nx_crypto_method_ecdh_operation(op, handler, method, key, key_size_in_bits, input, input_l… in test_nx_crypto_operation_succeed()
72 static UINT test_nx_crypto_operation_succeed_0(UINT op, VOID *handler, struct NX_CRYPTO_METHOD_STRU… in test_nx_crypto_operation_succeed_0() argument
81 …return _nx_crypto_method_ecdh_operation(op, handler, method, key, key_size_in_bits, input, input_l… in test_nx_crypto_operation_succeed_0()
/NetX-Duo-v6.2.1/crypto_libraries/inc/
Dnx_crypto_aes.h165 UINT _nx_crypto_method_aes_operation(UINT op, /* Encrypt, Decrypt, Authenticate */
180 UINT _nx_crypto_method_aes_cbc_operation(UINT op, /* Encrypt, Decrypt, Authenticate */
195 UINT _nx_crypto_method_aes_ccm_operation(UINT op, /* Encrypt, Decrypt, Authenticate */
210 UINT _nx_crypto_method_aes_gcm_operation(UINT op, /* Encrypt, Decrypt, Authenticate */
225 UINT _nx_crypto_method_aes_ctr_operation(UINT op, /* Encrypt, Decrypt, Authenticate */
240 UINT _nx_crypto_method_aes_xcbc_operation(UINT op, /* Encrypt, Decrypt, Authenticate */
/NetX-Duo-v6.2.1/test/regression/netxduo_test/
Dnetx_tcp_queue_depth_notify_test.c39 static UINT op; variable
69 op = NX_RAMDRIVER_OP_BYPASS; in test_application_define()
208 op = NX_RAMDRIVER_OP_DROP; in ntest_0_entry()
214 op = NX_RAMDRIVER_OP_BYPASS; in ntest_0_entry()
347 *operation_ptr = op; in my_packet_process()
/NetX-Duo-v6.2.1/test/regression/nx_secure_test/hash_clone/
Dnx_crypto_hash_clone_test.h34 UINT _nx_crypto_method_hash_clone_test_operation(UINT op, /* Encrypt, Decrypt, Authenticate */
57 UINT _nx_crypto_method_clone_cleanup_test_operation(UINT op, /* Encrypt, Decrypt, Authenticate…
Dnx_crypto_hash_clone_test.c56 NX_CRYPTO_KEEP UINT _nx_crypto_method_hash_clone_test_operation(UINT op, /* Encrypt, Decrypt,… in _nx_crypto_method_hash_clone_test_operation() argument
90 … status = _nx_crypto_method_clone_cleanup_test_operation(op, handle, method, key, key_size_in_bits, in _nx_crypto_method_hash_clone_test_operation()

12345