Changed include directory to help with ambiguity
Juniper Beatitudes [email protected]
Tue, 21 Jul 2026 22:41:02 -0500
2 files changed,
2 insertions(+),
25 deletions(-)
M
meson.build
→
meson.build
@@ -1,6 +1,6 @@
project('TinyCrypT', 'c', version: '0.1.0') -incdir = include_directories('tinycrypt') +incdir = include_directories('.') sources = [ 'tinycrypt/portable/kangarootwelve128.c',@@ -114,4 +114,4 @@ dependencies: test_dep,
install: false ) ) -endif+endif
D
test.c
@@ -1,23 +0,0 @@
-#include "tinycrypt/chacha20_poly1305.h" -#include <stdint.h> -#include <stdio.h> - -int -main (int argc, char **argv) -{ - const uint8_t KEY[] - = { 0x42, 0x90, 0xbc, 0xb1, 0x54, 0x17, 0x35, 0x31, 0xf3, 0x14, 0xaf, - 0x57, 0xf3, 0xbe, 0x3b, 0x50, 0x06, 0xda, 0x37, 0x1e, 0xce, 0x27, - 0x2a, 0xfa, 0x1b, 0x5d, 0xbd, 0xd1, 0x10, 0x0a, 0x10, 0x07 }; - const uint8_t INPUT[128 * 1024]; - const uint8_t NONCE[] = { 0xcd, 0x7c, 0xf6, 0x7b, 0xe3, 0x9c, 0x79, 0x4a }; - const uint8_t AAD[] = { 0x0 }; - uint8_t actual_output[sizeof (INPUT) + 16]; - for (uint64_t i = 0; i < 1024; ++i) - { - tct_aead_chacha20_poly1305_encrypt (AAD, sizeof (AAD), KEY, NONCE, INPUT, - sizeof (INPUT), actual_output, - actual_output + sizeof (INPUT)); - } - return 0; -}