aboutsummaryrefslogtreecommitdiff
path: root/src/Encryption.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Encryption.cpp')
-rw-r--r--src/Encryption.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Encryption.cpp b/src/Encryption.cpp
index 1d6bfc0..9000519 100644
--- a/src/Encryption.cpp
+++ b/src/Encryption.cpp
@@ -5,6 +5,8 @@
namespace odhtdb
{
+ static_assert(ENCRYPTION_CHECKSUM_BYTE_SIZE == crypto_aead_xchacha20poly1305_ietf_ABYTES, "Encryption checksum key size has changed for some reason, oops...");
+
Encryption::Encryption(const DataView &data, const DataView &additionalData, const DataView &_key)
{
cipherTextLength = crypto_aead_xchacha20poly1305_ietf_ABYTES + data.size;