Исправлена криптография: исправлен размер nonce для CCM (13 байт) и завершены тесты

This commit is contained in:
Evgeny committed 2026-01-20 01:17:53 +03:00
1 parent 5758640afb
commit a1bcd6edb7
2 files changed
+18 -6

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
#define SC_PRIVKEY_SIZE 32
#define SC_PUBKEY_SIZE 64
#define SC_HASH_SIZE 32
#define SC_NONCE_SIZE 8
#define SC_NONCE_SIZE 13 // CCM requires exactly 13 bytes
#define SC_SHARED_SECRET_SIZE SC_HASH_SIZE
#define SC_SESSION_KEY_SIZE 16
#define SC_TAG_SIZE 8