Struct efficient_sm2::KeyPair [−][src]
pub struct KeyPair { /* fields omitted */ }
Implementations
pub fn sign_with_seed(
&self,
rng: &mut dyn SecureRandom,
message: &[u8]
) -> Result<Signature, KeyRejected>
pub fn sign_digest(
&self,
rng: &mut dyn SecureRandom,
digest: &[u8]
) -> Result<Signature, KeyRejected>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyPair
impl UnwindSafe for KeyPair
Blanket Implementations
Mutably borrows from an owned value. Read more