pub trait PrivateParts: Key {
    // Required method
    fn sign(&self, data: &[u8]) -> OsshResult<Vec<u8>>;
}
Expand description

A trait for operations of a private key

Required Methods§

source

fn sign(&self, data: &[u8]) -> OsshResult<Vec<u8>>

Sign the data with the key, returning the “detached” signature

Implementors§