ExternalKey

Trait ExternalKey 

Source
pub trait ExternalKey {
    // Required methods
    fn get_public_key_der(&mut self) -> Result<Vec<u8>, Error>;
    fn sign_sha256(
        &mut self,
        input: &[u8],
    ) -> Result<(Vec<u8>, SignatureAlgorithm), Error>;
}
Expand description

Operations needed on any input key pair. This is already implemented for mbedtls::Pk.

Required Methods§

Source

fn get_public_key_der(&mut self) -> Result<Vec<u8>, Error>

Source

fn sign_sha256( &mut self, input: &[u8], ) -> Result<(Vec<u8>, SignatureAlgorithm), Error>

Implementations on Foreign Types§

Source§

impl ExternalKey for Pk

Source§

fn get_public_key_der(&mut self) -> Result<Vec<u8>, Error>

Source§

fn sign_sha256( &mut self, input: &[u8], ) -> Result<(Vec<u8>, SignatureAlgorithm), Error>

Implementors§