From 771007ad932134012d04dfbeb6469a25644ce034 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Sat, 2 May 2015 14:49:49 +0100 Subject: [PATCH] [cipher] Get rid of bytestring in Stream class. --- Crypto/Cipher/Types/Stream.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Crypto/Cipher/Types/Stream.hs b/Crypto/Cipher/Types/Stream.hs index 177d582..9d77846 100644 --- a/Crypto/Cipher/Types/Stream.hs +++ b/Crypto/Cipher/Types/Stream.hs @@ -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)