aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-05-12 00:34:20 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-05-12 00:34:20 -0400
commitaa8033d4dbfebeb72b6fd7a0cd218ebde0eb54dd (patch)
treeec4ecbb1702a84b813df23c7c91ced3d39ff6bcb
parent4e3ead2cf1d3068e77f0959dfdc17e20e9102a0f (diff)
Final overview and test before tag
-rw-r--r--Taskfile.yaml2
-rw-r--r--include/noscrypt.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/Taskfile.yaml b/Taskfile.yaml
index 2fbda5a..2dae66e 100644
--- a/Taskfile.yaml
+++ b/Taskfile.yaml
@@ -32,7 +32,7 @@ tasks:
build-internal:
internal: true
cmds:
- - cmake -S . -B{{.CMAKE_BUILD_DIR}} -DCMAKE_BUILD_TYPE={{.BUILD_CONFIG}} -DNC_BUILD_TESTS={{ .CMAKE_TEST_STATUS }} {{.USER_ARGS}}
+ - cmake -S . -B{{.CMAKE_BUILD_DIR}} -DCMAKE_BUILD_TYPE={{.BUILD_CONFIG}} -DNC_BUILD_TESTS={{ .CMAKE_TEST_STATUS }} {{.CLI_ARGS}}
- cmake --build {{.CMAKE_BUILD_DIR}} --config {{.BUILD_CONFIG}}
- cmd: echo "Build complete. Your files can be found in the {{.CMAKE_BUILD_DIR}} directory"
silent: true
diff --git a/include/noscrypt.h b/include/noscrypt.h
index 4d03b8d..ca958a0 100644
--- a/include/noscrypt.h
+++ b/include/noscrypt.h
@@ -73,6 +73,7 @@
#define NC_HMAC_KEY_SIZE 0x20
#define NC_ENCRYPTION_MAC_SIZE 0x20
#define NC_MESSAGE_KEY_SIZE NIP44_MESSAGE_KEY_SIZE
+#define NC_NIP04_AES_IV_SIZE 0x10 /* AES IV size is 16 bytes (block size) */
/*
* From spec