mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-23 01:24:36 -04:00
* add experimental preview media support * clippy+formatting * add support for mk/pvm nonces * fix cursor positioning+size deserialization bug * clippy+formatting * cleanup code and add `decrypt_preview_media()` * update comment * remove `Mode` from `Keyslot` * use little-endian `usize` for media length * remove memory objects * remove mode enum * add `.zeroize()` to `Protected<>` * remove `Mode` ser/de * refactor, remove `Mode`, add helper functions * formatting * remove unused error * update comments/docs * comments, fix large files, insane performance * doc updates and fix decrypt zeroize * revert to 1048576 byte `BLOCK_SIZE` * `Keyslot` and `PreviewMedia` constructors now handle encryption * add metadata item with associated functions * update comments, clean up useless items * add metadata support within the header * remove stray 128 in length calcs * include metadata in header ser/de * fmt+clippy * rework keyslot decryption * formatting * api changes, code cleanup * docs for `stream.rs` * massive documentation re-write * mark expensive doc test as ignore * minor api tweaks * add examples * formatting+linting * finalise documentation and add more examples * formatting
29 lines
716 B
Rust
29 lines
716 B
Rust
#![forbid(unsafe_code)]
|
|
#![warn(clippy::pedantic)]
|
|
#![warn(clippy::correctness)]
|
|
#![warn(clippy::perf)]
|
|
#![warn(clippy::style)]
|
|
#![warn(clippy::suspicious)]
|
|
#![warn(clippy::nursery)]
|
|
#![warn(clippy::correctness)]
|
|
#![allow(clippy::missing_panics_doc)]
|
|
#![allow(clippy::missing_errors_doc)]
|
|
#![allow(clippy::module_name_repetitions)]
|
|
#![allow(clippy::similar_names)]
|
|
|
|
pub mod crypto;
|
|
pub mod error;
|
|
pub mod header;
|
|
pub mod keys;
|
|
pub mod primitives;
|
|
pub mod protected;
|
|
|
|
// Re-export this so that payloads can be generated elsewhere
|
|
pub use aead::Payload;
|
|
|
|
// Make this easier to use (e.g. `sd_crypto::Protected`)
|
|
pub use protected::Protected;
|
|
|
|
// Re-export zeroize so it can be used elsewhere
|
|
pub use zeroize::Zeroize;
|