1 unstable release

0.1.0 Mar 28, 2024
0.1.0-pre2 Sep 17, 2024

#1624 in Cryptography

Download history 4/week @ 2024-10-04 3/week @ 2024-10-11 120/week @ 2024-10-18 72/week @ 2024-10-25 104/week @ 2024-11-01 43/week @ 2024-11-08 127/week @ 2024-11-15 183/week @ 2024-11-22 144/week @ 2024-11-29 351/week @ 2024-12-06 249/week @ 2024-12-13 56/week @ 2024-12-20 13/week @ 2024-12-27 205/week @ 2025-01-03 235/week @ 2025-01-10 45/week @ 2025-01-17

498 downloads per month
Used in 2 crates (via cllw-ore)

MIT license

38KB
593 lines

Vitamin C

Vitamin C is like vitamins for your Rust code, especially code dealing with cryptography and managing sensitive data. It is actually a suite of crates that you can use individually or via this top-level crate via features.

Vitamin C is in active development and aims to address the following:

  • Misuse Resistance: it aims to make it difficult to write code that is insecure.

  • Verified: be verified using formal methods and testing and selects dependencies that are verified.

  • Vetted: be vetted by security experts and selects dependencies that are vetted.

  • Minimal: be minimal and only include what is necessary.

  • Consistent: have a consistent interface with everything in one place.

  • Compatible: support embedded (no_std) and WASM targets.

  • Fast: speed and security can be friends!

Usage

You can install the top-level vitaminc crate and enable specific features:

cargo add vitaminc --features protected,random

Or, if you only need a specific capability, you can install a crate directly:

cargo add vitaminc-protected

Features and sub-crates

Feature Source Crates.io Documentation
protected vitaminc-protected crates.io docs.rs
permutation vitaminc-permutation crates.io docs.rs
random vitaminc-random crates.io docs.rs
traits vitaminc-traits crates.io docs.rs
async-traits vitaminc-async-traits crates.io docs.rs
kms vitaminc-kms crates.io docs.rs

Dependencies

~0–8.5MB
~62K SLoC