[−][src]Struct signatory_ring::ecdsa::p256::Signer
NIST P-256 ECDSA signer
Trait Implementations
impl FromPkcs8 for Signer<Asn1Signature>
[src]
fn from_pkcs8<K: AsRef<[u8]>>(secret_key: K) -> Result<Self, Error>
[src]
Create a new ECDSA signer which produces fixed-width signatures from a PKCS#8 keypair
fn read_pkcs8<R>(reader: R) -> Result<Self, Error> where
R: Read,
[src]
R: Read,
Read PKCS#8 data from the given std::io::Read
.
fn from_pkcs8_file<P>(path: P) -> Result<Self, Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Read PKCS#8 data from the file at the given path.
impl FromPkcs8 for Signer<FixedSignature>
[src]
fn from_pkcs8<K: AsRef<[u8]>>(secret_key: K) -> Result<Self, Error>
[src]
Create a new ECDSA signer which produces fixed-width signatures from a PKCS#8 keypair
fn read_pkcs8<R>(reader: R) -> Result<Self, Error> where
R: Read,
[src]
R: Read,
Read PKCS#8 data from the given std::io::Read
.
fn from_pkcs8_file<P>(path: P) -> Result<Self, Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Read PKCS#8 data from the file at the given path.
impl GeneratePkcs8 for Signer<Asn1Signature>
[src]
fn generate_pkcs8() -> Result<SecretKey, Error>
[src]
Randomly generate a P-256 PKCS#8 keypair
fn generate_pkcs8_file<P>(path: P) -> Result<File, Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Write randomly generated PKCS#8 private key to the file at the given path. Read more
impl GeneratePkcs8 for Signer<FixedSignature>
[src]
fn generate_pkcs8() -> Result<SecretKey, Error>
[src]
Randomly generate a P-256 PKCS#8 keypair
fn generate_pkcs8_file<P>(path: P) -> Result<File, Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Write randomly generated PKCS#8 private key to the file at the given path. Read more
impl<S> PublicKeyed<PublicKey<NistP256>> for Signer<S> where
S: Signature + Send + Sync,
[src]
S: Signature + Send + Sync,
fn public_key(&self) -> Result<PublicKey, Error>
[src]
impl Signer<Asn1Signature<NistP256>> for Signer<Asn1Signature>
[src]
fn try_sign(&self, msg: &[u8]) -> Result<Asn1Signature, Error>
[src]
fn sign(&self, msg: &[u8]) -> S
[src]
Sign the given message and return a digital signature
impl Signer<FixedSignature<NistP256>> for Signer<FixedSignature>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self