saltine-0.1.1.0: Cryptography that's easy to digest (NaCl/libsodium bindings).
Copyright(c) Joseph Abrahamson 2013
LicenseMIT
Maintainerme@jspha.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

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

Documentation

auth :: Int Source #

Size of a crypto_auth authenticator.

authKey :: Int Source #

Size of a crypto_auth authenticator key.

boxPK :: Int Source #

Size of a crypto_box public key

boxSK :: Int Source #

Size of a crypto_box secret key

boxNonce :: Int Source #

Size of a crypto_box nonce

boxZero :: Int Source #

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

sealedBox :: Int Source #

Amount by which ciphertext is longer than plaintext in sealed boxes

onetime :: Int Source #

Size of a crypto_onetimeauth authenticator.

onetimeKey :: Int Source #

Size of a crypto_onetimeauth authenticator key.

mult :: Int Source #

Size of a group element string representation for crypto_scalarmult.

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

sign :: Int Source #

The maximum size of a signature prepended to a message to form a signed message.

signPK :: Int Source #

The size of a public key for signing verification

signSK :: Int Source #

The size of a secret key for signing

streamKey :: Int Source #

The size of a key for the cryptographic stream generation

streamNonce :: Int Source #

The size of a nonce for the cryptographic stream generation

hash :: Int Source #

The size of a hash resulting from hash.

shorthash :: Int Source #

The size of a keyed hash resulting from shorthash.

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