[−][src]Struct yubihsm::signatory::ecdsa::EcdsaSigner
ECDSA signature provider for yubihsm-client
Methods
impl<C> EcdsaSigner<C> where
C: WeierstrassCurve,
[src]
C: WeierstrassCurve,
pub fn create(client: Client, signing_key_id: Id) -> Result<Self, Error>
[src]
Create a new YubiHSM-backed ECDSA signer
pub fn asymmetric_alg() -> Algorithm
[src]
Get the expected asymmetric::Algorithm
for this Curve
Trait Implementations
impl<C> PublicKeyed<PublicKey<C>> for EcdsaSigner<C> where
C: WeierstrassCurve,
[src]
C: WeierstrassCurve,
fn public_key(&self) -> Result<PublicKey<C>, Error>
[src]
Obtain the public key which identifies this signer
impl<D> DigestSigner<D, Asn1Signature<NistP256>> for EcdsaSigner<NistP256> where
D: Digest<OutputSize = U32> + Default,
[src]
D: Digest<OutputSize = U32> + Default,
fn sign(&self, digest: D) -> Result<Asn1Signature<NistP256>, Error>
[src]
Compute an ASN.1 DER-encoded P-256 ECDSA signature of the given digest
impl<D> DigestSigner<D, FixedSignature<NistP256>> for EcdsaSigner<NistP256> where
D: Digest<OutputSize = U32> + Default,
[src]
D: Digest<OutputSize = U32> + Default,
fn sign(&self, digest: D) -> Result<FixedSignature<NistP256>, Error>
[src]
Compute a fixed-sized P-256 ECDSA signature of the given digest
impl<D> DigestSigner<D, Asn1Signature<NistP384>> for EcdsaSigner<NistP384> where
D: Digest<OutputSize = U48> + Default,
[src]
D: Digest<OutputSize = U48> + Default,
fn sign(&self, digest: D) -> Result<Asn1Signature<NistP384>, Error>
[src]
Compute an ASN.1 DER-encoded P-384 ECDSA signature of the given digest
impl<D> DigestSigner<D, FixedSignature<NistP384>> for EcdsaSigner<NistP384> where
D: Digest<OutputSize = U48> + Default,
[src]
D: Digest<OutputSize = U48> + Default,
Auto Trait Implementations
impl<C> Send for EcdsaSigner<C>
impl<C> Sync for EcdsaSigner<C>
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self