Skip to main content

HostDecryptionKey

Trait HostDecryptionKey 

Source
pub trait HostDecryptionKey: Send {
    // Required methods
    fn algorithm_name(
        &mut self,
        self_: Resource<DecryptionKey>,
    ) -> Result<String>;
    fn algorithm_hash(
        &mut self,
        self_: Resource<DecryptionKey>,
    ) -> Result<Option<String>>;
    fn algorithm_length(
        &mut self,
        self_: Resource<DecryptionKey>,
    ) -> Result<Option<u32>>;
    fn algorithm_public_exponent(
        &mut self,
        self_: Resource<DecryptionKey>,
    ) -> Result<Option<Vec<u8>>>;
    fn can_decrypt(&mut self, self_: Resource<DecryptionKey>) -> Result<bool>;
    fn can_unwrap(&mut self, self_: Resource<DecryptionKey>) -> Result<bool>;
    fn extractable(&mut self, self_: Resource<DecryptionKey>) -> Result<bool>;
}

Required Methods§

Source

fn algorithm_name(&mut self, self_: Resource<DecryptionKey>) -> Result<String>

See encryption-key.algorithm-name.

Source

fn algorithm_hash( &mut self, self_: Resource<DecryptionKey>, ) -> Result<Option<String>>

See encryption-key.algorithm-hash.

Source

fn algorithm_length( &mut self, self_: Resource<DecryptionKey>, ) -> Result<Option<u32>>

See encryption-key.algorithm-length.

Source

fn algorithm_public_exponent( &mut self, self_: Resource<DecryptionKey>, ) -> Result<Option<Vec<u8>>>

See encryption-key.algorithm-public-exponent.

Source

fn can_decrypt(&mut self, self_: Resource<DecryptionKey>) -> Result<bool>

Whether this key may decrypt. See decryption-key-options.can-decrypt.

Source

fn can_unwrap(&mut self, self_: Resource<DecryptionKey>) -> Result<bool>

Whether this key may unwrap. See decryption-key-options.can-unwrap.

Source

fn extractable(&mut self, self_: Resource<DecryptionKey>) -> Result<bool>

Whether the export functions may return this key’s material. See decryption-key-options.extractable.

Implementations on Foreign Types§

Source§

impl<_T: HostDecryptionKey + ?Sized + Send> HostDecryptionKey for &mut _T

Source§

fn algorithm_name(&mut self, self_: Resource<DecryptionKey>) -> Result<String>

See encryption-key.algorithm-name.

Source§

fn algorithm_hash( &mut self, self_: Resource<DecryptionKey>, ) -> Result<Option<String>>

See encryption-key.algorithm-hash.

Source§

fn algorithm_length( &mut self, self_: Resource<DecryptionKey>, ) -> Result<Option<u32>>

See encryption-key.algorithm-length.

Source§

fn algorithm_public_exponent( &mut self, self_: Resource<DecryptionKey>, ) -> Result<Option<Vec<u8>>>

See encryption-key.algorithm-public-exponent.

Source§

fn can_decrypt(&mut self, self_: Resource<DecryptionKey>) -> Result<bool>

Whether this key may decrypt. See decryption-key-options.can-decrypt.

Source§

fn can_unwrap(&mut self, self_: Resource<DecryptionKey>) -> Result<bool>

Whether this key may unwrap. See decryption-key-options.can-unwrap.

Source§

fn extractable(&mut self, self_: Resource<DecryptionKey>) -> Result<bool>

Whether the export functions may return this key’s material. See decryption-key-options.extractable.

Implementors§