Expand description
Module that provides a simple API for symmetric encryption in the output formats used by Concordium.
Structs§
- Cipher
Text - A wrapper around a byte array to represent a ciphertext. JSON encodings are in base64.
- Encrypted
Data - Ciphertext together with metadata describing the encryption method.
- Encryption
Metadata - Metadata that enables decryption of some encrypted data provided an a password is provided.
- Password
- A wrapper to make it less likely to abuse passwords.
Enums§
- Decryption
Error - Errors that can occur during AES decryption.
- Encryption
Method - Supported encryption methods.
- KeyDerivation
Method - Supported key derivation methods.
Constants§
- AES_
BLOCK_ SIZE - AES block size in bytes
- NUM_
ROUNDS - The number of rounds of the key derivation function to use for hashing the password.