Home
last modified time | relevance | path

Searched full:crypto (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/NetX-Duo-v6.2.1/test/regression/nx_secure_test/
Dnx_secure_phash_prf_test.c114 NX_CRYPTO_NULL, /* Crypto handler */ in thread_0_entry()
130 NX_CRYPTO_NULL, /* Crypto handler */ in thread_0_entry()
146 NX_CRYPTO_NULL, /* Crypto handler */ in thread_0_entry()
162 NX_CRYPTO_NULL, /* Crypto handler */ in thread_0_entry()
321 … NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
332 … NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
343 (VOID *)0x03, 0, /* crypto metadata */ in thread_0_entry()
354 (VOID *)0x04, 0, /* crypto metadata */ in thread_0_entry()
358 /* Invalid crypto operation. */ in thread_0_entry()
365 … (VOID *)0x04, sizeof(NX_CRYPTO_TLS_PRF_1),/* crypto metadata */ in thread_0_entry()
[all …]
Dnx_secure_hmac_sha1_test.c15 NX_CRYPTO_AUTHENTICATION_HMAC_SHA1_160, /* HMAC SHA1 crypto algorithm */
189 NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
200 NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
211 (VOID *)0x03, 0, /* crypto metadata */ in thread_0_entry()
222 (VOID *)0x04, 0, /* crypto metadata */ in thread_0_entry()
233 … &hmac_sha1_ctx, sizeof(hmac_sha1_ctx), /* crypto metadata */ in thread_0_entry()
244 … &hmac_sha1_ctx, sizeof(hmac_sha1_ctx), /* crypto metadata */ in thread_0_entry()
255 … &hmac_sha1_ctx, sizeof(hmac_sha1_ctx), /* crypto metadata */ in thread_0_entry()
266 … &hmac_sha1_ctx, sizeof(hmac_sha1_ctx), /* crypto metadata */ in thread_0_entry()
287 NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
Dnx_secure_sha_additional_test.c316 NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
327 (VOID *)0x03, 0, /* crypto metadata */ in thread_0_entry()
338 (VOID *)0x04, 0, /* crypto metadata */ in thread_0_entry()
349 metadata, sizeof(metadata), /* crypto metadata */ in thread_0_entry()
369 metadata, sizeof(metadata), /* crypto metadata */ in thread_0_entry()
380 metadata, sizeof(metadata), /* crypto metadata */ in thread_0_entry()
391 metadata, sizeof(metadata), /* crypto metadata */ in thread_0_entry()
402 metadata, sizeof(metadata), /* crypto metadata */ in thread_0_entry()
439 (VOID *)0x03, 0, /* crypto metadata */ in thread_0_entry()
450 (VOID *)0x04, 0, /* crypto metadata */ in thread_0_entry()
[all …]
Dnx_secure_ecjpake_self_test.c14 /* Declare a crypto method for ECJ-PAKE. */
31 NX_CRYPTO_AUTHENTICATION_HMAC_SHA2_256, /* SHA crypto algorithm */
368 NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
379 NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
390 (VOID *)0x03, 0, /* crypto metadata */ in thread_0_entry()
401 (VOID *)0x04, 0, /* crypto metadata */ in thread_0_entry()
412 … &ecjpake_ctx_server, sizeof(ecjpake_ctx_server), /* crypto metadata */ in thread_0_entry()
423 … &ecjpake_ctx_server, sizeof(ecjpake_ctx_server), /* crypto metadata */ in thread_0_entry()
Dnx_secure_crypto_self_test.c27 NX_CRYPTO_ENCRYPTION_DES_CBC, /* DES crypto algorithm filled at runtime*/
40 NX_CRYPTO_ENCRYPTION_3DES_CBC, /* 3DES crypto algorithm filled at runtime*/
53 NX_CRYPTO_ENCRYPTION_AES_CBC, /* AES crypto algorithm */
65 NX_CRYPTO_ENCRYPTION_AES_CTR, /* AES crypto algorithm */
77 NX_CRYPTO_ENCRYPTION_AES_CTR, /* AES crypto algorithm */
89 NX_CRYPTO_ENCRYPTION_AES_CTR, /* AES crypto algorithm */
233 printf("NetX Secure Test: Crypto Table Self Test............................."); in thread_0_entry()
Dnx_secure_pkcs1_v1_5_test.c36 VOID *handler, /* Crypto handler */ in test_crypto_operation()
50 VOID *handler, /* Crypto handler */ in test_crypto_operation_failed()
254 NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
265 NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
276 (VOID *)0x03, 0, /* crypto metadata */ in thread_0_entry()
287 &pkcs1, 0, /* crypto metadata */ in thread_0_entry()
300 &pkcs1, sizeof(pkcs1), /* crypto metadata */ in thread_0_entry()
316 &pkcs1, sizeof(pkcs1), /* crypto metadata */ in thread_0_entry()
327 &pkcs1, sizeof(pkcs1), /* crypto metadata */ in thread_0_entry()
405 NX_CRYPTO_NULL, 0, /* crypto metadata */ in thread_0_entry()
/NetX-Duo-v6.2.1/crypto_libraries/inc/
Dnx_crypto.h15 /** NetX Crypto Component */
17 /** Crypto */
45 /* crypto standalone support, */
220 'crypto_metadata' Pointer to a storage space managed by the underlying crypto method.
222 'crypto_metadata_size' is the size of the crypto context block, in bytes. */
241 The crypto method strcuture contains a function pointer: nx_crypto_operation.
243 …This function pointer should be set for the crypto method in use. The arguments to this function …
268 /* Size of the crypto block, in bytes. */
274 /* nx_cyrpto_init function initializes the underlying crypto
279 invokes this crypto method, the handle is passed to crypto operation.
[all …]
Dnx_crypto_aes.h15 /** NetX Crypto Component */
36 /* NetX Crypto AES module. */
103 … (16) /* The AES block size for all NetX Crypto operations, in byt…
166 VOID *handle, /* Crypto handler */
181 VOID *handle, /* Crypto handler */
196 VOID *handle, /* Crypto handler */
211 VOID *handle, /* Crypto handler */
226 VOID *handle, /* Crypto handler */
241 VOID *handle, /* Crypto handler */
/NetX-Duo-v6.2.1/crypto_libraries/src/
Dnx_crypto_hmac.c15 /** NetX Crypto Component */
46 /* digest_ptr generated crypto digest */
117 /* [crypto_digest_calculate] Calculate crypto digest */
118 /* [crypto_initialize] Perform crypto initialization */
119 /* [crypto_update] Perform crypto update */
145 /* If key is longer than block size, reset it to key=CRYPTO(key). */ in _nx_crypto_hmac_initialize()
164 CRYPTO(K XOR opad, CRYPTO(K XOR ipad, text)) in _nx_crypto_hmac_initialize()
226 /* [crypto_update] Perform crypto update */
245 /* Update inner CRYPTO. */ in _nx_crypto_hmac_update()
271 /* digest_ptr generated crypto digest */
[all …]
Dnx_crypto_methods.c15 /** NetX Crypto Component */
17 /** Crypto Methods */
104 NX_CRYPTO_NONE, /* Name of the crypto algorithm */
119 NX_CRYPTO_ENCRYPTION_NULL, /* Name of the crypto algorithm */
133 NX_CRYPTO_ENCRYPTION_AES_CBC, /* AES crypto algorithm */
147 NX_CRYPTO_ENCRYPTION_AES_CBC, /* AES crypto algorithm */
161 NX_CRYPTO_ENCRYPTION_AES_CBC, /* AES crypto algorithm */
176 NX_CRYPTO_ENCRYPTION_AES_CCM_8, /* AES crypto algorithm */
190 NX_CRYPTO_ENCRYPTION_AES_CCM_16, /* AES crypto algorithm */
204 NX_CRYPTO_ENCRYPTION_AES_GCM_16, /* AES crypto algorithm */
[all …]
Dnx_crypto_method_self_test_drbg.c15 /** NetX Crypto Component */
17 /** Crypto Self Test */
308 /* This function performs the Known Answer Test for DRBG crypto method.*/
312 /* method_ptr Pointer to the crypto method */
357 /* Validate the crypto method */ in _nx_crypto_method_self_test_drbg()
383 /* Call the crypto initialization function. */ in _nx_crypto_method_self_test_drbg()
405 /* Call the crypto operation function. */ in _nx_crypto_method_self_test_drbg()
426 /* Call the crypto operation function. */ in _nx_crypto_method_self_test_drbg()
447 /* Call the crypto operation function. */ in _nx_crypto_method_self_test_drbg()
468 /* Call the crypto operation function. */ in _nx_crypto_method_self_test_drbg()
[all …]
Dnx_crypto_ccm.c15 /** NetX Crypto Component */
114 /* crypto_metadata Pointer to crypto metadata */
115 /* crypto_function Pointer to crypto function */
267 /* crypto_metadata Pointer to crypto metadata */
269 /* crypto_function Pointer to crypto function */
275 /* block_size Block size of crypto algorithm*/
356 /* crypto_metadata Pointer to crypto metadata */
358 /* crypto_function Pointer to crypto function */
362 /* block_size Block size of crypto algorithm*/
468 /* crypto_metadata Pointer to crypto metadata */
[all …]
Dnx_crypto_gcm.c15 /** NetX Crypto Component */
338 /* crypto_metadata Pointer to crypto metadata */
339 /* crypto_function Pointer to crypto function */
426 /* crypto_metadata Pointer to crypto metadata */
428 /* crypto_function Pointer to crypto function */
432 /* block_size Block size of crypto algorithm*/
541 /* crypto_metadata Pointer to crypto metadata */
543 /* crypto_function Pointer to crypto function */
547 /* block_size Block size of crypto algorithm*/
613 /* crypto_metadata Pointer to crypto metadata */
[all …]
Dnx_crypto_hmac_md5.c15 /** NetX Crypto Component */
39 /* This function is the common crypto method init callback for */
44 /* method Pointer to crypto method */
47 /* handler Returned crypto handler */
118 /* This function cleans up the crypto metadata. */
122 /* crypto_metadata Crypto metadata */
154 /* Clean up the crypto metadata. */ in _nx_crypto_method_hmac_md5_cleanup()
182 /* handler Pointer to crypto context */
183 /* method Pointer to crypto method */
224 VOID *handle, /* Crypto handler */ in _nx_crypto_method_hmac_md5_operation()
Dnx_crypto_hmac_sha1.c15 /** NetX Crypto Component */
39 /* This function is the common crypto method init callback for */
44 /* method Pointer to crypto method */
47 /* handler Returned crypto handler */
118 /* This function cleans up the crypto metadata. */
122 /* crypto_metadata Crypto metadata */
154 /* Clean up the crypto metadata. */ in _nx_crypto_method_hmac_sha1_cleanup()
182 /* handler Pointer to crypto context */
223 VOID *handle, /* Crypto handler */ in _nx_crypto_method_hmac_sha1_operation()
Dnx_crypto_hmac_sha2.c15 /** NetX Crypto Component */
39 /* This function is the common crypto method init callback for */
44 /* method Pointer to crypto method */
47 /* handler Returned crypto handler */
119 /* This function cleans up the crypto metadata. */
123 /* crypto_metadata Crypto metadata */
155 /* Clean up the crypto metadata. */ in _nx_crypto_method_hmac_sha256_cleanup()
183 /* handler Pointer to crypto context */
224 VOID *handle, /* Crypto handler */ in _nx_crypto_method_hmac_sha256_operation()
Dnx_crypto_hmac_sha5.c15 /** NetX Crypto Component */
39 /* This function is the common crypto method init callback for */
44 /* method Pointer to crypto method */
47 /* handler Returned crypto handler */
118 /* This function cleans up the crypto metadata. */
122 /* crypto_metadata Crypto metadata */
154 /* Clean up the crypto metadata. */ in _nx_crypto_method_hmac_sha512_cleanup()
182 /* handler Pointer to crypto context */
223 VOID *handle, /* Crypto handler */ in _nx_crypto_method_hmac_sha512_operation()
Dnx_crypto_pkcs1_v1.5.c15 /** NetX Crypto Component */
60 /* [nx_crypto_operation] Crypto operations */
142 /* Initialize the crypto method with the modulus. */ in _nx_crypto_pkcs1_v1_5_sign()
211 /* [nx_crypto_operation] Crypto operations */
255 /* Initialize the crypto method with the modulus. */ in _nx_crypto_pkcs1_v1_5_verify()
334 /* [nx_crypto_operation] Crypto operations */
467 /* This function is the common crypto method init callback for */
472 /* method Pointer to crypto method */
475 /* handler Returned crypto handler */
547 /* This function cleans up the crypto metadata. */
[all …]
Dnx_crypto_tls_prf_sha256.c15 /** NetX Crypto Component */
37 /* This function initializes the PRF crypto module with SHA-256. */
41 /* method Crypto Method Object */
125 /* This function cleans up the crypto metadata. */
129 /* crypto_metadata Crypto metadata */
161 /* Clean up the crypto metadata. */ in _nx_crypto_method_prf_sha_256_cleanup()
189 /* handle Crypto handle */
230 VOID *handle, /* Crypto handler */ in _nx_crypto_method_prf_sha_256_operation()
Dnx_crypto_tls_prf_sha384.c15 /** NetX Crypto Component */
38 /* This function initializes the PRF crypto module with SHA384. */
42 /* method Crypto Method Object */
126 /* This function cleans up the crypto metadata. */
130 /* crypto_metadata Crypto metadata */
162 /* Clean up the crypto metadata. */ in _nx_crypto_method_prf_sha384_cleanup()
190 /* handle Crypto handle */
230 VOID *handle, /* Crypto handler */ in _nx_crypto_method_prf_sha384_operation()
Dnx_crypto_tls_prf_sha512.c15 /** NetX Crypto Component */
38 /* This function initializes the PRF crypto module with SHA512. */
42 /* method Crypto Method Object */
126 /* This function cleans up the crypto metadata. */
130 /* crypto_metadata Crypto metadata */
162 /* Clean up the crypto metadata. */ in _nx_crypto_method_prf_sha512_cleanup()
190 /* handle Crypto handle */
230 VOID *handle, /* Crypto handler */ in _nx_crypto_method_prf_sha512_operation()
Dnx_crypto_tls_prf_1.c15 /** NetX Crypto Component */
37 /* This function initializes the PRF crypto module with SHA-1. */
41 /* method Crypto Method Object */
125 /* This function cleans up the crypto metadata. */
129 /* crypto_metadata Crypto metadata */
161 /* Clean up the crypto metadata. */ in _nx_crypto_method_prf_1_cleanup()
189 /* handle Crypto handle */
230 VOID *handle, /* Crypto handler */ in _nx_crypto_method_prf_1_operation()
/NetX-Duo-v6.2.1/nx_secure/src/
Dnx_secure_crypto_table_self_test.c56 /* Define an array to avoid duplicate self testing for identical crypto method. */
76 /* This function runs through the TLS crypto table self test. */
79 /* crypto methods supported by NetX Secure. */
83 /* crypto_table Pointer to the crypto method */
85 /* metadata_buffer Crypto metadata area */
86 /* metadata_size crypto metadata size */
121 /* Validate the crypto method */ in _nx_secure_crypto_table_self_test()
125 /* Initialize the crypto method list that is tested. */ in _nx_secure_crypto_table_self_test()
194 /* Loop through X.509 crypto table and perform self tests. */ in _nx_secure_crypto_table_self_test()
215 /* We will also need to maintain the testing information. If a crypto method has been in _nx_secure_crypto_table_self_test()
[all …]
Dnx_secure_tls_session_create_ext.c44 /* identifiers so the mapping of crypto methods to ciphersuites can be */
54 /* crypto_array crypto methods to use */
274 /* Search the crypto array for each cipher in this ciphersuite map. */ in _map_tls_ciphersuites()
280 /* Start with no crypto methods found. */ in _map_tls_ciphersuites()
301 crypto method array. Add it to the table by advancing the pointer in _map_tls_ciphersuites()
399 /* Search the crypto array for each cipher in this ciphersuite map. */ in _map_x509_ciphersuites()
542 /* Coming from the old-style API. Don't allocate crypto table. */ in _nx_secure_tls_session_create_ext()
560 /* Make sure we can allocate our crypto table. */ in _nx_secure_tls_session_create_ext()
566 /* Carve out space for our dynamic crypto table. */ in _nx_secure_tls_session_create_ext()
573 /* Get a working pointer to our newly-allocated crypto table. */ in _nx_secure_tls_session_create_ext()
[all …]
Dnx_secure_x509_crl_verify.c44 /* issuer's public key. Note that a CRL does not have any crypto */
46 /* passed into this function so that its crypto routines may be */
62 /* [nx_crypto_init] Crypto initialization */
63 /* [nx_crypto_operation] Crypto operation */
118 /* Before we do any crypto verification, we need to check the KeyUsage extension. */ in _nx_secure_x509_crl_verify()
138 /* Find certificate crypto methods for this certificate. */ in _nx_secure_x509_crl_verify()
145 /* Assign local pointers for the crypto methods. */ in _nx_secure_x509_crl_verify()
222 /* Initialize the crypto method with public key. */ in _nx_secure_x509_crl_verify()

12345678910>>...12