Skip to main content

reallyme_crypto/secret_material/
export.rs

1// SPDX-FileCopyrightText: Copyright © 2026 ReallyMe LLC. All rights reserved
2//
3// SPDX-License-Identifier: Apache-2.0
4
5/// Whether material may cross the operation boundary.
6#[derive(Debug, Clone, Copy, PartialEq, Eq)]
7#[non_exhaustive]
8pub enum ExportPolicy {
9    /// Public or ciphertext material may be returned without restriction.
10    Public,
11    /// Secret bytes may be returned only through an explicitly secret owner.
12    SecretOwnerRequired,
13    /// Provider-resident material must not be exported as raw bytes.
14    NonExportable,
15}