Closed kazu-yamamoto closed 2 years ago
Context
. This breaks the bracket
pattern but is inevitable, sigh.
encrypt
and decrypt
:
encrypt :: a -> a -> PacketNumber -> a
decrypt :: CipherText -> AssDat -> PacketNumber -> IO (Maybe PlainText)
Server.Reader
, genCoder
and test/PacketSpec.hs
.decodeFrames :: ByteString -> IO (Maybe [Frame])
encodePacket
should come backdecrypt
from dispatcher to fix the race.Consider
Send :: b -> IO ()
Int -> IO ()
[ByteString] -> IO ()
fusion
can be used only on x86_64 (including amd64). It is necessary to fall back tocryptonite
on other architectures as used to do (69e1dac63841caf06c28c979276ff3af08654260).