Crates.io | vitaminc-traits |
lib.rs | vitaminc-traits |
version | 0.1.0-pre2 |
source | src |
created_at | 2024-09-17 04:22:23.148941 |
updated_at | 2024-09-17 04:22:23.148941 |
description | Vitamin C traits |
homepage | https://cipherstash.com |
repository | https://github.com/cipherstash/vitaminc |
max_upload_size | |
id | 1377118 |
size | 4,916 |
This crate is part of the Vitamin C framework to make cryptography code healthy.
This crate provides traits for hashing and encryption algorithms.
These are very similar to the traits provided by the digest
and other crates in the RustCrypto project
with some key differences:
Update
trait takes a specific input type. This allows us to reason about the input type and its sensitivity.Output
traits are generic over the output type. This allows us to reason about the output type and its sensitivity.const
generics are used to specify the output size of the hash instead of GenericArray.Async versions of some of these traits are provided in the async-traits
crate.
Shoutout to Tony Arcieri, Artyom Pavlov and all the contributors to the Rust Crypto project which was the inspiration for this crate.
Vitamin C is brought to you by the team at CipherStash.
License: MIT