Home
last modified time | relevance | path

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

123456

/mbedtls-development/tests/suites/
A Dtest_suite_asn1parse.function147 memcpy( buf, input->x, input->len );
326 TEST_ASSERT( p == input->x + input->len );
345 p = input->x;
352 p = input->x;
410 p = input->x;
416 TEST_ASSERT( p == input->x + input->len );
460 TEST_ASSERT( p == input->x + input->len );
512 TEST_ASSERT( p == input->x + input->len );
563 TEST_EQUAL( bs.p - input->x + bs.len, input->len );
564 TEST_ASSERT( p == input->x + input->len );
[all …]
A Dtest_suite_psa_crypto_hash.function13 void hash_finish( int alg_arg, data_t *input, data_t *expected_hash )
24 input->x, input->len ) );
38 void hash_verify( int alg_arg, data_t *input, data_t *expected_hash )
47 input->x,
48 input->len ) );
60 void hash_multi_part( int alg_arg, data_t *input, data_t *expected_hash )
77 input->x, len ) );
80 input->x + len, input->len - len ) );
82 input->x + len, input->len - len ) );
95 } while( len++ != input->len );
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_psa_crypto_driver_wrappers.function474 input->x, input->len,
911 input->x, input->len,
933 input->x, input->len,
954 input->x, input->len,
963 input->x, input->len,
983 input->x, input->len,
1001 input->x, input->len,
1191 input->x, input->len,
1224 input->x, input->len );
1311 input->x, input->len,
[all …]
A Dtest_suite_chachapoly.function75 unsigned char input[1];
78 size_t input_len = sizeof( input );
85 memset( input, 0x00, sizeof( input ) );
94 TEST_ASSERT( mbedtls_chachapoly_update( &ctx, input_len, input, output )
105 TEST_ASSERT( mbedtls_chachapoly_update( &ctx, input_len, input, output )
117 TEST_ASSERT( mbedtls_chachapoly_update( &ctx, input_len, input, output )
125 TEST_ASSERT( mbedtls_chachapoly_update( &ctx, input_len, input, output )
127 TEST_ASSERT( mbedtls_chachapoly_update( &ctx, input_len, input, output )
/mbedtls-development/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 …]
/mbedtls-development/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 …]
/mbedtls-development/programs/psa/
A Dcrypto_examples.c173 uint8_t input[block_size]; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() local
177 status = psa_generate_random( input, sizeof( input ) ); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
190 input, sizeof( input ), part_size, in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
199 status = memcmp( input, decrypt, sizeof( input ) ); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
222 uint8_t iv[block_size], input[input_size], in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() local
225 status = psa_generate_random( input, sizeof( input ) ); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
238 input, sizeof( input ), part_size, in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
247 status = memcmp( input, decrypt, sizeof( input ) ); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
272 status = psa_generate_random( input, sizeof( input ) ); in cipher_example_encrypt_decrypt_aes_ctr_multi()
285 input, sizeof( input ), part_size, in cipher_example_encrypt_decrypt_aes_ctr_multi()
[all …]
A Dkey_ladder_demo.sh40 echo "Here is some input. See it wrapped." >input.txt
43 input=input.txt output=hello_world.wrap
48 input=hello_world.wrap output=hello_world.txt
50 cmp input.txt hello_world.txt
54 …"$program" unwrap master=master.key input=hello_world.wrap output=hellow_orld.txt label=hellow lab…
59 input=hello_world.wrap output=hello.key
62 input=hello_world.wrap output=hello_world.txt
/mbedtls-development/include/mbedtls/
A Daes.h260 const unsigned char input[16],
310 const unsigned char *input,
355 const unsigned char *input,
405 const unsigned char *input,
449 const unsigned char *input,
504 const unsigned char *input,
592 const unsigned char *input,
609 const unsigned char input[16],
625 const unsigned char input[16],
/mbedtls-development/library/
A Dcipher.c606 if( input == output && in mbedtls_cipher_update()
655 input += copy_len; in mbedtls_cipher_update()
706 input, output ) ) ) in mbedtls_cipher_update()
808 if( NULL == input || NULL == data_len ) in get_pkcs_padding()
811 padding_len = input[input_len - 1]; in get_pkcs_padding()
849 if( NULL == input || NULL == data_len ) in get_one_and_zeros_padding()
857 done |= ( input[i - 1] != 0 ); in get_one_and_zeros_padding()
888 if( NULL == input || NULL == data_len ) in get_zeros_and_len_padding()
891 padding_len = input[input_len - 1]; in get_zeros_and_len_padding()
933 done |= ( input[i-1] != 0 ); in get_zeros_padding()
[all …]
A Dcipher_wrap.h49 const unsigned char *input, unsigned char *output );
54 unsigned char *iv, const unsigned char *input,
61 unsigned char *iv, const unsigned char *input,
69 const unsigned char *input,
77 const unsigned char *input, unsigned char *output );
84 const unsigned char *input, unsigned char *output );
90 const unsigned char *input, unsigned char *output );
A Dpsa_crypto_hash.c293 const uint8_t *input, in hash_update() argument
343 (void) input; in hash_update()
427 const uint8_t *input, in hash_compute() argument
441 status = hash_update( &operation, input, input_length ); in hash_compute()
461 const uint8_t *input, in mbedtls_psa_hash_compute() argument
467 return( hash_compute( alg, input, input_length, in mbedtls_psa_hash_compute()
487 const uint8_t *input, in mbedtls_psa_hash_update() argument
490 return( hash_update( operation, input, input_length ) ); in mbedtls_psa_hash_update()
553 const uint8_t *input, in mbedtls_transparent_test_driver_hash_compute() argument
560 return( hash_compute( alg, input, input_length, in mbedtls_transparent_test_driver_hash_compute()
[all …]
A Dpsa_crypto_cipher.c289 const uint8_t *input, in psa_cipher_update_ecb() argument
314 input, bytes_to_copy ); in psa_cipher_update_ecb()
316 input += bytes_to_copy; in psa_cipher_update_ecb()
340 mbedtls_cipher_update( ctx, input, in psa_cipher_update_ecb()
348 input += block_size; in psa_cipher_update_ecb()
358 input, input_length ); in psa_cipher_update_ecb()
402 input, in cipher_update()
637 alg, input, input_length, in mbedtls_psa_cipher_encrypt()
691 const uint8_t *input, size_t input_length, in mbedtls_transparent_test_driver_cipher_update() argument
716 const uint8_t *input, in mbedtls_transparent_test_driver_cipher_encrypt() argument
[all …]
A Dchacha20.c242 const unsigned char *input, in mbedtls_chacha20_update() argument
249 CHACHA20_VALIDATE_RET( size == 0 || input != NULL ); in mbedtls_chacha20_update()
255 output[offset] = input[offset] in mbedtls_chacha20_update()
272 output[offset + i ] = input[offset + i ] ^ ctx->keystream8[i ]; in mbedtls_chacha20_update()
273 output[offset + i+1] = input[offset + i+1] ^ ctx->keystream8[i+1]; in mbedtls_chacha20_update()
274 output[offset + i+2] = input[offset + i+2] ^ ctx->keystream8[i+2]; in mbedtls_chacha20_update()
275 output[offset + i+3] = input[offset + i+3] ^ ctx->keystream8[i+3]; in mbedtls_chacha20_update()
295 output[offset + i] = input[offset + i] ^ ctx->keystream8[i]; in mbedtls_chacha20_update()
309 const unsigned char* input, in mbedtls_chacha20_crypt() argument
317 CHACHA20_VALIDATE_RET( data_len == 0 || input != NULL ); in mbedtls_chacha20_crypt()
[all …]
A Dcipher_wrap.c120 const unsigned char *input, unsigned char *output ) in aes_crypt_ecb_wrap() argument
137 const unsigned char *input, unsigned char *output ) in aes_crypt_cfb128_wrap() argument
140 input, output ); in aes_crypt_cfb128_wrap()
149 iv, input, output ); in aes_crypt_ofb_wrap()
156 const unsigned char *input, unsigned char *output ) in aes_crypt_ctr_wrap() argument
159 stream_block, input, output ); in aes_crypt_ctr_wrap()
167 const unsigned char *input, in aes_crypt_xts_wrap() argument
694 input, output ); in camellia_crypt_cbc_wrap()
1103 input, output ); in aria_crypt_cbc_wrap()
1926 const unsigned char *input, in null_crypt_stream() argument
[all …]
A Dpsa_crypto_driver_wrappers.c76 const uint8_t *input, in psa_driver_wrapper_sign_message() argument
151 const uint8_t *input, in psa_driver_wrapper_verify_message() argument
838 const uint8_t *input, in psa_driver_wrapper_cipher_encrypt() argument
906 (void)input; in psa_driver_wrapper_cipher_encrypt()
988 (void)input; in psa_driver_wrapper_cipher_decrypt()
1212 (void)input; in psa_driver_wrapper_cipher_update()
1326 (void) input; in psa_driver_wrapper_hash_compute()
1736 const uint8_t *input, in psa_driver_wrapper_aead_update_ad() argument
1762 (void)input; in psa_driver_wrapper_aead_update_ad()
1770 const uint8_t *input, in psa_driver_wrapper_aead_update() argument
[all …]
A Dmd.c472 return( mbedtls_md5_update( ctx->md_ctx, input, ilen ) ); in mbedtls_md_update()
553 return( mbedtls_md5( input, ilen, output ) ); in mbedtls_md()
557 return( mbedtls_ripemd160( input, ilen, output ) ); in mbedtls_md()
561 return( mbedtls_sha1( input, ilen, output ) ); in mbedtls_md()
565 return( mbedtls_sha256( input, ilen, output, 1 ) ); in mbedtls_md()
569 return( mbedtls_sha256( input, ilen, output, 0 ) ); in mbedtls_md()
573 return( mbedtls_sha512( input, ilen, output, 1 ) ); in mbedtls_md()
577 return( mbedtls_sha512( input, ilen, output, 0 ) ); in mbedtls_md()
677 return( mbedtls_md_update( ctx, input, ilen ) ); in mbedtls_md_hmac_update()
721 const unsigned char *input, size_t ilen, in mbedtls_md_hmac() argument
[all …]
A Dchachapoly.c186 const unsigned char *input, in mbedtls_chachapoly_update() argument
191 CHACHAPOLY_VALIDATE_RET( len == 0 || input != NULL ); in mbedtls_chachapoly_update()
223 ret = mbedtls_poly1305_update( &ctx->poly1305_ctx, input, len ); in mbedtls_chachapoly_update()
284 const unsigned char *input, in chachapoly_crypt_and_tag() argument
298 ret = mbedtls_chachapoly_update( ctx, length, input, output ); in chachapoly_crypt_and_tag()
313 const unsigned char *input, in mbedtls_chachapoly_encrypt_and_tag() argument
321 CHACHAPOLY_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_chachapoly_encrypt_and_tag()
326 input, output, tag ) ); in mbedtls_chachapoly_encrypt_and_tag()
335 const unsigned char *input, in mbedtls_chachapoly_auth_decrypt() argument
346 CHACHAPOLY_VALIDATE_RET( length == 0 || input != NULL ); in mbedtls_chachapoly_auth_decrypt()
[all …]
A Dpadlock.c76 const unsigned char input[16], in mbedtls_padlock_xcryptecb()
87 memcpy( blk, input, 16 ); in mbedtls_padlock_xcryptecb()
118 const unsigned char *input, in mbedtls_padlock_xcryptcbc() argument
128 if( ( (long) input & 15 ) != 0 || in mbedtls_padlock_xcryptcbc()
154 "m" (rk), "m" (input), "m" (output), "m" (iw) in mbedtls_padlock_xcryptcbc()
A Dccm.c112 const unsigned char *input, in mbedtls_ccm_crypt() argument
129 output[i] = input[i] ^ tmp_buf[offset + i]; in mbedtls_ccm_crypt()
341 const unsigned char *input, size_t input_len, in mbedtls_ccm_update() argument
385 ctx->y[i + offset] ^= input[i]; in mbedtls_ccm_update()
438 input += use_len; in mbedtls_ccm_update()
506 if( ( ret = mbedtls_ccm_update( ctx, input, length, in ccm_auth_crypt()
526 add, add_len, input, output, tag, tag_len ) ); in mbedtls_ccm_star_encrypt_and_tag()
587 const unsigned char *input, unsigned char *output, in mbedtls_ccm_star_auth_decrypt() argument
592 input, output, tag, tag_len ); in mbedtls_ccm_star_auth_decrypt()
598 const unsigned char *input, unsigned char *output, in mbedtls_ccm_auth_decrypt() argument
[all …]
A Dcmac.c67 const unsigned char *input, in cmac_multiply_by_u() argument
91 output[i] = input[i] << 1 | overflow; in cmac_multiply_by_u()
92 overflow = input[i] >> 7; in cmac_multiply_by_u()
104 mask = - ( input[0] >> 7 ); in cmac_multiply_by_u()
247 input, in mbedtls_cipher_cmac_update()
258 input += block_size - cmac_ctx->unprocessed_len; in mbedtls_cipher_cmac_update()
270 cmac_xor_block( state, input, state, block_size ); in mbedtls_cipher_cmac_update()
277 input += block_size; in mbedtls_cipher_cmac_update()
284 input, in mbedtls_cipher_cmac_update()
393 ret = mbedtls_cipher_cmac_update( &ctx, input, ilen ); in mbedtls_cipher_cmac()
[all …]
A Dpsa_crypto_mac.c337 const uint8_t *input, in mac_update() argument
363 (void) input; in mac_update()
455 const uint8_t *input, in mac_compute() argument
495 const uint8_t *input, in mbedtls_psa_mac_compute() argument
530 const uint8_t *input, in mbedtls_psa_mac_update() argument
588 const uint8_t *input, in mbedtls_transparent_test_driver_mac_compute() argument
632 const uint8_t *input, in mbedtls_transparent_test_driver_mac_update() argument
675 const uint8_t *input, in mbedtls_opaque_test_driver_mac_compute() argument
686 (void) input; in mbedtls_opaque_test_driver_mac_compute()
728 const uint8_t *input, in mbedtls_opaque_test_driver_mac_update() argument
[all …]
/mbedtls-development/tests/src/drivers/
A Dtest_driver_cipher.c43 const uint8_t *input, in mbedtls_test_transparent_cipher_encrypt() argument
71 alg, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
80 const uint8_t *input, in mbedtls_test_transparent_cipher_decrypt() argument
106 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt()
181 const uint8_t *input, in mbedtls_test_transparent_cipher_update() argument
245 const uint8_t *input, size_t input_length, in mbedtls_test_opaque_cipher_encrypt() argument
252 (void) input; in mbedtls_test_opaque_cipher_encrypt()
264 const uint8_t *input, size_t input_length, in mbedtls_test_opaque_cipher_decrypt() argument
271 (void) input; in mbedtls_test_opaque_cipher_decrypt()
327 const uint8_t *input, in mbedtls_test_opaque_cipher_update() argument
[all …]
/mbedtls-development/include/psa/
A Dcrypto.h868 const uint8_t *input,
904 const uint8_t *input,
1026 const uint8_t *input,
1227 const uint8_t *input,
1268 const uint8_t *input,
1468 const uint8_t *input,
1639 const uint8_t *input,
1686 const uint8_t *input,
1979 const uint8_t *input,
2565 const uint8_t *input,
[all …]

Completed in 48 milliseconds

123456