[MP] drop the accessor in favor of just using the ByteArrayAccess constraint
This commit is contained in:
parent
5d96c804ae
commit
0f241e31db
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user