[MP] drop the accessor in favor of just using the ByteArrayAccess constraint

This commit is contained in:
Kei Hibino 2016-04-12 11:00:01 +09:00
parent 5d96c804ae
commit 0f241e31db

View File

@ -23,8 +23,8 @@ import Crypto.Internal.ByteArray (ByteArrayAccess, ByteArray, Bytes)
import qualified Crypto.Internal.ByteArray as B
newtype MiyaguchiPreneel a = MP { chashGetBytes :: Bytes }
deriving ByteArrayAccess
newtype MiyaguchiPreneel a = MP Bytes
deriving (ByteArrayAccess)
instance Eq (MiyaguchiPreneel a) where
MP b1 == MP b2 = B.constEq b1 b2