/NetX-Duo-v6.4.1/crypto_libraries/src/ |
D | nx_crypto_method_self_test_sha.c | 238 UCHAR *input; in _nx_crypto_method_self_test_sha() local 254 input = plain_1; in _nx_crypto_method_self_test_sha() 260 input = plain_224; in _nx_crypto_method_self_test_sha() 266 input = plain_256; in _nx_crypto_method_self_test_sha() 272 input = plain_384; in _nx_crypto_method_self_test_sha() 278 input = plain_512; in _nx_crypto_method_self_test_sha() 284 input = plain_512_224; in _nx_crypto_method_self_test_sha() 290 input = plain_512_256; in _nx_crypto_method_self_test_sha() 328 input, in _nx_crypto_method_self_test_sha()
|
D | nx_crypto_aes.c | 1050 NX_CRYPTO_KEEP UINT _nx_crypto_aes_encrypt(NX_CRYPTO_AES *aes_ptr, UCHAR *input, UCHAR *output, UIN… in _nx_crypto_aes_encrypt() argument 1074 aes_state[0] = input[0]; in _nx_crypto_aes_encrypt() 1075 aes_state[1] = input[1]; in _nx_crypto_aes_encrypt() 1076 aes_state[2] = input[2]; in _nx_crypto_aes_encrypt() 1077 aes_state[3] = input[3]; in _nx_crypto_aes_encrypt() 1078 aes_state[4] = input[4]; in _nx_crypto_aes_encrypt() 1079 aes_state[5] = input[5]; in _nx_crypto_aes_encrypt() 1080 aes_state[6] = input[6]; in _nx_crypto_aes_encrypt() 1081 aes_state[7] = input[7]; in _nx_crypto_aes_encrypt() 1082 aes_state[8] = input[8]; in _nx_crypto_aes_encrypt() [all …]
|
D | nx_crypto_method_self_test_hmac_sha.c | 252 UCHAR *input; in _nx_crypto_method_self_test_hmac_sha() local 270 input = plain_1_96; in _nx_crypto_method_self_test_hmac_sha() 278 input = plain_1_160; in _nx_crypto_method_self_test_hmac_sha() 286 input = plain_224; in _nx_crypto_method_self_test_hmac_sha() 294 input = plain_256; in _nx_crypto_method_self_test_hmac_sha() 302 input = plain_384; in _nx_crypto_method_self_test_hmac_sha() 310 input = plain_512; in _nx_crypto_method_self_test_hmac_sha() 318 input = plain_512_224; in _nx_crypto_method_self_test_hmac_sha() 326 input = plain_512_256; in _nx_crypto_method_self_test_hmac_sha() 366 input, in _nx_crypto_method_self_test_hmac_sha() [all …]
|
D | nx_crypto_ecjpake.c | 336 UCHAR *input, UINT input_length, in _nx_crypto_ecjpake_hello_process() argument 353 &input[total_length + 1], in _nx_crypto_ecjpake_hello_process() 354 (UINT)input[total_length]); in _nx_crypto_ecjpake_hello_process() 360 total_length += (UINT)(input[total_length] + 1); in _nx_crypto_ecjpake_hello_process() 363 status = _nx_crypto_ec_point_setup(&v, &input[total_length + 1], (UINT)input[total_length]); in _nx_crypto_ecjpake_hello_process() 369 total_length += (UINT)(input[total_length] + 1); in _nx_crypto_ecjpake_hello_process() 370 status = _nx_crypto_huge_number_setup(&r, &input[total_length + 1], (UINT)input[total_length]); in _nx_crypto_ecjpake_hello_process() 376 total_length += (UINT)(input[total_length] + 1); in _nx_crypto_ecjpake_hello_process() 394 &input[total_length + 1], in _nx_crypto_ecjpake_hello_process() 395 (UINT)input[total_length]); in _nx_crypto_ecjpake_hello_process() [all …]
|
D | nx_crypto_gcm.c | 293 NX_CRYPTO_KEEP static VOID _nx_crypto_gcm_ghash_update(UCHAR *hkey, UCHAR *input, UINT input_length… in _nx_crypto_gcm_ghash_update() argument 303 _nx_crypto_gcm_xor(output, input, tmp_block); in _nx_crypto_gcm_ghash_update() 305 input += NX_CRYPTO_GCM_BLOCK_SIZE; in _nx_crypto_gcm_ghash_update() 314 NX_CRYPTO_MEMCPY(tmp_block, input, input_length); /* Use case of memcpy is verified. */ in _nx_crypto_gcm_ghash_update() 370 … UCHAR *input, UCHAR *output, UINT length, UCHAR *counter_block) in _nx_crypto_gcm_gctr() argument 384 _nx_crypto_gcm_xor(input, aes_output, output); in _nx_crypto_gcm_gctr() 389 input += NX_CRYPTO_GCM_BLOCK_SIZE; in _nx_crypto_gcm_gctr() 400 _nx_crypto_gcm_xor(input, aes_output, aes_output); in _nx_crypto_gcm_gctr() 573 UCHAR *input, UCHAR *output, UINT length, in _nx_crypto_gcm_encrypt_update() argument 587 _nx_crypto_gcm_gctr(crypto_metadata, crypto_function, input, output, length, counter); in _nx_crypto_gcm_encrypt_update() [all …]
|
D | nx_crypto_cbc.c | 129 … UCHAR *input, UCHAR *output, UINT length, UCHAR block_size) in _nx_crypto_cbc_encrypt() argument 158 _nx_crypto_cbc_xor(&input[i], last_cipher, output, block_size); in _nx_crypto_cbc_encrypt() 230 … UCHAR *input, UCHAR *output, UINT length, UCHAR block_size) in _nx_crypto_cbc_decrypt() argument 259 NX_CRYPTO_MEMCPY(save_input, &input[i], block_size); /* Use case of memcpy is verified. */ in _nx_crypto_cbc_decrypt() 262 crypto_function(crypto_metadata, &input[i], &output[i], block_size); in _nx_crypto_cbc_decrypt()
|
D | nx_crypto_rsa.c | 94 const UCHAR *input, UINT input_length, UCHAR *output, in _nx_crypto_rsa_operation() argument 123 _nx_crypto_huge_number_setup(&input_hn, input, input_length); in _nx_crypto_rsa_operation() 370 UCHAR *input, in _nx_crypto_method_rsa_operation() argument 407 ctx -> nx_crypto_rsa_prime_p = input; in _nx_crypto_method_rsa_operation() 412 ctx -> nx_crypto_rsa_prime_q = input; in _nx_crypto_method_rsa_operation() 439 input, input_length_in_byte, in _nx_crypto_method_rsa_operation()
|
D | nx_crypto_pkcs1_v1.5.c | 74 NX_CRYPTO_KEEP UINT _nx_crypto_pkcs1_v1_5_sign(UCHAR *input, UINT input_length, in _nx_crypto_pkcs1_v1_5_sign() argument 135 …status = _nx_crypto_pkcs1_v1_5_encode(input, input_length, ctx -> hash_method, ctx -> hash_metadat… in _nx_crypto_pkcs1_v1_5_sign() 350 NX_CRYPTO_KEEP UINT _nx_crypto_pkcs1_v1_5_encode(UCHAR *input, UINT input_length, in _nx_crypto_pkcs1_v1_5_encode() argument 442 input, in _nx_crypto_pkcs1_v1_5_encode() 651 UCHAR *input, ULONG input_length_in_byte, in _nx_crypto_method_pkcs1_v1_5_operation() argument 684 options = (NX_CRYPTO_PKCS1_OPTIONS *)input; in _nx_crypto_method_pkcs1_v1_5_operation() 703 status = _nx_crypto_pkcs1_v1_5_sign(input, in _nx_crypto_method_pkcs1_v1_5_operation() 714 status = _nx_crypto_pkcs1_v1_5_verify(input, in _nx_crypto_method_pkcs1_v1_5_operation()
|
D | nx_crypto_3des.c | 438 UCHAR *input, in _nx_crypto_method_3des_operation() argument 503 input, output, input_length_in_byte, in _nx_crypto_method_3des_operation() 518 input, output, input_length_in_byte, in _nx_crypto_method_3des_operation() 538 input, output, input_length_in_byte, in _nx_crypto_method_3des_operation() 546 input, output, input_length_in_byte, in _nx_crypto_method_3des_operation()
|
D | nx_crypto_xcbc_mac.c | 155 UCHAR *input, UCHAR *output, UINT input_length_in_byte, in _nx_crypto_xcbc_mac() argument 188 _nx_crypto_xcbc_xor(E, input, E); in _nx_crypto_xcbc_mac() 195 input += block_size; in _nx_crypto_xcbc_mac() 217 NX_CRYPTO_MEMCPY(pad, input, input_length_in_byte); /* Use case of memcpy is verified. */ in _nx_crypto_xcbc_mac()
|
D | nx_crypto_hmac_md5.c | 228 UCHAR *input, in _nx_crypto_method_hmac_md5_operation() argument 283 _nx_crypto_hmac_update(hmac_metadata, input, input_length_in_byte); in _nx_crypto_method_hmac_md5_operation() 308 … _nx_crypto_hmac(hmac_metadata, input, input_length_in_byte, key, (key_size_in_bits >> 3), output, in _nx_crypto_method_hmac_md5_operation()
|
D | nx_crypto_hmac_sha1.c | 227 UCHAR *input, in _nx_crypto_method_hmac_sha1_operation() argument 282 _nx_crypto_hmac_update(hmac_metadata, input, input_length_in_byte); in _nx_crypto_method_hmac_sha1_operation() 307 … _nx_crypto_hmac(hmac_metadata, input, input_length_in_byte, key, (key_size_in_bits >> 3), output, in _nx_crypto_method_hmac_sha1_operation()
|
D | nx_crypto_hmac_sha2.c | 228 UCHAR *input, in _nx_crypto_method_hmac_sha256_operation() argument 300 _nx_crypto_hmac_update(hmac_metadata, input, input_length_in_byte); in _nx_crypto_method_hmac_sha256_operation() 323 … _nx_crypto_hmac(hmac_metadata, input, input_length_in_byte, key, (key_size_in_bits >> 3), output, in _nx_crypto_method_hmac_sha256_operation()
|
D | nx_crypto_ccm.c | 148 … UCHAR *input, UCHAR *output, UINT length, UCHAR *iv, UINT block_size) in _nx_crypto_ccm_cbc_pad() argument 162 NX_CRYPTO_MEMCPY(output, input + i, length - i); /* Use case of memcpy is verified. */ in _nx_crypto_ccm_cbc_pad() 168 _nx_crypto_ccm_xor(input + i, last_cipher, output); in _nx_crypto_ccm_cbc_pad() 387 … UCHAR *input, UCHAR *output, UINT length, UINT block_size) in _nx_crypto_ccm_encrypt_update() argument 407 _nx_crypto_ccm_cbc_pad(crypto_metadata, crypto_function, input, in _nx_crypto_ccm_encrypt_update() 426 output[i + k] = X[k] ^ input[i + k]; in _nx_crypto_ccm_encrypt_update()
|
/NetX-Duo-v6.4.1/test/regression/nx_secure_test/ |
D | nx_secure_3des_test.c | 64 UCHAR input[TEST_TEXT_LENGTH]; in thread_0_entry() local 73 status = _nx_crypto_des_key_set( NX_CRYPTO_NULL, input); in thread_0_entry() 83 input[i] = i; in thread_0_entry() 98 input, in thread_0_entry() 99 sizeof(input), in thread_0_entry() 122 EXPECT_EQ(0, memcmp(output, input, sizeof(input))); in thread_0_entry() 132 input[i] = (UCHAR)rand(); in thread_0_entry() 153 input, in thread_0_entry() 182 input, in thread_0_entry() 196 … (UCHAR *)input + (NX_CRYPTO_3DES_BLOCK_SIZE_IN_BITS >> 3), in thread_0_entry()
|
D | nx_secure_des_test.c | 66 UCHAR input[TEST_TEXT_LENGTH]; in thread_0_entry() local 82 input[i] = i; in thread_0_entry() 97 input, in thread_0_entry() 98 sizeof(input), in thread_0_entry() 121 EXPECT_EQ(0, memcmp(output, input, sizeof(input))); in thread_0_entry() 132 input[i] = (UCHAR)rand(); in thread_0_entry() 153 input, in thread_0_entry() 182 input, in thread_0_entry() 196 … (UCHAR *)input + (NX_CRYPTO_DES_BLOCK_SIZE_IN_BITS >> 3), in thread_0_entry()
|
D | nx_secure_hmac_md5_error_checking_test.c | 43 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… in test_nx_crypto_operation_failed() argument 48 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… in test_nx_crypto_operation_succeed() argument 53 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… in test_nx_crypto_operation_NX_CRYPTO_HASH_INITIALIZE_failed() argument 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 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… in test_nx_crypto_operation_NX_CRYPTO_HASH_UPDATE_failed() argument 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 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… in test_nx_crypto_operation_NX_CRYPTO_HASH_CALCULATE_failed() argument 74 …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_CALCULATE_failed() 77 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… in test_nx_crypto_operation_NX_CRYPTO_HASH_CALCULATE_error() argument 82 …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_CALCULATE_error()
|
D | nx_secure_aes_additional_test.c | 84 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… in test_nx_crypto_operation_failed() argument 89 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… in test_nx_crypto_operation_succeed() argument 99 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… in test_nx_crypto_operation_NX_CRYPTO_DECRYPT_failed() argument 106 …return _nx_crypto_method_aes_operation(op, handler, method, key, key_size_in_bits, input, input_le… in test_nx_crypto_operation_NX_CRYPTO_DECRYPT_failed() 109 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… in test_nx_crypto_operation_NX_CRYPTO_DECRYPT_error() argument 116 …return _nx_crypto_method_aes_operation(op, handler, method, key, key_size_in_bits, input, input_le… in test_nx_crypto_operation_NX_CRYPTO_DECRYPT_error() 139 UCHAR metadata[2048], input[1024], output[1024]; in thread_0_entry() local 304 input, 16, in thread_0_entry() 305 input, output, 16, in thread_0_entry() 313 input, 0, in thread_0_entry() [all …]
|
D | nx_secure_des_error_checking_test.c | 51 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… 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 …D_STRUCT *method, UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits, UCHAR *input, ULONG input_lengt… 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() 88 UCHAR input[8]; in thread_0_entry() local 100 input[i] = i; in thread_0_entry()
|
/NetX-Duo-v6.4.1/nx_secure/src/ |
D | nx_secure_crypto_method_self_test_sha.c | 179 UCHAR *input; in _nx_secure_crypto_method_self_test_sha() local 195 input = plain_1; in _nx_secure_crypto_method_self_test_sha() 201 input = plain_256; in _nx_secure_crypto_method_self_test_sha() 207 input = plain_384; in _nx_secure_crypto_method_self_test_sha() 213 input = plain_512; in _nx_secure_crypto_method_self_test_sha() 251 input, in _nx_secure_crypto_method_self_test_sha()
|
D | nx_secure_crypto_method_self_test_hmac_sha.c | 180 UCHAR *input; in _nx_secure_crypto_method_self_test_hmac_sha() local 198 input = plain_1_96; in _nx_secure_crypto_method_self_test_hmac_sha() 206 input = plain_1_160; in _nx_secure_crypto_method_self_test_hmac_sha() 214 input = plain_256; in _nx_secure_crypto_method_self_test_hmac_sha() 222 input = plain_384; in _nx_secure_crypto_method_self_test_hmac_sha() 230 input = plain_512; in _nx_secure_crypto_method_self_test_hmac_sha() 270 input, in _nx_secure_crypto_method_self_test_hmac_sha() 320 input, in _nx_secure_crypto_method_self_test_hmac_sha()
|
/NetX-Duo-v6.4.1/crypto_libraries/inc/ |
D | nx_crypto_aes.h | 152 UINT _nx_crypto_aes_encrypt(NX_CRYPTO_AES *aes_ptr, UCHAR *input, UCHAR *output, UINT length); 153 UINT _nx_crypto_aes_decrypt(NX_CRYPTO_AES *aes_ptr, UCHAR *input, UCHAR *output, UINT length); 170 UCHAR *input, 185 UCHAR *input, 200 UCHAR *input, 215 UCHAR *input, 230 UCHAR *input, 245 UCHAR *input,
|
D | nx_crypto_gcm.h | 96 UCHAR *input, UCHAR *output, UINT length, 105 UCHAR *input, UCHAR *output, UINT length, 110 UCHAR *input, UINT icv_len, UINT block_size);
|
D | nx_crypto_pkcs1_v1.5.h | 86 UINT _nx_crypto_pkcs1_v1_5_sign(UCHAR *input, UINT input_length, 96 UINT _nx_crypto_pkcs1_v1_5_encode(UCHAR *input, UINT input_length, 113 UCHAR *input, ULONG input_length_in_byte,
|
D | nx_crypto_cbc.h | 77 … UCHAR *input, UCHAR *output, UINT length, UCHAR block_size); 81 … UCHAR *input, UCHAR *output, UINT length, UCHAR block_size);
|