Crate crypto_generic

Source
Expand description

Provides simple Read/Write wrappers that transparently encrypt/decrypt data that passes through them.

Modules§

always_panic_impl 🔒
Implements CryptReader/Writer by always panicking. Vendors are expected to implement their own encryption schemes.

Structs§

CryptKey
Stores a cryptographic key, but permits no access to the underlying data outside of this crate.
CryptReader
Interface used for file decryption.
CryptWriter
Interface used for file encryption.
SecureByteVec
A vec wrapper suitable for storing cryptographic key material. On drop, the memory used will be zeroed.

Functions§

generate_random_key
Generates a random key usable with CryptWriter & CryptReader.