saltine-0.1.0.1: 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 #

Size of a crypto_auth authenticator.

authKey :: Int #

Size of a crypto_auth authenticator key.

boxPK :: Int #

Size of a crypto_box public key

boxSK :: Int #

Size of a crypto_box secret key

boxNonce :: Int #

Size of a crypto_box nonce

boxZero :: Int #

Size of 0-padding prepended to messages before using crypto_box or after using crypto_box_open

boxBoxZero :: Int #

Size of 0-padding prepended to ciphertext before using crypto_box_open or after using crypto_box.

boxBeforeNM :: Int #

Size of a crypto_box_beforenm-generated combined key

sealedBox :: Int #

Amount by which ciphertext is longer than plaintext in sealed boxes

onetime :: Int #

Size of a crypto_onetimeauth authenticator.

onetimeKey :: Int #

Size of a crypto_onetimeauth authenticator key.

mult :: Int #

Size of a group element string representation for crypto_scalarmult.

multScalar :: Int #

Size of a integer string representation for crypto_scalarmult.

secretBoxKey :: Int #

Size of a crypto_secretbox secret key

secretBoxNonce :: Int #

Size of a crypto_secretbox nonce

secretBoxMac :: Int #

Size of a crypto_secretbox mac

secretBoxZero :: Int #

Size of 0-padding prepended to messages before using crypto_secretbox or after using crypto_secretbox_open

secretBoxBoxZero :: Int #

Size of 0-padding prepended to ciphertext before using crypto_secretbox_open or after using crypto_secretbox

sign :: Int #

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

signPK :: Int #

The size of a public key for signing verification

signSK :: Int #

The size of a secret key for signing

streamKey :: Int #

The size of a key for the cryptographic stream generation

streamNonce :: Int #

The size of a nonce for the cryptographic stream generation

hash :: Int #

The size of a hash resulting from hash.

shorthash :: Int #

The size of a keyed hash resulting from shorthash.

shorthashKey :: Int #

The size of a hashing key for the keyed hash function shorthash.