Reworked key exchange, now using direct C imports from monocypher instead of nimble modules/libraries.

This commit is contained in:
Jakob Friedl
2025-07-24 17:26:48 +02:00
parent b6c720ccca
commit 3e9178ec34
7 changed files with 3357 additions and 61 deletions

View File

@@ -52,8 +52,6 @@ type
# Encryption
type
Key* = array[32, byte]
PublicKey* = array[32, byte]
PrivateKey* = array[64, byte]
Iv* = array[12, byte]
AuthenticationTag* = array[16, byte]
@@ -171,7 +169,7 @@ type
# Server structure
type
KeyPair* = object
privateKey*: PrivateKey
privateKey*: Key
publicKey*: Key
Conquest* = ref object
@@ -191,4 +189,4 @@ type
port*: int
sleep*: int
sessionKey*: Key
agentPublicKey*: PublicKey
agentPublicKey*: Key