pub trait Sign<'a> {
fn no_armor(self: Box<Self>) -> Box<dyn Sign<'a> + 'a>;
fn mode(self: Box<Self>, mode: SignAs) -> Box<dyn Sign<'a> + 'a>;
fn key(
self: Box<Self>,
key: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Sign<'a> + 'a>>;
fn keys(
self: Box<Self>,
keys: &mut (dyn Read + Send + Sync)
) -> Result<Box<dyn Sign<'a> + 'a>>;
fn with_key_password(
self: Box<Self>,
password: Password
) -> Result<Box<dyn Sign<'a> + 'a>>;
fn data(
self: Box<Self>,
data: &'a mut (dyn Read + Send + Sync)
) -> Result<Box<dyn ReadyWithResult<Micalg> + 'a>>;
}
Expand description
Builder for SOP::sign
.
Required Methods
Adds the signer key.
Adds the signer keys.
Like Sign::key
, but for multiple keys.
Adds a password to unlock the signing keys with.
All supplied passwords will be used to try to unlock all signing keys.