pub struct Signature { /* private fields */ }Implementations§
Source§impl Signature
impl Signature
pub fn new(r_bytes: &[u8], s_bytes: &[u8]) -> Self
pub fn der_decode(buf: &[u8]) -> Result<Signature, ASN1Error>
pub fn der_decode_raw(buf: &[u8]) -> Result<Signature, Sm2Error>
pub fn der_encode(&self) -> Vec<u8> ⓘ
pub fn get_r(&self) -> &BigUint
pub fn get_s(&self) -> &BigUint
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more