Safe Haskell | None |
---|---|
Language | Haskell98 |
- hmac :: CryptoHashFunction -> ByteString -> ByteString -> IO String
- unsafeHMAC :: CryptoHashFunction -> ByteString -> ByteString -> String
- showHMAC :: ByteString -> String
- data CryptoHashFunction
- sha :: CryptoHashFunction
- sha1 :: CryptoHashFunction
- sha224 :: CryptoHashFunction
- sha256 :: CryptoHashFunction
- sha384 :: CryptoHashFunction
- sha512 :: CryptoHashFunction
Documentation
hmac :: CryptoHashFunction -> ByteString -> ByteString -> IO String Source #
:: CryptoHashFunction | the name of the digest |
-> ByteString | the HMAC key |
-> ByteString | the data to be signed |
-> String | the hex-representation of the resulting HMAC |
Wrapper/rendering function for hmac
:: ByteString | the HMAC |
-> String | the hex-string representation |
Get the hex-string representation of an HMAC
data CryptoHashFunction Source #
sha :: CryptoHashFunction Source #
Name of the SHA digest, used by getDigestByName
sha1 :: CryptoHashFunction Source #
Name of the SHA1 digest, used by getDigestByName
sha224 :: CryptoHashFunction Source #
Name of the SHA224 digest, used by getDigestByName
sha256 :: CryptoHashFunction Source #
Name of the SHA256 digest, used by getDigestByName
sha384 :: CryptoHashFunction Source #
Name of the SHA384 digest, used by getDigestByName
sha512 :: CryptoHashFunction Source #
Name of the SHA384 digest, used by getDigestByName