Crate fedimint_aead

source ·

Structs§

  • The additionally authenticated data (AAD) for an opening or sealing operation. This data is authenticated but is not encrypted.
  • Immutable keys for use in situations where OpeningKey/SealingKey and NonceSequence cannot reasonably be used.
  • An AEAD key without a designated role or nonce sequence.

Constants§

  • All the AEADs we support use 96-bit nonces.

Functions§

  • Decrypts a ciphertext using key.
  • Encrypt plaintext using key.
  • Reads encrypted data from a file
  • Write data encrypted to a file with a random nonce that will be encoded in the file
  • Key used to encrypt and authenticate data stored on the filesystem with a user password.
  • Get a random nonce.
  • Generates a B64-encoded random salt string of the recommended 16 byte length