[][src]Function yogcrypt::sm2::sm2_gen_sign

pub fn sm2_gen_sign(msg: &[u8], d: SecKey, q: PubKey) -> Signature

Generate a valid signature for a message using a pair of keys.

Note: The underlying hash function is sm3.