pub struct P256;Expand description
COSE ES256 (-7) algorithm: P256 (a.k.a secp256r1) over SHA-256
Trait Implementations§
Auto Trait Implementations§
impl Freeze for P256
impl RefUnwindSafe for P256
impl Send for P256
impl Sync for P256
impl Unpin for P256
impl UnsafeUnpin for P256
impl UnwindSafe for P256
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
§impl<S> SignerExt for S
impl<S> SignerExt for S
§fn public_key<C>(&self) -> <C as Curve>::PublicKeywhere
C: Curve,
Self: Signer<C>,
fn public_key<C>(&self) -> <C as Curve>::PublicKeywhere
C: Curve,
Self: Signer<C>,
Get the public key of the signer on a curve
C. Read more§fn sign<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<<C as Curve>::Signature, Self::Error>> + Sendwhere
C: Curve,
Self: Signer<C>,
fn sign<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<<C as Curve>::Signature, Self::Error>> + Sendwhere
C: Curve,
Self: Signer<C>,
Sign a given message and return a signature. Read more
§fn sign_recoverable<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<(<C as Curve>::Signature, <C as RecoverableCurve>::RecoveryId), Self::Error>> + Sendwhere
C: RecoverableCurve,
Self: RecoverableSigner<C>,
fn sign_recoverable<C>(
&self,
msg: &[u8],
) -> impl Future<Output = Result<(<C as Curve>::Signature, <C as RecoverableCurve>::RecoveryId), Self::Error>> + Sendwhere
C: RecoverableCurve,
Self: RecoverableSigner<C>,
Sign a given message and return a signature along with recovery id. Read more
§fn cache_public_key<C>(self) -> CachePublicKey<C, Self>where
C: Curve,
Self: Sized + Signer<C>,
fn cache_public_key<C>(self) -> CachePublicKey<C, Self>where
C: Curve,
Self: Sized + Signer<C>,
Calculate
.public_key() and cache its value for
further invocations. Read more