summaryrefslogtreecommitdiffstats
path: root/test/aes-detect_guest.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-11-03 13:45:41 +0100
committerLouis Burda <quent.burda@gmail.com>2022-11-03 13:45:41 +0100
commit156da64fb4f36584039d06d30eab2784e4a71a5d (patch)
tree287ab02705dbf8fa432b8d4f8108af6e37002170 /test/aes-detect_guest.c
parent61d67ae0927eeade04171374a91a1adaa4d94a28 (diff)
downloadcachepc-156da64fb4f36584039d06d30eab2784e4a71a5d.tar.gz
cachepc-156da64fb4f36584039d06d30eab2784e4a71a5d.zip
Build crypto module and no ACCESS_PATTERN in aes-detect_guest
Diffstat (limited to 'test/aes-detect_guest.c')
-rw-r--r--test/aes-detect_guest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/aes-detect_guest.c b/test/aes-detect_guest.c
index f720c1d..4012b74 100644
--- a/test/aes-detect_guest.c
+++ b/test/aes-detect_guest.c
@@ -11,7 +11,7 @@
#include <stdint.h>
#include <stdlib.h>
-#include "aes-detect.c"
+// #include "aes-detect.c"
static uint8_t key[16];
@@ -48,14 +48,14 @@ main(int argc, const char **argv)
memset(block, 0, sizeof(block));
strncpy((char *) block, "Hello world", sizeof(block));
- DO_ACCESS_PATTERN();
+ // DO_ACCESS_PATTERN();
- // printhex(block, sizeof(block));
+ printhex(block, sizeof(block));
n = kcapi_cipher_encrypt(kcapi, block, sizeof(block), NULL,
block, sizeof(block), KCAPI_ACCESS_HEURISTIC);
if (n != sizeof(block))
err(1, "encrypt");
- // printhex(block, sizeof(block));
+ printhex(block, sizeof(block));
sleep(1);
}