tests: Add functional tests for ecb/cbc helpers

Test the following helper functions using AES with 128, 192, and
256 bit keys:
  - grub_crypto_ecb_encrypt(),
  - grub_crypto_ecb_decrypt(),
  - grub_crypto_cbc_encrypt(),
  - grub_crypto_cbc_decrypt().

Signed-off-by: Srish Srinivasan <ssrish@linux.ibm.com>
Reviewed-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Glenn Washburn <development@efficientek.com>
This commit is contained in:
Srish Srinivasan authored and Daniel Kiper committed 2026-01-08 19:28:50 +01:00
1 parent caaf50b9af
commit 51ebc6f677
5 files changed
+343

No files matched your search

+5
View File
@@ -2272,6 +2272,11 @@ module = {
common = tests/argon2_test.c;
};
module = {
name = crypto_cipher_mode_test;
common = tests/crypto_cipher_mode_test.c;
};
module = {
name = legacy_password_test;
common = tests/legacy_password_test.c;