| Copyright | (c) Joseph Abrahamson 2013 |
|---|---|
| License | MIT |
| Maintainer | me@jspha.com |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Crypto.Saltine.Internal.ByteSizes
Description
Various sizes
While technically these sizes are hidden behind opaque newtype wrappers, they can be useful for computation and sizing and are thus exposed.
As of libsodium-4.1 some of these sizes are not exported and thus
are hardcoded here. This limitation should be removed in later
versions of libsodium.
Synopsis
- auth :: Int
- authKey :: Int
- boxPK :: Int
- boxSK :: Int
- boxNonce :: Int
- boxZero :: Int
- boxBoxZero :: Int
- boxMac :: Int
- boxBeforeNM :: Int
- sealedBox :: Int
- onetime :: Int
- onetimeKey :: Int
- mult :: Int
- multScalar :: Int
- secretBoxKey :: Int
- secretBoxNonce :: Int
- secretBoxMac :: Int
- secretBoxZero :: Int
- secretBoxBoxZero :: Int
- aead_xchacha20poly1305_ietf_ABYTES :: Int
- sign :: Int
- signPK :: Int
- signSK :: Int
- streamKey :: Int
- streamNonce :: Int
- hash :: Int
- shorthash :: Int
- shorthashKey :: Int
- generichashOutLenMax :: Int
- generichashKeyLenMax :: Int
Documentation
Size of 0-padding prepended to messages before using crypto_box
or after using crypto_box_open
boxBoxZero :: Int Source #
Size of 0-padding prepended to ciphertext before using
crypto_box_open or after using crypto_box.
boxBeforeNM :: Int Source #
Size of a crypto_box_beforenm-generated combined key
onetimeKey :: Int Source #
Size of a crypto_onetimeauth authenticator key.
multScalar :: Int Source #
Size of a integer string representation for crypto_scalarmult.
secretBoxKey :: Int Source #
Size of a crypto_secretbox secret key
secretBoxNonce :: Int Source #
Size of a crypto_secretbox nonce
secretBoxMac :: Int Source #
Size of a crypto_secretbox mac
secretBoxZero :: Int Source #
Size of 0-padding prepended to messages before using
crypto_secretbox or after using crypto_secretbox_open
secretBoxBoxZero :: Int Source #
Size of 0-padding prepended to ciphertext before using
crypto_secretbox_open or after using crypto_secretbox
The maximum size of a signature prepended to a message to form a signed message.
streamNonce :: Int Source #
The size of a nonce for the cryptographic stream generation
shorthashKey :: Int Source #
The size of a hashing key for the keyed hash function
shorthash.
generichashOutLenMax :: Int Source #
The maximum output size of the generic hash function
generichash
generichashKeyLenMax :: Int Source #
The maximum key size of the generic hash function
generichash