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.

Implementors§