mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-04 03:26:54 +02:00
Tests for psa_cipher_encrypt and psa_cipher_decrypt functions. The psa_cipher_encrypt function takes no parameter for IV and always generates it therefore there will be a randomness in the calculation and cannot be validated by comparing the actual output with the expected output. The function is tested by: - doing a prtially randomized test with an encryption then a decryption and validating the input with output of the decryption - validating against the multipart encryption The combination of this two methods provides enough coverage like a known answer test. Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>