Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 254) sorted by relevance

1234567891011

/lib/lwip/lwip/contrib/addons/tcp_isn/
A Dtcp_isn.c88 static u8_t input[64]; variable
101 memset(input, 0, sizeof(input)); in lwip_init_tcp_isn()
152 memset(&input[0], 0, 10); in lwip_hook_tcp_isn()
153 input[10] = 0xff; in lwip_hook_tcp_isn()
154 input[11] = 0xff; in lwip_hook_tcp_isn()
156 memset(&input[16], 0, 10); in lwip_hook_tcp_isn()
157 input[26] = 0xff; in lwip_hook_tcp_isn()
158 input[27] = 0xff; in lwip_hook_tcp_isn()
163 input[32] = (u8_t)(local_port >> 8); in lwip_hook_tcp_isn()
165 input[34] = (u8_t)(remote_port >> 8); in lwip_hook_tcp_isn()
[all …]
/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_asn1parse.function144 memcpy(buf, input->x, input->len);
317 TEST_ASSERT(p == input->x + input->len);
336 p = input->x;
343 p = input->x;
404 TEST_ASSERT(p == input->x + input->len);
443 TEST_ASSERT(p == input->x + input->len);
492 TEST_ASSERT(p == input->x + input->len);
542 TEST_EQUAL(bs.p - input->x + bs.len, input->len);
543 TEST_ASSERT(p == input->x + input->len);
553 TEST_ASSERT(p == input->x + input->len - bs.len);
[all …]
A Dtest_suite_bignum_mod_raw.data1 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)
73 Test mbedtls_mpi_mod_raw_io #13 BE (Zero, empty input)
76 Test mbedtls_mpi_mod_raw_io #13 LE (Zero, empty input)
113 Test mbedtls_mpi_mod_raw_io #18 BE (not enough limbs, input unaligned)
116 Test mbedtls_mpi_mod_raw_io #18 LE (not enough limbs, input unaligned)
125 Test mbedtls_mpi_mod_raw_io #20 BE (buffer too small, input unaligned)
128 Test mbedtls_mpi_mod_raw_io #20 LE (buffer too small, input unaligned)
131 Test mbedtls_mpi_mod_raw_io #21 BE (modulus is equal to input)
[all …]
A Dtest_suite_psa_crypto_hash.function14 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);
85 void hash_verify(int alg_arg, data_t *input, data_t *expected_hash)
94 input->x,
95 input->len));
123 input->x, len));
126 input->x + len, input->len - len));
128 input->x + len, input->len - len));
[all …]
A Dtest_suite_psa_crypto_util.function7 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 …]
A Dtest_suite_psa_crypto_op_fail.function59 psa_hash_compute(alg, input, sizeof(input),
62 psa_hash_compare(alg, input, sizeof(input),
102 input, sizeof(input),
106 input, sizeof(input),
148 input, sizeof(input),
152 input, sizeof(input),
194 input, sizeof(input),
199 input, sizeof(input),
245 input, sizeof(input),
250 input, sizeof(input)));
[all …]
A Dtest_suite_cipher.nist_kw.data33 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 …]
A Dtest_suite_bignum_core.misc.data4 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)
40 Test mbedtls_mpi_core_io_be #13 (Zero, empty input)
54 Test mbedtls_mpi_core_io_be #17 (not enough limbs, input limb-aligned)
57 Test mbedtls_mpi_core_io_be #18 (not enough limbs, input unaligned)
60 Test mbedtls_mpi_core_io_be #19 (buffer too small, input limb-aligned)
63 Test mbedtls_mpi_core_io_be #20 (buffer too small, input unaligned)
105 Test mbedtls_mpi_core_io_le #13 (Zero, empty input)
122 Test mbedtls_mpi_core_io_le #18 (not enough limbs, input unaligned)
128 Test mbedtls_mpi_core_io_le #20 (buffer too small, input unaligned)
[all …]
A Dtest_suite_psa_crypto_memory.data1 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
A Dtest_suite_psa_crypto_memory.function87 uint8_t *input = NULL;
93 TEST_CALLOC(input, input_len);
94 fill_buffer_pattern(input, input_len);
104 TEST_MEMORY_COMPARE(input, input_len,
110 mbedtls_free(input);
139 uint8_t input[200];
142 fill_buffer_pattern(input, sizeof(input));
144 status = psa_crypto_local_input_alloc(input, sizeof(input), &local_input);
147 MBEDTLS_TEST_MEMORY_UNPOISON(input, sizeof(input));
149 input, sizeof(input));
[all …]
/lib/mbedtls/external/mbedtls/3rdparty/everest/library/
A DHacl_Curve25519.c118 memcpy(tmp, input, (uint32_t)5U * sizeof input[0U]); in Hacl_Bignum_Fmul_fmul()
226 memcpy(output, input, (uint32_t)5U * sizeof input[0U]); in Hacl_Bignum_Fsquare_fsquare_times()
409 memcpy(output, input, (uint32_t)5U * sizeof input[0U]); in Hacl_EC_Point_copy()
453 input[0U] = t0_; in Hacl_EC_Format_fcontract_first_carry_pass()
457 input[4U] = t4_; in Hacl_EC_Format_fcontract_first_carry_pass()
481 input[0U] = t0_; in Hacl_EC_Format_fcontract_second_carry_pass()
485 input[4U] = t4_; in Hacl_EC_Format_fcontract_second_carry_pass()
496 i0 = input[0U]; in Hacl_EC_Format_fcontract_second_carry_full()
497 i1 = input[1U]; in Hacl_EC_Format_fcontract_second_carry_full()
500 input[0U] = i0_; in Hacl_EC_Format_fcontract_second_carry_full()
[all …]
/lib/mbedtls/external/mbedtls/3rdparty/everest/library/legacy/
A DHacl_Curve25519.c58 uint64_t *input, in Hacl_Bignum_Fproduct_sum_scalar_multiplication_() argument
107 uint64_t *input, in Hacl_Bignum_Fmul_mul_shift_reduce_() argument
130 memcpy(tmp, input, (uint32_t)5U * sizeof input[0U]); in Hacl_Bignum_Fmul_fmul()
246 uint64_t *input, in Hacl_Bignum_Fsquare_fsquare_times_() argument
268 memcpy(output, input, (uint32_t)5U * sizeof input[0U]); in Hacl_Bignum_Fsquare_fsquare_times()
454 memcpy(output, input, (uint32_t)5U * sizeof input[0U]); in Hacl_EC_Point_copy()
498 input[0U] = t0_; in Hacl_EC_Format_fcontract_first_carry_pass()
502 input[4U] = t4_; in Hacl_EC_Format_fcontract_first_carry_pass()
526 input[0U] = t0_; in Hacl_EC_Format_fcontract_second_carry_pass()
541 i0 = input[0U]; in Hacl_EC_Format_fcontract_second_carry_full()
[all …]
/lib/mbedtls/external/mbedtls/programs/psa/
A Dcrypto_examples.c160 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()
209 uint8_t iv[block_size], input[input_size], in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() local
212 status = psa_generate_random(input, sizeof(input)); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
225 input, sizeof(input), part_size, in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
234 status = memcmp(input, decrypt, sizeof(input)); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
259 status = psa_generate_random(input, sizeof(input)); in cipher_example_encrypt_decrypt_aes_ctr_multi()
272 input, sizeof(input), part_size, in cipher_example_encrypt_decrypt_aes_ctr_multi()
[all …]
A Dkey_ladder_demo.sh27 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
/lib/mbedtls/
A Dsha512.c33 sha384_update(sha512_context *ctx, const uint8_t *input, uint32_t length) in sha384_update() argument
35 mbedtls_sha512_update(ctx, input, length); in sha384_update()
44 void sha384_csum_wd(const unsigned char *input, unsigned int length, in sha384_csum_wd() argument
47 mbedtls_sha512(input, length, output, 1); in sha384_csum_wd()
57 sha512_update(sha512_context *ctx, const uint8_t *input, uint32_t length) in sha512_update() argument
59 mbedtls_sha512_update(ctx, input, length); in sha512_update()
68 void sha512_csum_wd(const unsigned char *input, unsigned int ilen, in sha512_csum_wd() argument
76 const unsigned char *curr = input; in sha512_csum_wd()
77 const unsigned char *end = input + ilen; in sha512_csum_wd()
89 sha512_update(&ctx, input, ilen); in sha512_csum_wd()
A Dsha1.c25 void sha1_update(sha1_context *ctx, const unsigned char *input, in sha1_update() argument
28 mbedtls_sha1_update(ctx, input, length); in sha1_update()
37 void sha1_csum_wd(const unsigned char *input, unsigned int ilen, in sha1_csum_wd() argument
45 const unsigned char *curr = input; in sha1_csum_wd()
46 const unsigned char *end = input + ilen; in sha1_csum_wd()
58 sha1_update(&ctx, input, ilen); in sha1_csum_wd()
65 const unsigned char *input, unsigned int ilen, in sha1_hmac() argument
87 sha1_update(&ctx, input, ilen); in sha1_hmac()
/lib/mbedtls/external/mbedtls/library/
A Dcipher.c623 input, ilen, in mbedtls_cipher_update()
644 if (input == output && in mbedtls_cipher_update()
691 input += copy_len; in mbedtls_cipher_update()
847 if (NULL == input || NULL == data_len) { in get_pkcs_padding()
851 padding_len = input[input_len - 1]; in get_pkcs_padding()
889 if (NULL == input || NULL == data_len) { in get_one_and_zeros_padding()
937 if (NULL == input || NULL == data_len) { in get_zeros_and_len_padding()
941 padding_len = input[input_len - 1]; in get_zeros_and_len_padding()
977 if (NULL == input || NULL == data_len) { in get_zeros_padding()
1001 if (NULL == input || NULL == data_len) { in get_no_padding()
[all …]
A Dmd.c589 return mbedtls_md5_update(ctx->md_ctx, input, ilen); in mbedtls_md_update()
696 input, ilen, in mbedtls_md()
705 return mbedtls_md5(input, ilen, output); in mbedtls_md()
709 return mbedtls_ripemd160(input, ilen, output); in mbedtls_md()
713 return mbedtls_sha1(input, ilen, output); in mbedtls_md()
717 return mbedtls_sha256(input, ilen, output, 1); in mbedtls_md()
721 return mbedtls_sha256(input, ilen, output, 0); in mbedtls_md()
725 return mbedtls_sha512(input, ilen, output, 1); in mbedtls_md()
729 return mbedtls_sha512(input, ilen, output, 0); in mbedtls_md()
1023 return mbedtls_md_update(ctx, input, ilen); in mbedtls_md_hmac_update()
[all …]
A Dpsa_crypto_driver_wrappers.h116 const uint8_t *input, in psa_driver_wrapper_sign_message() argument
191 const uint8_t *input, in psa_driver_wrapper_verify_message() argument
1076 const uint8_t *input, in psa_driver_wrapper_cipher_encrypt() argument
1152 (void)input; in psa_driver_wrapper_cipher_encrypt()
1234 (void)input; in psa_driver_wrapper_cipher_decrypt()
1461 (void)input; in psa_driver_wrapper_cipher_update()
1575 (void) input; in psa_driver_wrapper_hash_compute()
1985 const uint8_t *input, in psa_driver_wrapper_aead_update_ad() argument
2011 (void)input; in psa_driver_wrapper_aead_update_ad()
2019 const uint8_t *input, in psa_driver_wrapper_aead_update() argument
[all …]
A Dcipher_wrap.h80 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);
A Dcipher_wrap.c184 input, output); in aes_crypt_cfb128_wrap()
193 iv, input, output); in aes_crypt_ofb_wrap()
203 stream_block, input, output); in aes_crypt_ctr_wrap()
211 const unsigned char *input, in aes_crypt_xts_wrap() argument
229 data_unit, input, output); in aes_crypt_xts_wrap()
790 input, output); in camellia_crypt_cbc_wrap()
1208 input, output); in aria_crypt_cbc_wrap()
1901 const unsigned char *input, in chacha20_stream_wrap() argument
1906 ret = mbedtls_chacha20_update(ctx, length, input, output); in chacha20_stream_wrap()
2053 const unsigned char *input, in null_crypt_stream() argument
[all …]
/lib/mbedtls/external/mbedtls/tests/src/drivers/
A Dtest_driver_asymmetric_encryption.c30 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()
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
169 alg, input, input_length, salt, salt_length, in mbedtls_test_opaque_asymmetric_decrypt()
[all …]
A Dtest_driver_cipher.c37 const uint8_t *input, in mbedtls_test_transparent_cipher_encrypt() argument
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()
330 (void) input; in mbedtls_test_opaque_cipher_encrypt()
349 (void) input; in mbedtls_test_opaque_cipher_decrypt()
405 const uint8_t *input, in mbedtls_test_opaque_cipher_update() argument
[all …]
/lib/mbedtls/external/mbedtls/include/mbedtls/
A Daes.h249 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],
/lib/mbedtls/port/
A Dsha512_alt.h43 const unsigned char *input, in mbedtls_sha512_update() argument
47 sha384_update(ctx->ubctx, input, ilen); in mbedtls_sha512_update()
49 sha512_update(ctx->ubctx, input, ilen); in mbedtls_sha512_update()
65 static inline int mbedtls_sha512(const unsigned char *input, in mbedtls_sha512() argument
71 sha384_csum_wd(input, ilen, output, CHUNKSZ_SHA512); in mbedtls_sha512()
73 sha512_csum_wd(input, ilen, output, CHUNKSZ_SHA512); in mbedtls_sha512()

Completed in 84 milliseconds

1234567891011