/openthread-latest/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_asn1parse.function | 125 int get_len_step(const data_t *input, size_t buffer_size, 143 if (buffer_size > input->len) { 144 memcpy(buf, input->x, input->len); 145 memset(buf + input->len, 'A', buffer_size - input->len); 147 memcpy(buf, input->x, buffer_size); 155 if (buffer_size >= input->len + actual_length) { 157 TEST_ASSERT(p == buf + input->len); 226 void parse_prefixes(const data_t *input, 241 /* Test every prefix of the input, except the empty string. 243 * we wouldn't know what to parse the input as. [all …]
|
D | test_suite_bignum_mod_raw.data | 1 Test mbedtls_mpi_mod_raw_io #1 BE (Buffer and limbs just fit, input limb-aligned) 4 Test mbedtls_mpi_mod_raw_io #1 LE (Buffer and limbs just fit, input limb-aligned) 7 Test mbedtls_mpi_mod_raw_io #2 BE (Buffer and limbs just fit, input unaligned) 10 Test mbedtls_mpi_mod_raw_io #2 LE (Buffer and limbs just fit, input unaligned) 13 Test mbedtls_mpi_mod_raw_io #3 BE (Buffer just fits, extra limbs, input limb-aligned) 16 Test mbedtls_mpi_mod_raw_io #3 LE (Buffer just fits, extra limbs, input limb-aligned) 19 Test mbedtls_mpi_mod_raw_io #4 BE (Buffer just fits, extra limbs, input unaligned) 22 Test mbedtls_mpi_mod_raw_io #4 LE (Buffer just fits, extra limbs, input unaligned) 25 Test mbedtls_mpi_mod_raw_io #5 BE (Extra limbs, buffer aligned to extra limbs, input limb-aligned) 28 Test mbedtls_mpi_mod_raw_io #5 LE (Extra limbs, buffer aligned to extra limbs, input limb-aligned) [all …]
|
D | test_suite_psa_crypto_util.function | 7 void ecdsa_raw_to_der(int key_bits, data_t *input, data_t *exp_result, int exp_ret) 15 TEST_EQUAL(mbedtls_ecdsa_raw_to_der(key_bits, input->x, input->len, 28 void ecdsa_raw_to_der_incremental(int key_bits, data_t *input, data_t *exp_result) 37 TEST_ASSERT(mbedtls_ecdsa_raw_to_der(key_bits, input->x, input->len, 46 TEST_ASSERT(mbedtls_ecdsa_raw_to_der(key_bits, input->x, input->len, 58 void ecdsa_der_to_raw(int key_bits, data_t *input, data_t *exp_result, int exp_ret) 68 /* Verify that parsing of truncated input always fails. */ 69 for (in_buf_len = 1; in_buf_len < input->len; in_buf_len++) { 70 /* We alloc a copy of input buffer with limited length so that sanitizers 73 memcpy(in_buf, input->x, in_buf_len); [all …]
|
D | test_suite_psa_crypto_hash.function | 14 void hash_finish(int alg_arg, data_t *input, data_t *expected_hash) 25 input->x, input->len)); 39 void hmac(int alg_arg, char *input, data_t *expected_mac) 62 size_t input_len = strlen(input); 63 PSA_ASSERT(psa_mac_compute(key, alg, (uint8_t const *) input, input_len, mac, sizeof(mac), 70 PSA_ASSERT(psa_mac_verify(key, alg, (uint8_t const *) input, input_len, expected_mac->x, 75 TEST_EQUAL(psa_mac_verify(key, alg, (uint8_t const *) input, input_len, expected_mac->x, 85 void hash_verify(int alg_arg, data_t *input, data_t *expected_hash) 94 input->x, 95 input->len)); [all …]
|
D | test_suite_psa_crypto_op_fail.function | 50 uint8_t input[1] = { 'A' }; 59 psa_hash_compute(alg, input, sizeof(input), 62 psa_hash_compare(alg, input, sizeof(input), 81 uint8_t input[1] = { 'A' }; 102 input, sizeof(input), 106 input, sizeof(input), 127 uint8_t input[1] = { 'A' }; 148 input, sizeof(input), 152 input, sizeof(input), 173 uint8_t input[16] = "ABCDEFGHIJKLMNO"; [all …]
|
D | test_suite_cipher.nist_kw.data | 33 KWP AES-128 1 byte input 37 KWP AES-128 2 byte input 41 KWP AES-128 3 byte input 45 KWP AES-128 4 byte input 49 KWP AES-128 5 byte input 53 KWP AES-128 6 byte input 57 KWP AES-128 7 byte input 61 KWP AES-128 8 byte input 65 KWP AES-128 9 byte input 69 KWP AES-128 10 byte input [all …]
|
D | test_suite_psa_crypto_memory.data | 1 PSA input buffer copy: straightforward copy 4 PSA input buffer copy: copy buffer larger than required 7 PSA input buffer copy: copy buffer too small 10 PSA input buffer copy: zero-length source buffer 13 PSA input buffer copy: zero-length both buffers 31 PSA crypto local input alloc 34 PSA crypto local input alloc, NULL buffer 37 PSA crypto local input free 40 PSA crypto local input free, NULL buffer 43 PSA crypto local input round-trip
|
D | test_suite_psa_crypto_memory.function | 87 uint8_t *input = NULL; 93 TEST_CALLOC(input, input_len); 94 fill_buffer_pattern(input, input_len); 96 status = psa_crypto_local_input_alloc(input, input_len, &local_input); 100 MBEDTLS_TEST_MEMORY_UNPOISON(input, input_len); 102 TEST_ASSERT(local_input.buffer != input); 104 TEST_MEMORY_COMPARE(input, input_len, 110 mbedtls_free(input); 139 uint8_t input[200]; 142 fill_buffer_pattern(input, sizeof(input)); [all …]
|
D | test_suite_bignum_core.misc.data | 4 Test mbedtls_mpi_core_io_be #1 (Buffer and limbs just fit, input limb-aligned) 7 Test mbedtls_mpi_core_io_be #2 (Buffer and limbs just fit, input unaligned) 10 Test mbedtls_mpi_core_io_be #3 (Buffer just fits, extra limbs, input limb-aligned) 13 Test mbedtls_mpi_core_io_be #4 (Buffer just fits, extra limbs, input unaligned) 16 Test mbedtls_mpi_core_io_be #5 (Extra limbs, buffer aligned to extra limbs, input limb-aligned) 19 Test mbedtls_mpi_core_io_be #6 (Extra limbs, buffer aligned to extra limbs, input unaligned) 22 Test mbedtls_mpi_core_io_be #7 (Buffer and limbs just fit, input limb-aligned with leading zeroes) 25 Test mbedtls_mpi_core_io_be #8 (Buffer and limbs just fit, input unaligned with leading zeroes) 28 Test mbedtls_mpi_core_io_be #9 (Buffer just fits, extra limbs, input limb-aligned with leading zero… 31 Test mbedtls_mpi_core_io_be #10 (Buffer just fits, extra limbs, input unaligned with leading zeroes) [all …]
|
D | test_suite_chachapoly.function | 85 unsigned char input[1]; 88 size_t input_len = sizeof(input); 95 memset(input, 0x00, sizeof(input)); 104 TEST_ASSERT(mbedtls_chachapoly_update(&ctx, input_len, input, output) 115 TEST_ASSERT(mbedtls_chachapoly_update(&ctx, input_len, input, output) 127 TEST_ASSERT(mbedtls_chachapoly_update(&ctx, input_len, input, output) 135 TEST_ASSERT(mbedtls_chachapoly_update(&ctx, input_len, input, output) 137 TEST_ASSERT(mbedtls_chachapoly_update(&ctx, input_len, input, output)
|
/openthread-latest/third_party/mbedtls/repo/3rdparty/everest/library/ |
D | Hacl_Curve25519.c | 41 inline static void Hacl_Bignum_Fproduct_copy_from_wide_(uint64_t *output, uint128_t *input) in Hacl_Bignum_Fproduct_copy_from_wide_() argument 46 uint128_t xi = input[i]; in Hacl_Bignum_Fproduct_copy_from_wide_() 52 Hacl_Bignum_Fproduct_sum_scalar_multiplication_(uint128_t *output, uint64_t *input, uint64_t s) in Hacl_Bignum_Fproduct_sum_scalar_multiplication_() argument 58 uint64_t yi = input[i]; in Hacl_Bignum_Fproduct_sum_scalar_multiplication_() 97 Hacl_Bignum_Fmul_mul_shift_reduce_(uint128_t *output, uint64_t *input, uint64_t *input2) in Hacl_Bignum_Fmul_mul_shift_reduce_() argument 106 Hacl_Bignum_Fproduct_sum_scalar_multiplication_(output, input, input2i0); in Hacl_Bignum_Fmul_mul_shift_reduce_() 107 Hacl_Bignum_Fmul_shift_reduce(input); in Hacl_Bignum_Fmul_mul_shift_reduce_() 112 Hacl_Bignum_Fproduct_sum_scalar_multiplication_(output, input, input2i); in Hacl_Bignum_Fmul_mul_shift_reduce_() 115 inline static void Hacl_Bignum_Fmul_fmul(uint64_t *output, uint64_t *input, uint64_t *input2) in Hacl_Bignum_Fmul_fmul() argument 118 memcpy(tmp, input, (uint32_t)5U * sizeof input[0U]); in Hacl_Bignum_Fmul_fmul() [all …]
|
/openthread-latest/third_party/mbedtls/repo/3rdparty/everest/library/legacy/ |
D | Hacl_Curve25519.c | 45 Hacl_Bignum_Fproduct_copy_from_wide_(uint64_t *output, FStar_UInt128_uint128 *input) in Hacl_Bignum_Fproduct_copy_from_wide_() argument 50 FStar_UInt128_uint128 xi = input[i]; in Hacl_Bignum_Fproduct_copy_from_wide_() 58 uint64_t *input, in Hacl_Bignum_Fproduct_sum_scalar_multiplication_() argument 66 uint64_t yi = input[i]; in Hacl_Bignum_Fproduct_sum_scalar_multiplication_() 107 uint64_t *input, in Hacl_Bignum_Fmul_mul_shift_reduce_() argument 118 Hacl_Bignum_Fproduct_sum_scalar_multiplication_(output, input, input2i0); in Hacl_Bignum_Fmul_mul_shift_reduce_() 119 Hacl_Bignum_Fmul_shift_reduce(input); in Hacl_Bignum_Fmul_mul_shift_reduce_() 124 Hacl_Bignum_Fproduct_sum_scalar_multiplication_(output, input, input2i); in Hacl_Bignum_Fmul_mul_shift_reduce_() 127 inline static void Hacl_Bignum_Fmul_fmul(uint64_t *output, uint64_t *input, uint64_t *input2) in Hacl_Bignum_Fmul_fmul() argument 130 memcpy(tmp, input, (uint32_t)5U * sizeof input[0U]); in Hacl_Bignum_Fmul_fmul() [all …]
|
/openthread-latest/third_party/mbedtls/repo/programs/psa/ |
D | crypto_examples.c | 50 const uint8_t *input, in cipher_operation() argument 66 status = psa_cipher_update(operation, input + bytes_written, in cipher_operation() 88 const uint8_t *input, in cipher_encrypt() argument 106 status = cipher_operation(&operation, input, input_size, part_size, in cipher_encrypt() 119 const uint8_t *input, in cipher_decrypt() argument 136 status = cipher_operation(&operation, input, input_size, part_size, in cipher_decrypt() 160 uint8_t input[block_size]; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() local 164 status = psa_generate_random(input, sizeof(input)); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 177 input, sizeof(input), part_size, in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 186 status = memcmp(input, decrypt, sizeof(input)); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() [all …]
|
D | key_ladder_demo.sh | 27 echo "Here is some input. See it wrapped." >input.txt 30 input=input.txt output=hello_world.wrap 35 input=hello_world.wrap output=hello_world.txt 37 cmp input.txt hello_world.txt 41 …"$program" unwrap master=master.key input=hello_world.wrap output=hellow_orld.txt label=hellow lab… 46 input=hello_world.wrap output=hello.key 49 input=hello_world.wrap output=hello_world.txt
|
/openthread-latest/third_party/mbedtls/repo/include/mbedtls/ |
D | aes.h | 249 const unsigned char input[16], 299 const unsigned char *input, 344 const unsigned char *input, 394 const unsigned char *input, 438 const unsigned char *input, 493 const unsigned char *input, 577 const unsigned char *input, 594 const unsigned char input[16], 611 const unsigned char input[16],
|
/openthread-latest/third_party/mbedtls/repo/tests/src/drivers/ |
D | test_driver_asymmetric_encryption.c | 30 size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, in mbedtls_test_transparent_asymmetric_encrypt() argument 57 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_encrypt() 62 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_encrypt() 71 size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, in mbedtls_test_transparent_asymmetric_decrypt() argument 98 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_decrypt() 103 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_decrypt() 115 size_t key_length, psa_algorithm_t alg, const uint8_t *input, in mbedtls_test_opaque_asymmetric_encrypt() argument 135 alg, input, input_length, salt, salt_length, in mbedtls_test_opaque_asymmetric_encrypt() 140 alg, input, input_length, salt, salt_length, in mbedtls_test_opaque_asymmetric_encrypt() 149 size_t key_length, psa_algorithm_t alg, const uint8_t *input, in mbedtls_test_opaque_asymmetric_decrypt() argument [all …]
|
D | test_driver_cipher.c | 37 const uint8_t *input, in mbedtls_test_transparent_cipher_encrypt() argument 71 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt() 76 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt() 88 const uint8_t *input, in mbedtls_test_transparent_cipher_decrypt() argument 118 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt() 123 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt() 237 const uint8_t *input, in mbedtls_test_transparent_cipher_update() argument 265 operation, input, input_length, in mbedtls_test_transparent_cipher_update() 269 operation, input, input_length, in mbedtls_test_transparent_cipher_update() 321 const uint8_t *input, size_t input_length, in mbedtls_test_opaque_cipher_encrypt() argument [all …]
|
D | hash.c | 24 const uint8_t *input, size_t input_length, in mbedtls_test_transparent_hash_compute() argument 37 alg, input, input_length, in mbedtls_test_transparent_hash_compute() 42 alg, input, input_length, in mbedtls_test_transparent_hash_compute() 46 (void) input; in mbedtls_test_transparent_hash_compute() 115 const uint8_t *input, in mbedtls_test_transparent_hash_update() argument 128 operation, input, input_length); in mbedtls_test_transparent_hash_update() 131 mbedtls_psa_hash_update(operation, input, input_length); in mbedtls_test_transparent_hash_update() 134 (void) input; in mbedtls_test_transparent_hash_update()
|
D | test_driver_mac.c | 27 const uint8_t *input, in mbedtls_test_transparent_mac_compute() argument 45 input, input_length, in mbedtls_test_transparent_mac_compute() 51 input, input_length, in mbedtls_test_transparent_mac_compute() 58 (void) input; in mbedtls_test_transparent_mac_compute() 146 const uint8_t *input, in mbedtls_test_transparent_mac_update() argument 159 operation, input, input_length); in mbedtls_test_transparent_mac_update() 163 operation, input, input_length); in mbedtls_test_transparent_mac_update() 166 (void) input; in mbedtls_test_transparent_mac_update() 269 const uint8_t *input, in mbedtls_test_opaque_mac_compute() argument 285 (void) input; in mbedtls_test_opaque_mac_compute() [all …]
|
/openthread-latest/third_party/mbedtls/repo/library/ |
D | cipher.c | 579 int mbedtls_cipher_update(mbedtls_cipher_context_t *ctx, const unsigned char *input, in mbedtls_cipher_update() argument 612 ctx->operation, input, in mbedtls_cipher_update() 623 input, ilen, in mbedtls_cipher_update() 631 input, ilen, in mbedtls_cipher_update() 640 ilen, input, output); in mbedtls_cipher_update() 644 if (input == output && in mbedtls_cipher_update() 662 memcpy(&(ctx->unprocessed_data[ctx->unprocessed_len]), input, in mbedtls_cipher_update() 675 memcpy(&(ctx->unprocessed_data[ctx->unprocessed_len]), input, in mbedtls_cipher_update() 691 input += copy_len; in mbedtls_cipher_update() 710 memcpy(ctx->unprocessed_data, &(input[ilen - copy_len]), in mbedtls_cipher_update() [all …]
|
D | cipher_wrap.h | 80 const unsigned char *input, unsigned char *output); 85 unsigned char *iv, const unsigned char *input, 92 unsigned char *iv, const unsigned char *input, 100 const unsigned char *input, 108 const unsigned char *input, unsigned char *output); 115 const unsigned char *input, unsigned char *output); 121 const unsigned char *input, unsigned char *output);
|
D | md.c | 571 int mbedtls_md_update(mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen) in mbedtls_md_update() argument 581 psa_status_t status = psa_hash_update(ctx->md_ctx, input, ilen); in mbedtls_md_update() 589 return mbedtls_md5_update(ctx->md_ctx, input, ilen); in mbedtls_md_update() 593 return mbedtls_ripemd160_update(ctx->md_ctx, input, ilen); in mbedtls_md_update() 597 return mbedtls_sha1_update(ctx->md_ctx, input, ilen); in mbedtls_md_update() 601 return mbedtls_sha256_update(ctx->md_ctx, input, ilen); in mbedtls_md_update() 605 return mbedtls_sha256_update(ctx->md_ctx, input, ilen); in mbedtls_md_update() 609 return mbedtls_sha512_update(ctx->md_ctx, input, ilen); in mbedtls_md_update() 613 return mbedtls_sha512_update(ctx->md_ctx, input, ilen); in mbedtls_md_update() 620 return mbedtls_sha3_update(ctx->md_ctx, input, ilen); in mbedtls_md_update() [all …]
|
D | psa_crypto_driver_wrappers.h | 116 const uint8_t *input, in psa_driver_wrapper_sign_message() argument 138 input, in psa_driver_wrapper_sign_message() 159 input, in psa_driver_wrapper_sign_message() 179 input, in psa_driver_wrapper_sign_message() 191 const uint8_t *input, in psa_driver_wrapper_verify_message() argument 212 input, in psa_driver_wrapper_verify_message() 232 input, in psa_driver_wrapper_verify_message() 251 input, in psa_driver_wrapper_verify_message() 1076 const uint8_t *input, in psa_driver_wrapper_cipher_encrypt() argument 1099 input, in psa_driver_wrapper_cipher_encrypt() [all …]
|
D | cipher_wrap.c | 164 const unsigned char *input, unsigned char *output) in aes_crypt_ecb_wrap() argument 166 return mbedtls_aes_crypt_ecb((mbedtls_aes_context *) ctx, operation, input, output); in aes_crypt_ecb_wrap() 171 unsigned char *iv, const unsigned char *input, unsigned char *output) in aes_crypt_cbc_wrap() argument 173 return mbedtls_aes_crypt_cbc((mbedtls_aes_context *) ctx, operation, length, iv, input, in aes_crypt_cbc_wrap() 181 const unsigned char *input, unsigned char *output) in aes_crypt_cfb128_wrap() argument 184 input, output); in aes_crypt_cfb128_wrap() 190 unsigned char *iv, const unsigned char *input, unsigned char *output) in aes_crypt_ofb_wrap() argument 193 iv, input, output); in aes_crypt_ofb_wrap() 200 const unsigned char *input, unsigned char *output) in aes_crypt_ctr_wrap() argument 203 stream_block, input, output); in aes_crypt_ctr_wrap() [all …]
|
D | psa_crypto_hash.c | 263 const uint8_t *input, in mbedtls_psa_hash_update() argument 272 input, input_length); in mbedtls_psa_hash_update() 278 input, input_length); in mbedtls_psa_hash_update() 284 input, input_length); in mbedtls_psa_hash_update() 290 input, input_length); in mbedtls_psa_hash_update() 296 input, input_length); in mbedtls_psa_hash_update() 302 input, input_length); in mbedtls_psa_hash_update() 308 input, input_length); in mbedtls_psa_hash_update() 328 input, input_length); in mbedtls_psa_hash_update() 332 (void) input; in mbedtls_psa_hash_update() [all …]
|