1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! `oxicrypto-core` -- pure-Rust trait surface, error types, and secure
//! wrappers for the OxiCrypto stack.
//!
//! This crate is `no_std`. With the default `alloc` feature it is
//! `no_std + alloc`; with `--no-default-features` it links only `core` and
//! exposes a genuinely allocation-free API surface (`SecretKey<N>`,
//! `Hash::hash` / `hash_to_array::<N>`, constant-time utilities, `CryptoError`,
//! `AlgorithmId`). It defines the trait objects, error enum, constant-time
//! utilities, and secret-key wrappers shared by every other `oxicrypto-*`
//! sub-crate. No crypto implementation lives here.
extern crate alloc;
pub use Box;
pub use String;
pub use Vec;
// Re-export `subtle` so downstream crates use a single version.
pub use ConstantTimeEq;
pub use ;
// ---------------------------------------------------------------------------
// Submodules
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// Public re-exports
// ---------------------------------------------------------------------------
pub use ;
pub use ;
pub use CryptoError;
pub use SecretVec;
pub use ;
pub use KeyGenerator;
pub use ;
// ---------------------------------------------------------------------------
// Tests
// ---------------------------------------------------------------------------
// The in-crate test suite exercises the alloc-returning convenience methods, so
// it is only compiled when the `alloc` feature is on (the default).