cryptocipher-0.3.0: Symmetrical Block, Stream and PubKey Ciphers

Safe HaskellSafe-Infered

Number.Serialize

Synopsis

Documentation

i2osp :: Integer -> ByteStringSource

i2osp converts a positive integer into a byte string

os2ip :: ByteString -> IntegerSource

os2ip converts a byte string into a positive integer

lengthBytes :: Integer -> IntSource

returns the number of bytes to store an integer with i2osp