Trait osshkeys::keys::PrivateParts[][src]

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

A trait for operations of a private key

Required methods

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

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

Loading content...

Implementors

Loading content...