mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-05 06:53:34 +00:00
* add hashing tests * add encryption/decryption tests * remove `reason` * add file header tests (preview media deserialization is broken) * fix keyslot reading bug * add sd-crypto testing to ci * add tests/constants for all hashing algorthms and param levels * add blake3-kdf tests * use `const` arrays for storing expected output * test for `5MiB` `encrypt_streams` and `decrypt_streams` * add invalid/mismatched nonce tests * update `primitives` docs * remove erroneous `,` * grammar tweaks * add errors to `#[should_panic]` * cleanup `stream` tests * cleanup hashing tests a little * function docs |
||
---|---|---|
.. | ||
assets | ||
benches | ||
examples | ||
src | ||
Cargo.toml | ||
README.md |
Crypto
This crate contains Spacedrive's cryptographic modules.
This includes things such as:
- The key manager
- Encryption and decryption
- Encrypted file header formats (with extremely fast serialization and deserialization)
- Key hashing and derivation
- Keyring interfaces to access native OS keystores
It aims to be (relatively) lightweight, easy to maintain and platform-agnostic where possible. It does contain some platform-specific code, although it's only built if the target matches.