increase SMP queue ID and message ID size to 24 bytes

This commit is contained in:
Evgeny Poberezkin
2021-12-12 23:17:21 +00:00
parent 560d9ceb71
commit acf5c15a05
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -42,8 +42,8 @@ serverConfig =
ServerConfig
{ tbqSize = 16,
msgQueueQuota = 256,
queueIdBytes = 12,
msgIdBytes = 6,
queueIdBytes = 24,
msgIdBytes = 24, -- must be at least 24 bytes, it is used as 192-bit nonce for XSalsa20
trnSignAlg = C.SignAlg C.SEd448,
-- below parameters are set based on ini file /etc/opt/simplex/smp-server.ini
transports = undefined,
+1 -1
View File
@@ -27,7 +27,7 @@ data ServerConfig = ServerConfig
tbqSize :: Natural,
msgQueueQuota :: Natural,
queueIdBytes :: Int,
msgIdBytes :: Int,
msgIdBytes :: Int, -- must be at least 24 bytes, it is used as 192-bit nonce for XSalsa20
storeLog :: Maybe (StoreLog 'ReadMode),
blockSize :: Int,
trnSignAlg :: C.SignAlg,