/mbedtls-development/tests/suites/ |
A D | test_suite_aria.function | 32 ((void) output); 65 unsigned char output[ARIA_MAX_DATASIZE]; 69 memset( output, 0x00, sizeof( output ) ); 95 unsigned char output[ARIA_MAX_DATASIZE]; 99 memset( output, 0x00, sizeof( output ) ); 129 memset( output, 0x00, sizeof( output ) ); 155 memset( output, 0x00, sizeof( output ) ); 182 memset( output, 0x00, sizeof( output ) ); 208 memset( output, 0x00, sizeof( output ) ); 235 memset( output, 0x00, sizeof( output ) ); [all …]
|
A D | test_suite_shax.function | 10 unsigned char output[41]; 12 memset(output, 0x00, 41); 15 TEST_ASSERT( mbedtls_sha1( src_str->x, src_str->len, output ) == 0 ); 45 unsigned char output[57]; 47 memset(output, 0x00, 57); 59 unsigned char output[65]; 61 memset(output, 0x00, 65); 94 unsigned char output[97]; 96 memset(output, 0x00, 97); 108 unsigned char output[129]; [all …]
|
A D | test_suite_des.function | 20 unsigned char output[100]; 23 memset(output, 0x00, 100); 40 unsigned char output[100]; 43 memset(output, 0x00, 100); 61 unsigned char output[100]; 64 memset(output, 0x00, 100); 87 unsigned char output[100]; 90 memset(output, 0x00, 100); 112 unsigned char output[100]; 115 memset(output, 0x00, 100); [all …]
|
A D | test_suite_camellia.function | 50 unsigned char output[100]; 53 memset(output, 0x00, 100); 74 unsigned char output[100]; 77 memset(output, 0x00, 100); 98 unsigned char output[100]; 101 memset(output, 0x00, 100); 124 unsigned char output[100]; 127 memset(output, 0x00, 100); 149 unsigned char output[100]; 153 memset(output, 0x00, 100); [all …]
|
A D | test_suite_aes.function | 14 unsigned char output[100]; 17 memset(output, 0x00, 100); 38 unsigned char output[100]; 41 memset(output, 0x00, 100); 63 unsigned char output[100]; 66 memset(output, 0x00, 100); 89 unsigned char output[100]; 92 memset(output, 0x00, 100); 149 mbedtls_free( output ); 193 mbedtls_free( output ); [all …]
|
A D | test_suite_gcm.function | 5 * and check that the output matches the expected output. 18 uint8_t *output = NULL; 41 mbedtls_free( output ); 42 output = NULL; 49 mbedtls_free( output ); 50 output = NULL; 56 mbedtls_free( output ); 57 output = NULL; 61 mbedtls_free( output ); 97 output = NULL; [all …]
|
A D | test_suite_chacha20.function | 17 unsigned char output[375]; 20 memset( output, 0x00, sizeof( output ) ); 29 …edtls_chacha20_crypt( key_str->x, nonce_str->x, counter, src_str->len, src_str->x, output ) == 0 ); 31 ASSERT_COMPARE( output, expected_output_str->len, 43 memset( output, 0x00, sizeof( output ) ); 44 TEST_ASSERT( mbedtls_chacha20_update( &ctx, src_str->len, src_str->x, output ) == 0 ); 46 ASSERT_COMPARE( output, expected_output_str->len, 57 memset( output, 0x00, sizeof( output ) ); 58 TEST_ASSERT( mbedtls_chacha20_update( &ctx, 1, src_str->x, output ) == 0 ); 60 src_str->x + 1, output + 1 ) == 0 ); [all …]
|
A D | test_suite_mdx.function | 11 unsigned char output[16]; 14 memset( output, 0x00, sizeof output ); 18 ret = mbedtls_md5( src_str, strlen( (char *) src_str ), output ); 21 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 22 sizeof output, hash->len ) == 0 ); 31 unsigned char output[20]; 34 memset(output, 0x00, sizeof output); 38 ret = mbedtls_ripemd160( src_str, strlen( (char *) src_str ), output ); 41 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 42 sizeof output, hash->len ) == 0 );
|
A D | test_suite_md.function | 134 unsigned char output[100]; 139 memset( output, 0x00, 100 ); 158 unsigned char output[100]; 162 memset( output, 0x00, 100 ); 183 unsigned char output[100]; 194 memset( output, 0x00, 100 ); 218 memset( output, 0x00, 100 ); 236 unsigned char output[100]; 287 unsigned char output[100]; 310 unsigned char output[100]; [all …]
|
A D | test_suite_ccm.function | 5 * and check that the output matches the expected output. 18 uint8_t *output = NULL; 40 mbedtls_free( output ); 41 output = NULL; 48 mbedtls_free( output ); 49 output = NULL; 55 output = NULL; 507 output = NULL; 513 output = NULL; 541 output = NULL; [all …]
|
A D | test_suite_chachapoly.function | 13 unsigned char output[265]; 28 input_str->x, output, mac ) == 0 ); 30 TEST_ASSERT( memcmp( output_str->x, output, output_str->len ) == 0 ); 41 unsigned char output[265]; 56 mac_str->x, input_str->x, output ); 61 TEST_ASSERT( memcmp( output_str->x, output, output_str->len ) == 0 ); 76 unsigned char output[1]; 86 memset( output, 0x00, sizeof( output ) ); 94 TEST_ASSERT( mbedtls_chachapoly_update( &ctx, input_len, input, output ) 105 TEST_ASSERT( mbedtls_chachapoly_update( &ctx, input_len, input, output ) [all …]
|
/mbedtls-development/tests/src/ |
A D | random.c | 41 unsigned char *output, in mbedtls_test_rnd_std_rand() argument 51 output[i] = rand(); in mbedtls_test_rnd_std_rand() 56 arc4random_buf( output, len ); in mbedtls_test_rnd_std_rand() 63 unsigned char *output, in mbedtls_test_rnd_zero_rand() argument 69 memset( output, 0, len ); in mbedtls_test_rnd_zero_rand() 75 unsigned char *output, in mbedtls_test_rnd_buffer_rand() argument 82 return( mbedtls_test_rnd_std_rand( NULL, output, len ) ); in mbedtls_test_rnd_buffer_rand() 90 memcpy( output, info->buf, use_len ); in mbedtls_test_rnd_buffer_rand() 100 output + use_len, in mbedtls_test_rnd_buffer_rand() 111 unsigned char *output, in mbedtls_test_rnd_pseudo_rand() argument [all …]
|
/mbedtls-development/tests/src/drivers/ |
A D | test_driver_cipher.c | 45 uint8_t *output, in mbedtls_test_transparent_cipher_encrypt() argument 56 memcpy( output, in mbedtls_test_transparent_cipher_encrypt() 82 uint8_t *output, in mbedtls_test_transparent_cipher_decrypt() argument 183 uint8_t *output, in mbedtls_test_transparent_cipher_update() argument 212 uint8_t *output, in mbedtls_test_transparent_cipher_finish() argument 254 (void) output; in mbedtls_test_opaque_cipher_encrypt() 273 (void) output; in mbedtls_test_opaque_cipher_decrypt() 329 uint8_t *output, in mbedtls_test_opaque_cipher_update() argument 336 (void) output; in mbedtls_test_opaque_cipher_update() 344 uint8_t *output, in mbedtls_test_opaque_cipher_finish() argument [all …]
|
/mbedtls-development/library/ |
A D | nist_kw.c | 239 memcpy( inbuff, output, 16 ); in mbedtls_nist_kw_wrap() 247 unsigned char *R2 = output + KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap() 248 unsigned char *A = output; in mbedtls_nist_kw_wrap() 276 R2 = output + KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap() 305 unsigned char *output, size_t* out_len ) in unwrap() argument 323 R = output + ( semiblocks - 2 ) * KW_SEMIBLOCK_LENGTH; in unwrap() 343 if( R == output ) in unwrap() 396 A, output, out_len ); in mbedtls_nist_kw_unwrap() 444 A, output, out_len ); in mbedtls_nist_kw_unwrap() 489 memset( output + Plen, 0, padlen ); in mbedtls_nist_kw_unwrap() [all …]
|
A D | psa_crypto_cipher.c | 291 uint8_t *output, in psa_cipher_update_ecb() argument 330 output += internal_output_length; in psa_cipher_update_ecb() 350 output += internal_output_length; in psa_cipher_update_ecb() 371 uint8_t *output, in cipher_update() argument 404 output, in cipher_update() 421 uint8_t *output, in cipher_finish() argument 477 uint8_t *output, in cipher_encrypt() argument 530 uint8_t *output, in cipher_decrypt() argument 605 uint8_t *output, in mbedtls_psa_cipher_update() argument 718 uint8_t *output, in mbedtls_transparent_test_driver_cipher_encrypt() argument [all …]
|
A D | cipher.c | 541 CIPHER_VALIDATE_RET( output != NULL ); in mbedtls_cipher_update() 606 if( input == output && in mbedtls_cipher_update() 652 output += block_size; in mbedtls_cipher_update() 706 input, output ) ) ) in mbedtls_cipher_update() 838 output[data_len] = 0x80; in add_one_and_zeros_padding() 840 output[data_len + i] = 0x00; in add_one_and_zeros_padding() 878 output[data_len + i - 1] = 0x00; in add_zeros_and_len_padding() 917 output[i] = 0x00; in add_zeros_padding() 963 CIPHER_VALIDATE_RET( output != NULL ); in mbedtls_cipher_finish() 1054 ((void) output); in mbedtls_cipher_finish() [all …]
|
A D | chacha20.c | 243 unsigned char *output ) in mbedtls_chacha20_update() argument 250 CHACHA20_VALIDATE_RET( size == 0 || output != 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() 295 output[offset + i] = input[offset + i] ^ ctx->keystream8[i]; in mbedtls_chacha20_update() 310 unsigned char* output ) in mbedtls_chacha20_crypt() argument 318 CHACHA20_VALIDATE_RET( data_len == 0 || output != NULL ); in mbedtls_chacha20_crypt() 330 ret = mbedtls_chacha20_update( &ctx, data_len, input, output ); in mbedtls_chacha20_crypt() 525 unsigned char output[381]; in mbedtls_chacha20_self_test() local 539 output ); in mbedtls_chacha20_self_test() [all …]
|
A D | cipher_wrap.h | 49 const unsigned char *input, unsigned char *output ); 55 unsigned char *output ); 62 unsigned char *output ); 70 unsigned char *output ); 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 D | chachapoly.c | 187 unsigned char *output ) in mbedtls_chachapoly_update() argument 192 CHACHAPOLY_VALIDATE_RET( len == 0 || output != NULL ); in mbedtls_chachapoly_update() 285 unsigned char *output, in chachapoly_crypt_and_tag() argument 314 unsigned char *output, in mbedtls_chachapoly_encrypt_and_tag() argument 322 CHACHAPOLY_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_chachapoly_encrypt_and_tag() 326 input, output, tag ) ); in mbedtls_chachapoly_encrypt_and_tag() 336 unsigned char *output ) in mbedtls_chachapoly_auth_decrypt() argument 347 CHACHAPOLY_VALIDATE_RET( length == 0 || output != NULL ); in mbedtls_chachapoly_auth_decrypt() 362 mbedtls_platform_zeroize( output, length ); in mbedtls_chachapoly_auth_decrypt() 480 unsigned char output[200]; in mbedtls_chachapoly_self_test() local [all …]
|
A D | des.c | 627 MBEDTLS_PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des_crypt_ecb() 659 ret = mbedtls_des_crypt_ecb( ctx, output, output ); in mbedtls_des_crypt_cbc() 662 memcpy( iv, output, 8 ); in mbedtls_des_crypt_cbc() 665 output += 8; in mbedtls_des_crypt_cbc() 679 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_des_crypt_cbc() 684 output += 8; in mbedtls_des_crypt_cbc() 765 ret = mbedtls_des3_crypt_ecb( ctx, output, output ); in mbedtls_des3_crypt_cbc() 768 memcpy( iv, output, 8 ); in mbedtls_des3_crypt_cbc() 771 output += 8; in mbedtls_des3_crypt_cbc() 785 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_des3_crypt_cbc() [all …]
|
A D | entropy_poll.c | 58 int mbedtls_platform_entropy_poll( void *data, unsigned char *output, size_t len, in mbedtls_platform_entropy_poll() argument 71 if( CryptGenRandom( provider, (DWORD) len, output ) == FALSE ) in mbedtls_platform_entropy_poll() 162 unsigned char *output, size_t len, size_t *olen ) in mbedtls_platform_entropy_poll() argument 170 ret = getrandom_wrapper( output, len, 0 ); in mbedtls_platform_entropy_poll() 186 if( sysctl_arnd_wrapper( output, len ) == -1 ) in mbedtls_platform_entropy_poll() 198 read_len = fread( output, 1, len, file ); in mbedtls_platform_entropy_poll() 216 unsigned char *output, size_t len, size_t *olen ) in mbedtls_nv_seed_poll() argument 230 memcpy( output, buf, use_len ); in mbedtls_nv_seed_poll()
|
A D | psa_crypto_cipher.h | 153 uint8_t *output, size_t output_size, size_t *output_length ); 183 uint8_t *output, size_t output_size, size_t *output_length ); 254 uint8_t *output, 303 uint8_t *output, 331 uint8_t *output, size_t output_size, size_t *output_length ); 335 uint8_t *output, size_t output_size, size_t *output_length ); 347 uint8_t *output, 358 uint8_t *output,
|
/mbedtls-development/3rdparty/everest/library/ |
A D | Hacl_Curve25519.c | 88 output[ctr] = z; in Hacl_Bignum_Fmul_shift_reduce() 91 output[0U] = tmp; in Hacl_Bignum_Fmul_shift_reduce() 92 b0 = output[0U]; in Hacl_Bignum_Fmul_shift_reduce() 145 i0 = output[0U]; in Hacl_Bignum_Fmul_fmul() 146 i1 = output[1U]; in Hacl_Bignum_Fmul_fmul() 149 output[0U] = i0_; in Hacl_Bignum_Fmul_fmul() 150 output[1U] = i1_; in Hacl_Bignum_Fmul_fmul() 198 i0 = output[0U]; in Hacl_Bignum_Fsquare_fsquare_() 199 i1 = output[1U]; in Hacl_Bignum_Fsquare_fsquare_() 202 output[0U] = i0_; in Hacl_Bignum_Fsquare_fsquare_() [all …]
|
/mbedtls-development/3rdparty/everest/library/legacy/ |
A D | Hacl_Curve25519.c | 96 output[ctr] = z; in Hacl_Bignum_Fmul_shift_reduce() 99 output[0U] = tmp; in Hacl_Bignum_Fmul_shift_reduce() 100 b0 = output[0U]; in Hacl_Bignum_Fmul_shift_reduce() 160 i0 = output[0U]; in Hacl_Bignum_Fmul_fmul() 161 i1 = output[1U]; in Hacl_Bignum_Fmul_fmul() 164 output[0U] = i0_; in Hacl_Bignum_Fmul_fmul() 165 output[1U] = i1_; in Hacl_Bignum_Fmul_fmul() 236 i0 = output[0U]; in Hacl_Bignum_Fsquare_fsquare_() 237 i1 = output[1U]; in Hacl_Bignum_Fsquare_fsquare_() 240 output[0U] = i0_; in Hacl_Bignum_Fsquare_fsquare_() [all …]
|
/mbedtls-development/include/mbedtls/ |
A D | aes.h | 261 unsigned char output[16] ); 311 unsigned char *output ); 356 unsigned char *output ); 406 unsigned char *output ); 450 unsigned char *output ); 505 unsigned char *output ); 593 unsigned char *output ); 610 unsigned char output[16] ); 626 unsigned char output[16] );
|