cryptocipher-0.2.10: Symmetrical Block, Stream and PubKey Ciphers

PortabilityGood
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>

Crypto.Cipher.RC4

Description

 

Synopsis

Documentation

initCtx :: [Word8] -> CtxSource

initCtx initialize the Ctx with the key as parameter. the key can be of any size but not empty

encrypt :: Ctx -> ByteString -> (Ctx, ByteString)Source

encrypt with the current context a bytestring and returns a new context and the resulted encrypted bytestring

decrypt :: Ctx -> ByteString -> (Ctx, ByteString)Source

decrypt with the current context a bytestring and returns a new context and the resulted decrypted bytestring

encryptlazy :: Ctx -> ByteString -> (Ctx, ByteString)Source

encrypt with the current context a lazy bytestring and returns a new context and the resulted lencrypted lazy bytestring

decryptlazy :: Ctx -> ByteString -> (Ctx, ByteString)Source

decrypt with the current context a lazy bytestring and returns a new context and the resulted decrypted lazy bytestring