RC4 context initialization.
seed the context with an initial key. the key size need to be adequate otherwise security takes a hit.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulecrypton-1.0.4Haskell2010
Simple implementation of the RC4 stream cipher. http://en.wikipedia.org/wiki/RC4
Initial FFI implementation by Peter White peter@janrain.com
Reorganized and simplified to have an opaque context.
RC4 context initialization.
seed the context with an initial key. the key size need to be adequate otherwise security takes a hit.
combine RC4 xor combination of the rc4 stream with an input
generate the next len bytes of the rc4 stream without combining it to anything.
The encryption state for RC4
This type is an instance of ByteArrayAccess for debugging purpose. Internal layout is architecture dependent, may contain uninitialized data fragments, and change in future versions. The bytearray should not be used as input to cryptographic algorithms.
NFData StateDefined in crypton-1.0.4 · Crypto.Cipher.RC4ByteArrayAccess StateDefined in crypton-1.0.4 · Crypto.Cipher.RC4