Skip to main content

KeyUnwrappingKey

Trait KeyUnwrappingKey 

Source
pub trait KeyUnwrappingKey: Send + Sync {
    // Required methods
    fn provider_binding(&self) -> &ProviderBinding;
    fn unwrap_with_provider(
        &self,
        provider: &dyn CryptoProvider,
        algorithm: KeyWrapAlgorithm,
        content_algorithm: DataEncryptionAlgorithm,
        wrapped: &[u8],
    ) -> Result<RecoveredContentKey, ProviderError>;
}
Expand description

An opaque KEK that unwraps directly into a non-exportable content key.

Required Methods§

Source

fn provider_binding(&self) -> &ProviderBinding

Exact external domain owning this handle.

Source

fn unwrap_with_provider( &self, provider: &dyn CryptoProvider, algorithm: KeyWrapAlgorithm, content_algorithm: DataEncryptionAlgorithm, wrapped: &[u8], ) -> Result<RecoveredContentKey, ProviderError>

Unwrap within the selected execution domain without reading CKA_VALUE.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§