[cipher] Get rid of bytestring in Stream class.

This commit is contained in:
Vincent Hanquez 2015-05-02 14:49:49 +01:00
parent 119b111b82
commit 771007ad93

View File

@ -12,9 +12,9 @@ module Crypto.Cipher.Types.Stream
) where
import Crypto.Cipher.Types.Base
import Data.ByteString (ByteString)
import Crypto.Internal.ByteArray (ByteArray)
-- | Symmetric stream cipher class
class Cipher cipher => StreamCipher cipher where
-- | Combine using the stream cipher
streamCombine :: cipher -> ByteString -> (ByteString, cipher)
streamCombine :: ByteArray ba => cipher -> ba -> (ba, cipher)