Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data ByteOrderLength Source #
ByteOrderLength | |
|
class ByteRepr a where Source #
mkRepr :: ByteOrderLength -> a -> Maybe ByteString Source #
fromRepr :: ByteOrderLength -> a -> ByteString -> Maybe a Source #
calcReprLength :: a -> ElementLength -> Int Source #
Instances
ByteRepr Fq12 Source # | |
Defined in Pairing.ByteRepr mkRepr :: ByteOrderLength -> Fq12 -> Maybe ByteString Source # fromRepr :: ByteOrderLength -> Fq12 -> ByteString -> Maybe Fq12 Source # calcReprLength :: Fq12 -> ElementLength -> Int Source # | |
ByteRepr Fq6 Source # | |
Defined in Pairing.ByteRepr mkRepr :: ByteOrderLength -> Fq6 -> Maybe ByteString Source # fromRepr :: ByteOrderLength -> Fq6 -> ByteString -> Maybe Fq6 Source # calcReprLength :: Fq6 -> ElementLength -> Int Source # | |
ByteRepr Fq2 Source # | |
Defined in Pairing.ByteRepr mkRepr :: ByteOrderLength -> Fq2 -> Maybe ByteString Source # fromRepr :: ByteOrderLength -> Fq2 -> ByteString -> Maybe Fq2 Source # calcReprLength :: Fq2 -> ElementLength -> Int Source # | |
ByteRepr Fq Source # | |
Defined in Pairing.ByteRepr mkRepr :: ByteOrderLength -> Fq -> Maybe ByteString Source # fromRepr :: ByteOrderLength -> Fq -> ByteString -> Maybe Fq Source # calcReprLength :: Fq -> ElementLength -> Int Source # |
fromBytesToInteger :: ByteOrder -> ByteString -> Integer Source #
toBytes :: Integer -> ByteString Source #
toPaddedBytes :: ByteOrderLength -> Integer -> Maybe ByteString Source #