Crate fxfs_crypto

Source

Modules§

ff1

Structs§

Cipher
CipherSet
Key
References a specific key in the cipher set.
StreamCipher
A thin wrapper around a ChaCha20 stream cipher. This will use a zero nonce. NOTE: Great care must be taken not to encrypt different plaintext with the same key and offset (even across multiple boots), so consider if this suits your purpose before using it.
UnwrappedKey
WrappedKeyBytesV32
WrappedKeyV32
WrappedKeyV40
WrappedKeysV32
WrappedKeysV40

Enums§

FindKeyResult
KeyPurpose
Different keys are used for metadata and data in order to make certain operations requiring a metadata key rotation (e.g. secure erase) more efficient.

Constants§

FSCRYPT_PADDING
KEY_SIZE
WRAPPED_KEY_SIZE

Traits§

Crypt
An interface trait with the ability to wrap and unwrap encryption keys.

Functions§

xor_in_place

Type Aliases§

KeyBytes
UnwrappedKeys
WrappedKey
WrappedKeyBytes
WrappedKeys
To support key rolling and clones, a file can have more than one key. Each key has an ID that unique to the file.