| /mbedtls/tests/suites/ |
| A D | test_suite_psa_crypto_low_hash.function | 30 uint8_t *output = NULL; 40 mbedtls_free(output); 41 output = NULL; 50 mbedtls_free(output); 51 output = NULL; 58 mbedtls_free(output); 127 mbedtls_free(output); 128 output = NULL; 139 mbedtls_free(output); 140 output = NULL; [all …]
|
| A D | test_suite_aria.function | 32 ((void) output); 67 unsigned char output[ARIA_MAX_DATASIZE]; 71 memset(output, 0x00, sizeof(output)); 95 unsigned char output[ARIA_MAX_DATASIZE]; 99 memset(output, 0x00, sizeof(output)); 127 memset(output, 0x00, sizeof(output)); 152 memset(output, 0x00, sizeof(output)); 178 memset(output, 0x00, sizeof(output)); 204 memset(output, 0x00, sizeof(output)); 231 memset(output, 0x00, sizeof(output)); [all …]
|
| A D | test_suite_shax.function | 11 unsigned char output[41]; 13 memset(output, 0x00, 41); 45 unsigned char output[57]; 47 memset(output, 0x00, 57); 59 unsigned char output[65]; 61 memset(output, 0x00, 65); 93 unsigned char output[97]; 165 mbedtls_free(output); 213 mbedtls_free(output); 294 TEST_ASSERT(mbedtls_sha3_finish(&ctx, output, sizeof(output)) == 0); [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_platform_printf.function | 31 char *output = NULL; 38 mbedtls_free(output); 39 output = NULL; 42 mbedtls_free(output); 51 char *output = NULL; 63 mbedtls_free(output); 64 output = NULL; 67 mbedtls_free(output); 76 char *output = NULL; 83 mbedtls_free(output); [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 | 20 unsigned char output[16]; 72 unsigned char output[100]; 75 memset(output, 0x00, 100); 132 mbedtls_free(output); 213 unsigned char output[100]; 216 memset(output, 0x00, 100); 237 unsigned char output[100]; 323 mbedtls_free(output); 367 mbedtls_free(output); 376 unsigned char output[16]; [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; 528 output = NULL; 534 output = NULL; 564 output = NULL; [all …]
|
| A D | test_suite_chacha20.function | 17 unsigned char output[375]; 20 memset(output, 0x00, sizeof(output)); 30 output) == 0); 32 TEST_MEMORY_COMPARE(output, expected_output_str->len, 44 memset(output, 0x00, sizeof(output)); 45 TEST_ASSERT(mbedtls_chacha20_update(&ctx, src_str->len, src_str->x, output) == 0); 47 TEST_MEMORY_COMPARE(output, expected_output_str->len, 58 memset(output, 0x00, sizeof(output)); 59 TEST_ASSERT(mbedtls_chacha20_update(&ctx, 1, src_str->x, output) == 0); 61 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_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); 96 output = NULL; [all …]
|
| A D | test_suite_psa_crypto_memory.data | 16 PSA output buffer copy: straightforward copy 19 PSA output buffer copy: output buffer larger than required 22 PSA output buffer copy: output buffer too small 25 PSA output buffer copy: zero-length source buffer 28 PSA output buffer copy: zero-length both buffers 46 PSA crypto local output alloc 49 PSA crypto local output alloc, NULL buffer 52 PSA crypto local output free 55 PSA crypto local output free, NULL buffer 58 PSA crypto local output free, NULL original buffer [all …]
|
| A D | test_suite_psa_crypto_memory.function | 161 uint8_t *output = NULL; 167 TEST_CALLOC(output, output_len); 182 mbedtls_free(output); 183 output = NULL; 191 uint8_t *output = NULL; 202 local_output.original = output; 221 mbedtls_free(output); 232 uint8_t output[200]; 236 status = psa_crypto_local_output_alloc(output, sizeof(output), &local_output); 250 MBEDTLS_TEST_MEMORY_UNPOISON(output, sizeof(output)); [all …]
|
| A D | test_suite_psa_crypto_op_fail.function | 60 output, sizeof(output), &length)); 63 output, sizeof(output))); 103 output, sizeof(output), &length)); 107 output, sizeof(output))); 128 uint8_t output[64] = { 0 }; 149 output, sizeof(output), &length)); 153 output, sizeof(output), &length)); 196 output, sizeof(output), &length)); 201 output, sizeof(output), &length)); 246 output, sizeof(output), &length)); [all …]
|
| A D | test_suite_md.function | 199 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; 219 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; 243 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; 271 TEST_EQUAL(0, mbedtls_md_finish(&ctx, output)); 275 memset(output, 0x00, sizeof(output)); 291 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; 318 TEST_EQUAL(0, mbedtls_md_finish(&ctx, output)); 322 memset(output, 0x00, sizeof(output)); 340 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; 363 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; [all …]
|
| A D | test_suite_chachapoly.function | 18 unsigned char output[265]; 35 TEST_ASSERT(memcmp(output_str->x, output, output_str->len) == 0); 52 unsigned char output[265]; 71 TEST_ASSERT(memcmp(output_str->x, output, output_str->len) == 0); 86 unsigned char output[1]; 96 memset(output, 0x00, sizeof(output)); 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) [all …]
|
| A D | test_suite_block_cipher.function | 28 /* That size is valid for a key or an input/output block. */ 71 unsigned char output[BLOCK_SIZE]; 75 memset(output, 0x00, sizeof(output)); 80 /* Encrypt with input != output */ 81 TEST_EQUAL(0, mbedtls_block_cipher_encrypt(&ctx, input->x, output)); 82 ASSERT_COMPARE(output, BLOCK_SIZE, outref->x, outref->len); 84 /* Encrypt with input == output. 87 memcpy(output, input->x, BLOCK_SIZE); 88 TEST_EQUAL(0, mbedtls_block_cipher_encrypt(&ctx, output, output)); 89 ASSERT_COMPARE(output, BLOCK_SIZE, outref->x, outref->len);
|
| /mbedtls/tests/src/drivers/ |
| A D | test_driver_cipher.c | 39 uint8_t *output, in mbedtls_test_transparent_cipher_encrypt() argument 51 memcpy(output, in mbedtls_test_transparent_cipher_encrypt() 90 uint8_t *output, in mbedtls_test_transparent_cipher_decrypt() argument 101 memcpy(output, in mbedtls_test_transparent_cipher_decrypt() 239 uint8_t *output, in mbedtls_test_transparent_cipher_update() argument 278 uint8_t *output, in mbedtls_test_transparent_cipher_finish() argument 332 (void) output; in mbedtls_test_opaque_cipher_encrypt() 351 (void) output; in mbedtls_test_opaque_cipher_decrypt() 407 uint8_t *output, in mbedtls_test_opaque_cipher_update() argument 414 (void) output; in mbedtls_test_opaque_cipher_update() [all …]
|
| A D | test_driver_asymmetric_encryption.c | 32 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_test_transparent_asymmetric_encrypt() argument 41 memcpy(output, in mbedtls_test_transparent_asymmetric_encrypt() 58 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_encrypt() 63 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_encrypt() 82 memcpy(output, in mbedtls_test_transparent_asymmetric_decrypt() 99 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_decrypt() 104 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_decrypt() 136 output, output_size, output_length); in mbedtls_test_opaque_asymmetric_encrypt() 141 output, output_size, output_length); in mbedtls_test_opaque_asymmetric_encrypt() 170 output, output_size, output_length); in mbedtls_test_opaque_asymmetric_decrypt() [all …]
|
| /mbedtls/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/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/library/ |
| A D | nist_kw.c | 159 memcpy(output, NIST_KW_ICV1, KW_SEMIBLOCK_LENGTH); in mbedtls_nist_kw_wrap() 195 memcpy(inbuff, output, 16); in mbedtls_nist_kw_wrap() 202 unsigned char *R2 = output + KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap() 203 unsigned char *A = output; in mbedtls_nist_kw_wrap() 230 R2 = output + KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap() 276 R = output + (semiblocks - 2) * KW_SEMIBLOCK_LENGTH; in unwrap() 296 if (R == output) { in unwrap() 348 A, output, out_len); in mbedtls_nist_kw_unwrap() 391 A, output, out_len); in mbedtls_nist_kw_unwrap() 429 memset(output + Plen, 0, padlen); in mbedtls_nist_kw_unwrap() [all …]
|
| A D | cipher.c | 624 output, ilen, olen); in mbedtls_cipher_update() 632 output, ilen, olen); in mbedtls_cipher_update() 644 if (input == output && in mbedtls_cipher_update() 688 output += block_size; in mbedtls_cipher_update() 880 output[data_len] = 0x80; in add_one_and_zeros_padding() 882 output[data_len + i] = 0x00; in add_one_and_zeros_padding() 925 output[data_len + i - 1] = 0x00; in add_zeros_and_len_padding() 965 static void add_zeros_padding(unsigned char *output, in add_zeros_padding() argument 1112 ((void) output); in mbedtls_cipher_finish() 1423 if (output == NULL || tag != output + ilen) { in mbedtls_cipher_aead_encrypt() [all …]
|
| A D | des.c | 615 MBEDTLS_PUT_UINT32_BE(Y, output, 0); in mbedtls_des_crypt_ecb() 644 ret = mbedtls_des_crypt_ecb(ctx, output, output); in mbedtls_des_crypt_cbc() 648 memcpy(iv, output, 8); in mbedtls_des_crypt_cbc() 651 output += 8; in mbedtls_des_crypt_cbc() 662 mbedtls_xor(output, output, iv, 8); in mbedtls_des_crypt_cbc() 667 output += 8; in mbedtls_des_crypt_cbc() 742 ret = mbedtls_des3_crypt_ecb(ctx, output, output); in mbedtls_des3_crypt_cbc() 746 memcpy(iv, output, 8); in mbedtls_des3_crypt_cbc() 749 output += 8; in mbedtls_des3_crypt_cbc() 760 mbedtls_xor(output, output, iv, 8); in mbedtls_des3_crypt_cbc() [all …]
|
| /mbedtls/tests/src/ |
| A D | random.c | 30 unsigned char *output, in mbedtls_test_rnd_std_rand() argument 41 output[i] = rand(); in mbedtls_test_rnd_std_rand() 48 arc4random_buf(output, len); in mbedtls_test_rnd_std_rand() 55 unsigned char *output, in mbedtls_test_rnd_zero_rand() argument 62 memset(output, 0, len); in mbedtls_test_rnd_zero_rand() 68 unsigned char *output, in mbedtls_test_rnd_buffer_rand() argument 75 return mbedtls_test_rnd_std_rand(NULL, output, len); in mbedtls_test_rnd_buffer_rand() 84 memcpy(output, info->buf, use_len); in mbedtls_test_rnd_buffer_rand() 92 output + use_len, in mbedtls_test_rnd_buffer_rand() 103 unsigned char *output, in mbedtls_test_rnd_pseudo_rand() argument [all …]
|