Struct efficient_sm2::Signature [−][src]
pub struct Signature { /* fields omitted */ }
Implementations
impl Signature
[src]
impl Signature
[src]pub fn new(r: &[u8], s: &[u8]) -> Result<Self, KeyRejected>
[src]
pub fn from_scalars(r: Elem<Unencoded>, s: Elem<Unencoded>) -> Self
[src]
pub fn r(&self) -> [u8; 32]
[src]
pub fn s(&self) -> [u8; 32]
[src]
pub fn verify(&self, pk: &PublicKey, msg: &[u8]) -> Result<(), KeyRejected>
[src]
pub fn verify_digest(
&self,
pk: &PublicKey,
digest: &[u8]
) -> Result<(), KeyRejected>
[src]
&self,
pk: &PublicKey,
digest: &[u8]
) -> Result<(), KeyRejected>
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,