#[non_exhaustive]pub enum PlatformKeyOperation {
Generate,
GetPublicKey,
Sign,
Verify,
DeriveSharedSecret,
Delete,
Attest,
}Expand description
Platform-owned key operations represented by the shared domain model.
This enum is intentionally descriptive rather than executable. Apple and Android SDK providers retain custody of platform key handles and must fail closed when an operation is unavailable; the Rust core must never substitute an exportable software key for a platform-owned key.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Generate
Generate a new non-exportable platform key.
GetPublicKey
Return the public half of an existing platform key.
Sign
Sign with an existing platform key.
Verify
Verify with an existing platform key.
Derive a shared secret with an existing platform key.
Delete
Delete an existing platform key.
Attest
Request provider attestation for an existing platform key.
Implementations§
Source§impl PlatformKeyOperation
impl PlatformKeyOperation
Sourcepub const fn family(self) -> OperationFamily
pub const fn family(self) -> OperationFamily
Returns the semantic operation family used by policy and telemetry.
Sourcepub const fn requires_existing_key(self) -> bool
pub const fn requires_existing_key(self) -> bool
Returns whether the operation requires a previously created key handle.
Sourcepub const fn produces_secret_material(self) -> bool
pub const fn produces_secret_material(self) -> bool
Returns whether successful execution can produce secret material.
Callers use this classification to require a zeroizing managed owner for the shared-secret result before crossing an SDK or FFI boundary.
Trait Implementations§
Source§impl Clone for PlatformKeyOperation
impl Clone for PlatformKeyOperation
Source§fn clone(&self) -> PlatformKeyOperation
fn clone(&self) -> PlatformKeyOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more