Searched refs:decryptedtext (Results 1 – 3 of 3) sorted by relevance
/hal_espressif-3.7.0/components/mbedtls/test_apps/main/ |
D | test_aes.c | 90 uint8_t *decryptedtext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL); variable 94 TEST_ASSERT_NOT_NULL(decryptedtext); 100 memset(decryptedtext, 0x0, SZ); 109 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_DECRYPT, SZ, nonce, chipertext, decryptedtext); 111 TEST_ASSERT_EQUAL_HEX8_ARRAY(plaintext, decryptedtext, SZ); 116 free(decryptedtext); 139 uint8_t *decryptedtext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL); variable 143 TEST_ASSERT_NOT_NULL(decryptedtext); 149 memset(decryptedtext, 0x0, SZ); 158 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_DECRYPT, SZ, nonce, chipertext, decryptedtext); [all …]
|
D | test_aes_sha_parallel.c | 82 uint8_t *decryptedtext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL); in tskRunAES256Test() local 86 TEST_ASSERT_NOT_NULL(decryptedtext); in tskRunAES256Test() 92 memset(decryptedtext, 0x0, SZ); in tskRunAES256Test() 101 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_DECRYPT, SZ, nonce, chipertext, decryptedtext); in tskRunAES256Test() 103 TEST_ASSERT_EQUAL_HEX8_ARRAY(plaintext, decryptedtext, SZ); in tskRunAES256Test() 108 free(decryptedtext); in tskRunAES256Test()
|
D | test_aes_gcm.c | 87 …uint8_t *decryptedtext = heap_caps_malloc(SZ, MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERN… variable 91 TEST_ASSERT_NOT_NULL(decryptedtext); 100 memset(decryptedtext, 0x0, SZ); 132 mbedtls_gcm_update(&ctx, ciphertext + idx, length, decryptedtext + idx, length, &olen); 135 TEST_ASSERT_EQUAL_HEX8_ARRAY(plaintext, decryptedtext, SZ); 140 free(decryptedtext);
|