Home
last modified time | relevance | path

Searched refs:method_ptr (Results 1 – 7 of 7) sorted by relevance

/NetX-Duo-v6.2.1/nx_secure/src/
Dnx_secure_tls_handshake_hash_init.c72 const NX_CRYPTO_METHOD *method_ptr; in _nx_secure_tls_handshake_hash_init() local
92method_ptr = tls_session -> nx_secure_tls_crypto_table->nx_secure_tls_handshake_hash_sha256_method; in _nx_secure_tls_handshake_hash_init()
98 method_ptr = tls_session -> nx_secure_tls_session_ciphersuite -> nx_secure_tls_hash; in _nx_secure_tls_handshake_hash_init()
111 if (method_ptr -> nx_crypto_init) in _nx_secure_tls_handshake_hash_init()
113 status = method_ptr -> nx_crypto_init((NX_CRYPTO_METHOD*)method_ptr, in _nx_secure_tls_handshake_hash_init()
127 if (method_ptr -> nx_crypto_operation != NX_NULL) in _nx_secure_tls_handshake_hash_init()
129 status = method_ptr -> nx_crypto_operation(NX_CRYPTO_HASH_INITIALIZE, in _nx_secure_tls_handshake_hash_init()
131 (NX_CRYPTO_METHOD*)method_ptr, in _nx_secure_tls_handshake_hash_init()
158method_ptr = tls_session -> nx_secure_tls_crypto_table -> nx_secure_tls_handshake_hash_sha256_meth… in _nx_secure_tls_handshake_hash_init()
162 if (method_ptr -> nx_crypto_init) in _nx_secure_tls_handshake_hash_init()
[all …]
Dnx_secure_tls_finished_hash_generate.c84 const NX_CRYPTO_METHOD *method_ptr = NX_NULL; in _nx_secure_tls_finished_hash_generate() local
143method_ptr = tls_session -> nx_secure_tls_crypto_table -> nx_secure_tls_handshake_hash_sha256_meth… in _nx_secure_tls_finished_hash_generate()
146 if (method_ptr -> nx_crypto_operation != NX_NULL) in _nx_secure_tls_finished_hash_generate()
148 status = method_ptr -> nx_crypto_operation(NX_CRYPTO_HASH_CALCULATE, in _nx_secure_tls_finished_hash_generate()
150 (NX_CRYPTO_METHOD*)method_ptr, in _nx_secure_tls_finished_hash_generate()
179 method_ptr = tls_session -> nx_secure_tls_session_ciphersuite -> nx_secure_tls_prf; in _nx_secure_tls_finished_hash_generate()
202method_ptr = tls_session -> nx_secure_tls_crypto_table -> nx_secure_tls_handshake_hash_md5_method; in _nx_secure_tls_finished_hash_generate()
207 if (method_ptr -> nx_crypto_operation != NX_NULL) in _nx_secure_tls_finished_hash_generate()
209 status = method_ptr -> nx_crypto_operation(NX_CRYPTO_HASH_CALCULATE, in _nx_secure_tls_finished_hash_generate()
211 (NX_CRYPTO_METHOD*)method_ptr, in _nx_secure_tls_finished_hash_generate()
[all …]
Dnx_secure_tls_handshake_hash_update.c86 const NX_CRYPTO_METHOD *method_ptr; in _nx_secure_tls_handshake_hash_update() local
100method_ptr = tls_session -> nx_secure_tls_crypto_table->nx_secure_tls_handshake_hash_sha256_method; in _nx_secure_tls_handshake_hash_update()
106 method_ptr = tls_session -> nx_secure_tls_session_ciphersuite -> nx_secure_tls_hash; in _nx_secure_tls_handshake_hash_update()
113 if (method_ptr -> nx_crypto_operation != NX_NULL) in _nx_secure_tls_handshake_hash_update()
115 status = method_ptr -> nx_crypto_operation(NX_CRYPTO_HASH_UPDATE, in _nx_secure_tls_handshake_hash_update()
117 (NX_CRYPTO_METHOD*)method_ptr, in _nx_secure_tls_handshake_hash_update()
152 status = method_ptr -> nx_crypto_operation(NX_CRYPTO_HASH_CALCULATE, in _nx_secure_tls_handshake_hash_update()
154 (NX_CRYPTO_METHOD*)method_ptr, in _nx_secure_tls_handshake_hash_update()
175 hash_length = method_ptr -> nx_crypto_ICV_size_in_bits >> 3; in _nx_secure_tls_handshake_hash_update()
181 status = method_ptr -> nx_crypto_operation(NX_CRYPTO_HASH_UPDATE, in _nx_secure_tls_handshake_hash_update()
[all …]
Dnx_secure_tls_1_3_transcript_hash_save.c78 const NX_CRYPTO_METHOD *method_ptr; in _nx_secure_tls_1_3_transcript_hash_save() local
93method_ptr = tls_session -> nx_secure_tls_crypto_table->nx_secure_tls_handshake_hash_sha256_method; in _nx_secure_tls_1_3_transcript_hash_save()
99 method_ptr = tls_session -> nx_secure_tls_session_ciphersuite -> nx_secure_tls_hash; in _nx_secure_tls_1_3_transcript_hash_save()
124 hash_size = (method_ptr ->nx_crypto_ICV_size_in_bits >> 3); in _nx_secure_tls_1_3_transcript_hash_save()
128 if (method_ptr -> nx_crypto_operation != NX_NULL) in _nx_secure_tls_1_3_transcript_hash_save()
130 status = method_ptr -> nx_crypto_operation(NX_CRYPTO_HASH_CALCULATE, in _nx_secure_tls_1_3_transcript_hash_save()
132 (NX_CRYPTO_METHOD*)method_ptr, in _nx_secure_tls_1_3_transcript_hash_save()
Dnx_secure_tls_server_handshake.c128 const NX_CRYPTO_METHOD *method_ptr = NX_NULL; in _nx_secure_tls_server_handshake() local
456method_ptr = tls_session -> nx_secure_tls_crypto_table -> nx_secure_tls_handshake_hash_sha256_meth… in _nx_secure_tls_server_handshake()
458 if (method_ptr -> nx_crypto_cleanup != NX_NULL) in _nx_secure_tls_server_handshake()
460 …temp_status = method_ptr -> nx_crypto_cleanup(tls_session -> nx_secure_tls_handshake_hash.nx_secur… in _nx_secure_tls_server_handshake()
470method_ptr = tls_session -> nx_secure_tls_crypto_table -> nx_secure_tls_handshake_hash_md5_method; in _nx_secure_tls_server_handshake()
471 if (method_ptr != NX_NULL && method_ptr -> nx_crypto_cleanup != NX_NULL) in _nx_secure_tls_server_handshake()
473 …temp_status = method_ptr -> nx_crypto_cleanup(tls_session -> nx_secure_tls_handshake_hash.nx_secur… in _nx_secure_tls_server_handshake()
481method_ptr = tls_session -> nx_secure_tls_crypto_table -> nx_secure_tls_handshake_hash_sha1_method; in _nx_secure_tls_server_handshake()
482 if (method_ptr != NX_NULL && method_ptr -> nx_crypto_cleanup != NX_NULL) in _nx_secure_tls_server_handshake()
484 …temp_status = method_ptr -> nx_crypto_cleanup(tls_session -> nx_secure_tls_handshake_hash.nx_secur… in _nx_secure_tls_server_handshake()
Dnx_secure_tls_client_handshake.c141 *method_ptr = NX_NULL; in _nx_secure_tls_client_handshake() local
230method_ptr = tls_session -> nx_secure_tls_crypto_table -> nx_secure_tls_handshake_hash_sha256_meth… in _nx_secure_tls_client_handshake()
233 if (method_ptr -> nx_crypto_cleanup != NX_NULL) in _nx_secure_tls_client_handshake()
235 …temp_status = method_ptr -> nx_crypto_cleanup(tls_session -> nx_secure_tls_handshake_hash.nx_secur… in _nx_secure_tls_client_handshake()
245method_ptr = tls_session -> nx_secure_tls_crypto_table -> nx_secure_tls_handshake_hash_md5_method; in _nx_secure_tls_client_handshake()
246 if (method_ptr != NX_NULL && method_ptr -> nx_crypto_cleanup != NX_NULL) in _nx_secure_tls_client_handshake()
248 …temp_status = method_ptr -> nx_crypto_cleanup(tls_session -> nx_secure_tls_handshake_hash.nx_secur… in _nx_secure_tls_client_handshake()
255method_ptr = tls_session -> nx_secure_tls_crypto_table -> nx_secure_tls_handshake_hash_sha1_method; in _nx_secure_tls_client_handshake()
256 if (method_ptr != NX_NULL && method_ptr -> nx_crypto_cleanup != NX_NULL) in _nx_secure_tls_client_handshake()
258 …temp_status = method_ptr -> nx_crypto_cleanup(tls_session -> nx_secure_tls_handshake_hash.nx_secur… in _nx_secure_tls_client_handshake()
Dnx_secure_tls_1_3_client_handshake.c165 *method_ptr = NX_NULL; in _nx_secure_tls_1_3_client_handshake() local
653method_ptr = tls_session -> nx_secure_tls_crypto_table -> nx_secure_tls_handshake_hash_sha256_meth… in _nx_secure_tls_1_3_client_handshake()
654 if (method_ptr -> nx_crypto_cleanup != NX_NULL) in _nx_secure_tls_1_3_client_handshake()
656 …status = method_ptr -> nx_crypto_cleanup(tls_session -> nx_secure_tls_handshake_hash.nx_secure_tls… in _nx_secure_tls_1_3_client_handshake()