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
// Copyright 2020-2021 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

#![no_std]

//! Stronghold Protected-access Memory Runtime.
//!
//! These modules contain an interface for allocating and protecting
//! the memory of secrets in Stronghold.  Data is protected from being accessed
//! outside of a limited scope. Instead it must be accessed via the
//! provided interfaces.
//!
//! Memory allocations are protected by guard pages before and after the
//! allocation, an underflow canary, and are zeroed out when freed.

mod allocator;
mod boxed;
mod guarded;
mod guarded_vec;
mod secret;
mod sodium;
mod types;

pub use allocator::ZeroingAlloc;
pub use guarded::Guarded;
pub use guarded_vec::GuardedVec;
pub use secret::Secret;
pub use types::Bytes;