Skip to main content

KeyResolverImpl

Trait KeyResolverImpl 

Source
pub trait KeyResolverImpl<KeyId> {
    // Required methods
    fn id(&self) -> KeyId;
    fn resolve(&self, data: &[u8]) -> KeyId;
}

Required Methods§

Source

fn id(&self) -> KeyId

Returns the EncryptionAlgorithmId that this implements.

Source

fn resolve(&self, data: &[u8]) -> KeyId

Resolve the given data to a key using this algorithm.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§