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.
authenticationKeyFromHexByteString :: StrictByteString -> Either Text AuthenticationKeysel Sel.SecretKey.Authentication 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 cryptoAuthKeyBytes.
authenticationTagFromHexByteString :: StrictByteString -> Either Text AuthenticationTagsel Sel.SecretKey.Authentication 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 cryptoAuthBytes.
authenticationTagToHexByteString :: AuthenticationTag -> StrictByteStringsel Sel.SecretKey.Authentication Convert an AuthenticationTag to a hexadecimal-encoded StrictByteString in constant time.
unsafeAuthenticationKeyToHexByteString :: AuthenticationKey -> StrictByteStringsel Sel.SecretKey.Authentication Convert a 'AuthenticationKey to a hexadecimal-encoded StrictByteString in constant time. ⚠️ Be prudent as to where you store it!
ciphertextFromHexByteString :: StrictByteString -> Either Text Ciphertextsel Sel.SecretKey.Cipher Create a Ciphertext from a hexadecimal-encoded StrictByteString that you have obtained on your own, usually from the network or disk. It must be a valid ciphertext built from the concatenation of the encrypted message and the authentication tag. The input ciphertext must at least of length cryptoSecretboxMACBytes.
ciphertextToHexByteString :: Ciphertext -> StrictByteStringsel Sel.SecretKey.Cipher Convert a Ciphertext to a hexadecimal-encoded StrictByteString in constant time. ⚠️ Be prudent as to where you store it!
nonceFromHexByteString :: StrictByteString -> Either Text Noncesel Sel.SecretKey.Cipher Create a Nonce from a binary StrictByteString that you have obtained on your own, usually from the network or disk. Once decoded from hexadecimal, it must be of length cryptoSecretboxNonceBytes.
nonceToHexByteString :: Nonce -> StrictByteStringsel Sel.SecretKey.Cipher Convert a Nonce to a hexadecimal-encoded StrictByteString in constant time.
secretKeyFromHexByteString :: StrictByteString -> Either Text SecretKeysel Sel.SecretKey.Cipher Create a SecretKey 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 cryptoSecretboxKeyBytes.
unsafeSecretKeyToHexByteString :: SecretKey -> StrictByteStringsel Sel.SecretKey.Cipher Convert a SecretKey to a hexadecimal-encoded StrictByteString in constant time. ⚠️ Be prudent as to where you store it!