snapper-box

Crates.iosnapper-box
lib.rssnapper-box
version0.0.4
sourcesrc
created_at2021-10-30 21:50:49.295663
updated_at2021-11-08 22:46:16.995446
descriptionCryptographic storage for snapper
homepage
repositoryhttps://gitlab.com/rust-community-matrix/snapper
max_upload_size
id474527
size178,012
Nathan McCarty (nmccarty)

documentation

README

Gitlab pipeline status Crates.io Matrix Crates.io

Snapper Box

Actually  a box turtle

About

Encrypted document storage backed for the snapper ecosystem.

This crate implements a multi-file, namespaced, log structured merge tree, with encrypted entries, where each namespace has its own file.

This crate encrypts LSM entries with XChaCha20, and then uses Blake3 as an HMAC (an Encrypt-then-MAC construction), with no exposed configuration in the cipher or hash, and uses a different derived (via Blake3) key for each namespace.

The root key is generated randomly, and then encrypted with an argon2 derivation of the provided password. This crate does not provide support for plaintext operation, passwordless operation, if desired, should be achieved by using a null or known-constant password.

This crate provides optional support for zstd compressed entries.

Serialized entries are stored as CBOR.

The root namespace is available for applications to use to store metadata or configuration, however, be advised that [CryptoBox] reserves the empty-string key ("") and the "namespaces" key for its own use, and modification of the value at the empty-string key or at the "namespaces" key may result in the inability to open a [CryptoBox] back up.

FAQ

Why doesn't this use poly1305?

The author of this crate has a deep distrust of polynomial MACs, in particular, but by no means limited to, the non-committing nature of AEAD's based on a polynomial MAC.

The implemented encryption scheme (XChaCha20 + Blake3 Encrypt-then-MAC) is commiting, unlike the non-commiting XChaCha20 + Poly1305.

What does HAZMAT mean?

This tag indicates that the module that bears it contains hazardous materials, namely, the low level cryptography underpinnings of this module. These are dangerously easy to misuse, and you probably don't want to interact with them directly.

Usage

TODO

Diagnostic binary

This crate provides a diagnostics binary, box-explorer, run box-explorer --help for usage.

Contributing

Take a look at CONTRIBUTING.md

Documentation

Please take a look at the CHANEGLOG.md and the rustdoc.

Commit count: 93

cargo fmt