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/SealingKeyandNonceSequencecannot 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
ciphertextusingkey. - Encrypt
plaintextusingkey. - Reads encrypted data from a file
- Write
dataencrypted to afilewith a randomnoncethat 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