pub struct EcdsaP256;Expand description
ECDSA P-256 signing primitive (trait-dispatched).
sign(sk, msg, sig_out): sk is 32-byte raw scalar, returns DER signature.
Note: signature_len() returns 72, the DER maximum length. Actual DER
signatures are variable-length (typically 70–72 bytes). Callers should
use the return value of sign() for the true written length.
Trait Implementations§
Source§impl Signer for EcdsaP256
impl Signer for EcdsaP256
Source§fn signature_len(&self) -> usize
fn signature_len(&self) -> usize
Fixed signature length in bytes.
impl Copy for EcdsaP256
Auto Trait Implementations§
impl Freeze for EcdsaP256
impl RefUnwindSafe for EcdsaP256
impl Send for EcdsaP256
impl Sync for EcdsaP256
impl Unpin for EcdsaP256
impl UnsafeUnpin for EcdsaP256
impl UnwindSafe for EcdsaP256
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