pub struct P256Signer { /* private fields */ }Expand description
P-256 (ECDSA) signer.
Implementations§
Source§impl P256Signer
impl P256Signer
pub fn generate() -> Result<Self, SignerError>
pub fn from_pem(pem: &str) -> Result<Self, SignerError>
pub fn to_pem(&self) -> Result<String, SignerError>
pub fn verify_with_public_key( data: &[u8], public_key: &[u8], signature: &[u8], ) -> Result<(), SignerError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for P256Signer
impl RefUnwindSafe for P256Signer
impl Send for P256Signer
impl Sync for P256Signer
impl Unpin for P256Signer
impl UnsafeUnpin for P256Signer
impl UnwindSafe for P256Signer
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