| Copyright | (c) Max Amanshauser 2021 |
|---|---|
| License | MIT |
| Maintainer | max@lambdalifting.org |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Crypto.Saltine.Internal.Hash
Description
Synopsis
- hash_bytes :: Int
- shorthash_bytes :: Int
- shorthash_keybytes :: Int
- generichash_bytes_max :: Int
- generichash_keybytes_max :: Int
- c_hash :: Ptr CChar -> Ptr CChar -> CULLong -> IO CInt
- c_shorthash :: Ptr CChar -> Ptr CChar -> CULLong -> Ptr CChar -> IO CInt
- c_generichash :: Ptr CChar -> CULLong -> Ptr CChar -> CULLong -> Ptr CChar -> CULLong -> IO CInt
- nullShKey :: ShorthashKey
- shorthash :: ShorthashKey -> ByteString -> ByteString
- newtype ShorthashKey = ShK {
- unShK :: ByteString
- newtype GenerichashKey = GhK {
- unGhK :: ByteString
- newtype GenerichashOutLen = GhOL {}
Documentation
hash_bytes :: Int Source #
The size of a hash resulting from
hash.
shorthash_bytes :: Int Source #
The size of a keyed hash resulting from
shorthash.
shorthash_keybytes :: Int Source #
The size of a hashing key for the keyed hash function
shorthash.
generichash_bytes_max :: Int Source #
The maximum output size of the generic hash function
generichash
generichash_keybytes_max :: Int Source #
The maximum key size of the generic hash function
generichash
nullShKey :: ShorthashKey Source #
Used for our Show instances
Arguments
| :: ShorthashKey | |
| -> ByteString | Message |
| -> ByteString | Hash |
Computes a very short, fast keyed hash. This function is defined here to break circulat module imports
newtype ShorthashKey Source #
An opaque shorthash cryptographic secret key.
Constructors
| ShK | |
Fields
| |
Instances
newtype GenerichashKey Source #
An opaque generichash cryptographic secret key.
Constructors
| GhK | |
Fields
| |
Instances
newtype GenerichashOutLen Source #