Searched refs:chipertext (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.7.0/components/mbedtls/test_apps/main/ |
D | test_aes.c | 88 uint8_t *chipertext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL); variable 92 TEST_ASSERT_NOT_NULL(chipertext); 103 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_ENCRYPT, SZ, nonce, plaintext, chipertext); 104 TEST_ASSERT_EQUAL_HEX8_ARRAY(expected_cipher_end, chipertext + SZ - 32, 32); 109 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_DECRYPT, SZ, nonce, chipertext, decryptedtext); 115 free(chipertext); 137 uint8_t *chipertext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL); variable 141 TEST_ASSERT_NOT_NULL(chipertext); 152 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_ENCRYPT, SZ, nonce, plaintext, chipertext); 153 TEST_ASSERT_EQUAL_HEX8_ARRAY(expected_cipher_end, chipertext + SZ - 32, 32); [all …]
|
D | test_aes_sha_parallel.c | 80 uint8_t *chipertext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL); in tskRunAES256Test() local 84 TEST_ASSERT_NOT_NULL(chipertext); in tskRunAES256Test() 95 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_ENCRYPT, SZ, nonce, plaintext, chipertext); in tskRunAES256Test() 96 TEST_ASSERT_EQUAL_HEX8_ARRAY(expected_cipher_end, chipertext + SZ - 32, 32); in tskRunAES256Test() 101 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_DECRYPT, SZ, nonce, chipertext, decryptedtext); in tskRunAES256Test() 107 free(chipertext); in tskRunAES256Test()
|