aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-aes-key-wrap.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/test-aes-key-wrap.c b/tests/test-aes-key-wrap.c
index 79bace6..b956ba0 100644
--- a/tests/test-aes-key-wrap.c
+++ b/tests/test-aes-key-wrap.c
@@ -136,16 +136,17 @@ int main (int argc, char *argv[])
int failures = 0;
printf("Testing whether AES core reports present...");
- if (hal_io_expected(AES_ADDR_NAME0, (const uint8_t *) (AES_CORE_NAME0 AES_CORE_NAME1), 8) == HAL_OK)
- printf("yes\n");
- else
- printf("no\n");
-
- if (!run_test(K_128, sizeof(K_128), C_128, sizeof(C_128)))
- failures++;
+ if (hal_io_expected(AES_ADDR_NAME0, (const uint8_t *) (AES_CORE_NAME0 AES_CORE_NAME1), 8) != HAL_OK) {
+ printf("no, skipping keywrap tests\n");
+ }
- if (!run_test(K_256, sizeof(K_256), C_256, sizeof(C_256)))
- failures++;
+ else {
+ printf("yes\n");
+ if (!run_test(K_128, sizeof(K_128), C_128, sizeof(C_128)))
+ failures++;
+ if (!run_test(K_256, sizeof(K_256), C_256, sizeof(C_256)))
+ failures++;
+ }
return failures;
}