Skip to main content

HostSigningKey

Trait HostSigningKey 

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

Required Methods§

Source

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

See verifying-key.algorithm-name.

Source

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

See verifying-key.algorithm-curve.

Source

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

See verifying-key.algorithm-hash.

Source

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

See verifying-key.algorithm-length.

Source

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

See verifying-key.algorithm-public-exponent.

Source

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

Whether the export functions may return this key’s material. Mint-time recorded policy, which platform-backed key storage also honors.

Source

fn can_sign(&mut self, self_: Resource<SigningKey>) -> Result<bool>

Whether this key permits sign. A refused operation fails error.not-permitted.

Implementations on Foreign Types§

Source§

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

Source§

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

See verifying-key.algorithm-name.

Source§

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

See verifying-key.algorithm-curve.

Source§

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

See verifying-key.algorithm-hash.

Source§

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

See verifying-key.algorithm-length.

Source§

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

See verifying-key.algorithm-public-exponent.

Source§

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

Whether the export functions may return this key’s material. Mint-time recorded policy, which platform-backed key storage also honors.

Source§

fn can_sign(&mut self, self_: Resource<SigningKey>) -> Result<bool>

Whether this key permits sign. A refused operation fails error.not-permitted.

Implementors§