Hoogle Search
Within LTS Haskell 24.43 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
randomByteString :: Int -> IO ByteStringsaltine Crypto.Saltine.Internal.Util Build a sized random ByteString using Sodium's bindings to devurandom.
authenticationKeyFromHexByteString :: StrictByteString -> Either Text AuthenticationKeysel Sel.HMAC.SHA256 Create an AuthenticationKey from a binary StrictByteString that you have obtained on your own, usually from the network or disk. The input secret key, once decoded from base16, must be of length cryptoAuthHMACSHA256Bytes.
authenticationTagFromHexByteString :: StrictByteString -> Either Text AuthenticationTagsel Sel.HMAC.SHA256 Create an AuthenticationTag from a binary StrictByteString that you have obtained on your own, usually from the network or disk. The input secret key, once decoded from base16, must be of length cryptoAuthHMACSHA256Bytes.
authenticationTagToHexByteString :: AuthenticationTag -> StrictByteStringsel Sel.HMAC.SHA256 Convert an AuthenticationTag to a hexadecimal-encoded StrictByteString in constant time.
unsafeAuthenticationKeyToHexByteString :: AuthenticationKey -> StrictByteStringsel Sel.HMAC.SHA256 Convert a 'AuthenticationKey to a hexadecimal-encoded StrictByteString in constant time. ⚠️ Be prudent as to where you store it!
authenticationKeyFromHexByteString :: StrictByteString -> Either Text AuthenticationKeysel Sel.HMAC.SHA512 Create an AuthenticationKey from a binary StrictByteString that you have obtained on your own, usually from the network or disk. The input secret key, once decoded from base16, must be of length cryptoAuthHMACSHA512Bytes.
authenticationTagFromHexByteString :: StrictByteString -> Either Text AuthenticationTagsel Sel.HMAC.SHA512 Create an AuthenticationTag from a binary StrictByteString that you have obtained on your own, usually from the network or disk. The input secret key, once decoded from base16, must be of length cryptoAuthHMACSHA512Bytes.
authenticationTagToHexByteString :: AuthenticationTag -> StrictByteStringsel Sel.HMAC.SHA512 Convert an AuthenticationTag to a hexadecimal-encoded StrictByteString in constant time.
unsafeAuthenticationKeyToHexByteString :: AuthenticationKey -> StrictByteStringsel Sel.HMAC.SHA512 Convert a 'AuthenticationKey to a hexadecimal-encoded StrictByteString in constant time. ⚠️ Be prudent as to where you store it!
authenticationKeyFromHexByteString :: StrictByteString -> Either Text AuthenticationKeysel Sel.HMAC.SHA512_256 Create an AuthenticationKey from a binary StrictByteString that you have obtained on your own, usually from the network or disk. The input secret key, once decoded from base16, must be of length cryptoAuthHMACSHA512256Bytes.