From bd49a35e0a23fdef6c5087b51e2acdd39e252847 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 7 Apr 2020 09:48:47 -0600 Subject: [PATCH] formatting --- libp2p/crypto/chacha20poly1305.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libp2p/crypto/chacha20poly1305.nim b/libp2p/crypto/chacha20poly1305.nim index 8aa4d80a2..df2d44b0c 100644 --- a/libp2p/crypto/chacha20poly1305.nim +++ b/libp2p/crypto/chacha20poly1305.nim @@ -28,7 +28,7 @@ const ChaChaPolyKeySize = 32 ChaChaPolyNonceSize = 12 ChaChaPolyTagSize = 16 - + type ChaChaPoly* = object ChaChaPolyKey* = array[ChaChaPolyKeySize, byte] @@ -46,7 +46,7 @@ proc intoChaChaPolyNonce*(s: openarray[byte]): ChaChaPolyNonce = proc intoChaChaPolyTag*(s: openarray[byte]): ChaChaPolyTag = assert s.len == ChaChaPolyTagSize copyMem(addr result[0], unsafeaddr s[0], ChaChaPolyTagSize) - + # bearssl allows us to use optimized versions # this is reconciled at runtime # we do this in the global scope / module init @@ -85,7 +85,7 @@ proc decrypt*(_: type[ChaChaPoly], unsafeaddr aad[0] else: nil - + ourPoly1305CtmulRun( unsafeaddr key[0], unsafeaddr nonce[0],