Safe Haskell | None |
---|---|
Language | Haskell98 |
- type Word128 = BigWord Mod128
- type Word160 = BigWord Mod160
- type Word256 = BigWord Mod256
- type Word512 = BigWord Mod512
- word64ToBytes :: Word64 -> [Word8]
- bytesToWord64 :: [Word8] -> Word64
- word128ToBytes :: Word128 -> [Word8]
- bytesToWord128 :: [Word8] -> Word128
- word160ToBytes :: Word160 -> [Word8]
- bytesToWord160 :: [Word8] -> Word160
- word256ToBytes :: Word256 -> [Word8]
- bytesToWord256 :: [Word8] -> Word256
Documentation
type Word128 = BigWord Mod128 Source #
Data type representing a 128 bit unsigned integer. It is implemented as an Integer modulo 2^128.
type Word160 = BigWord Mod160 Source #
Data type representing a 160 bit unsigned integer. It is implemented as an Integer modulo 2^160.
type Word256 = BigWord Mod256 Source #
Data type representing a 256 bit unsigned integer. It is implemented as an Integer modulo 2^256.
type Word512 = BigWord Mod512 Source #
Data type representing a 512 bit unsigned integer. It is implemented as an Integer modulo 2^512.
word64ToBytes :: Word64 -> [Word8] Source #
bytesToWord64 :: [Word8] -> Word64 Source #
word128ToBytes :: Word128 -> [Word8] Source #
bytesToWord128 :: [Word8] -> Word128 Source #
word160ToBytes :: Word160 -> [Word8] Source #
bytesToWord160 :: [Word8] -> Word160 Source #
word256ToBytes :: Word256 -> [Word8] Source #
bytesToWord256 :: [Word8] -> Word256 Source #