reallyme-crypto 0.3.2

Cross-platform cryptographic primitives, key formats, and conformance-tested provider bindings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-FileCopyrightText: Copyright © 2026 ReallyMe LLC. All rights reserved
//
// SPDX-License-Identifier: Apache-2.0

/// Required destruction behavior for one material owner.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
pub enum DestructionPolicy {
    /// Public material has no explicit destruction requirement.
    NoneRequired,
    /// The owning Rust value must zeroize its storage when dropped.
    ZeroizeOnDrop,
    /// The caller retains responsibility for clearing borrowed storage.
    CallerControlled,
    /// A managed runtime must clear mutable storage as a best effort.
    ManagedRuntimeBestEffort,
}