Cryptokit.Stream

# Module Cryptokit.Stream

    module Stream: sig .. end

The `Stream` module provides classes that implement the ARCfour stream cipher, and the wrapping of a stream cipher as a general transform. The classes can be composed in a Lego-like fashion, facilitating the integration of new stream ciphers.

    class type stream_cipher = object .. end

Abstract interface for a stream cipher.

    class cipher : stream_cipher -> Cryptokit.transform

Wraps an arbitrary stream cipher as a transform.

    class arcfour : string -> stream_cipher

The ARCfour (``alleged RC4'') stream cipher.