pub enum EllipticSigningKey {
Prime256(SigningKey),
Prime384(SigningKey),
Prime521(SigningKey),
}Expand description
An elliptic curve signing key.
Variants§
Prime256(SigningKey)
Using the P256 curve.
Prime384(SigningKey)
Using the P384 curve.
Prime521(SigningKey)
Using the P521 curve.
Implementations§
Source§impl EllipticSigningKey
impl EllipticSigningKey
Sourcepub fn sign<D: Digest>(&self, message: &[u8]) -> Vec<u8> ⓘ
pub fn sign<D: Digest>(&self, message: &[u8]) -> Vec<u8> ⓘ
Sign the message using this key and the digest algorithm.
§Panics
- If the digest algorithm produces a digest with a length that is less than half the field size of the curve.
- Any other errors occur during signing.
Sourcepub fn verifying_key(&self) -> EllipticVerifyingKey
pub fn verifying_key(&self) -> EllipticVerifyingKey
Get the verifying key for this signing key
Auto Trait Implementations§
impl Freeze for EllipticSigningKey
impl RefUnwindSafe for EllipticSigningKey
impl Send for EllipticSigningKey
impl Sync for EllipticSigningKey
impl Unpin for EllipticSigningKey
impl UnwindSafe for EllipticSigningKey
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