pub struct P256;Expand description
P256 (a.k.a. secp256r1) Elliptic Curve Digital Signature Algorithm
Trait Implementations§
Source§impl Curve for P256
impl Curve for P256
Source§impl Signer<P256> for SigningKey
impl Signer<P256> for SigningKey
Source§async fn sign(
&self,
prehash: &[u8],
) -> Result<<P256 as Curve>::Signature, Self::Error>
async fn sign( &self, prehash: &[u8], ) -> Result<<P256 as Curve>::Signature, Self::Error>
Sign 32-byte prehash (i.e. output of cryptographic hash function).
If given prehash is of different length, an error will be returned.
fn cache_public_key(self) -> CachePublicKey<C, Self>where
Self: Sized,
Source§impl TypedCurve for P256
impl TypedCurve for P256
Source§const CURVE_TYPE: &str = "p256"
const CURVE_TYPE: &str = "p256"
Used as prefix:
<CURVE>:...Source§fn parse_base58<const N: usize>(
s: impl AsRef<str>,
) -> Result<[u8; N], ParseCurveError>
fn parse_base58<const N: usize>( s: impl AsRef<str>, ) -> Result<[u8; N], ParseCurveError>
Decodes bytes from string as
<CURVE>:<base58>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