darkbio_crypto/
lib.rs

1// crypto-rs: cryptography primitives and wrappers
2// Copyright 2025 Dark Bio AG. All rights reserved.
3//
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7// Pull in the README as the package doc
8#![doc = include_str!("../README.md")]
9// Enable the experimental doc_cfg feature
10#![cfg_attr(docsrs, feature(doc_cfg))]
11
12// Allow derive macros to reference this crate as `darkbio_crypto` even when
13// used internally (proc macros can't distinguish internal vs external use).
14extern crate self as darkbio_crypto;
15
16#[cfg(feature = "argon2")]
17pub mod argon2;
18
19#[cfg(feature = "hkdf")]
20pub mod hkdf;
21
22#[cfg(feature = "cbor")]
23pub mod cbor;
24
25#[cfg(feature = "cose")]
26pub mod cose;
27
28#[cfg(feature = "eddsa")]
29pub mod eddsa;
30
31#[cfg(feature = "mldsa")]
32pub mod mldsa;
33
34#[cfg(feature = "pem")]
35pub mod pem;
36
37#[cfg(feature = "rsa")]
38pub mod rsa;
39
40#[cfg(feature = "rand")]
41pub mod rand;
42
43#[cfg(feature = "stream")]
44pub mod stream;
45
46#[cfg(feature = "x509")]
47pub mod x509;
48
49#[cfg(feature = "xdsa")]
50pub mod xdsa;
51
52#[cfg(feature = "xhpke")]
53pub mod xhpke;