saltine-0.1.0.2: Cryptography that's easy to digest (NaCl/libsodium bindings).

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

Size of a crypto_auth authenticator.

Size of a crypto_auth authenticator key.

Size of a crypto_box public key

Size of a crypto_box secret key

Size of a crypto_box nonce

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

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

Size of a crypto_box_beforenm-generated combined key

Amount by which ciphertext is longer than plaintext in sealed boxes

Size of a crypto_onetimeauth authenticator.

Size of a crypto_onetimeauth authenticator key.

Size of a group element string representation for crypto_scalarmult.

Size of a integer string representation for crypto_scalarmult.

Size of a crypto_secretbox secret key

Size of a crypto_secretbox nonce

Size of a crypto_secretbox mac

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

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.

The size of a public key for signing verification

The size of a secret key for signing

The size of a key for the cryptographic stream generation

The size of a nonce for the cryptographic stream generation

The size of a hash resulting from hash.

The size of a keyed hash resulting from shorthash.

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