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§
Sourcefn provider_binding(&self) -> &ProviderBinding
fn provider_binding(&self) -> &ProviderBinding
Exact external domain owning this handle.
Sourcefn unwrap_with_provider(
&self,
provider: &dyn CryptoProvider,
algorithm: KeyWrapAlgorithm,
content_algorithm: DataEncryptionAlgorithm,
wrapped: &[u8],
) -> Result<RecoveredContentKey, ProviderError>
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".