refactor(noise): rebase

This commit is contained in:
s1fr0 2022-04-08 18:55:16 +02:00
parent 4e1b839e27
commit d4402d0920
No known key found for this signature in database
GPG Key ID: 2C041D60117BFF46
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,6 @@ type
handshakeMessage: seq[NoisePublicKey]
transportMessage: seq[byte]
#Noise Handshakes
NoiseTokens* = enum
@ -372,6 +371,7 @@ proc init*(_: type[HandshakeState], hs_pattern: HandshakePattern, psk: seq[byte]
result.psk = psk
result.ss = SymmetricState.init(hs_pattern)
#################################################################
# ChaChaPoly Symmetric Cipher
@ -672,4 +672,4 @@ proc deserializePayloadV2*(payload: seq[byte]): Result[PayloadV2, cstring]
payload2.transportMessage = payload[i..i+transportMessageLen-1]
i += transportMessageLen
return ok(payload2)
return ok(payload2)