Module crypto

Source
Expand description

Crypto utility.

Structs§

Crypto
A struct for encrypting/decrypting bytes or io streams.

Enums§

ErrorKind
Enum of the different possible crypto errors.

Constants§

DEC_CHUNK_LEN
Decryption chunk length: iv (12b) + ciphertext (128kb) + auth tag (16b).
ENC_CHUNK_LEN
Encryption chunk length: plaintext (128kb).
IV_LEN
Default initialization vector length (12b).
TAG_LEN
Default authentication tag length (16b).