[cipher] Get rid of bytestring in Stream class.
This commit is contained in:
parent
119b111b82
commit
771007ad93
@ -12,9 +12,9 @@ module Crypto.Cipher.Types.Stream
|
|||||||
) where
|
) where
|
||||||
|
|
||||||
import Crypto.Cipher.Types.Base
|
import Crypto.Cipher.Types.Base
|
||||||
import Data.ByteString (ByteString)
|
import Crypto.Internal.ByteArray (ByteArray)
|
||||||
|
|
||||||
-- | Symmetric stream cipher class
|
-- | Symmetric stream cipher class
|
||||||
class Cipher cipher => StreamCipher cipher where
|
class Cipher cipher => StreamCipher cipher where
|
||||||
-- | Combine using the stream cipher
|
-- | Combine using the stream cipher
|
||||||
streamCombine :: cipher -> ByteString -> (ByteString, cipher)
|
streamCombine :: ByteArray ba => cipher -> ba -> (ba, cipher)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user