Struct openssl::ecdsa::EcdsaSig [−][src]
pub struct EcdsaSig(_);
Expand description
A low level interface to ECDSA
OpenSSL documentation at ECDSA_sign
Implementations
pub fn sign<T>(data: &[u8], eckey: &EcKeyRef<T>) -> Result<EcdsaSig, ErrorStack> where
T: HasPrivate,
pub fn sign<T>(data: &[u8], eckey: &EcKeyRef<T>) -> Result<EcdsaSig, ErrorStack> where
T: HasPrivate,
Computes a digital signature of the hash value data
using the private EC key eckey.
OpenSSL documentation at ECDSA_do_sign
Returns a new EcdsaSig
by setting the r
and s
values associated with a
ECDSA signature.
OpenSSL documentation at ECDSA_SIG_set0
Decodes a DER-encoded ECDSA signature.
This corresponds to d2i_ECDSA_SIG
.
Methods from Deref<Target = EcdsaSigRef>
Serializes the ECDSA signature into a DER-encoded ECDSASignature structure.
This corresponds to i2d_ECDSA_SIG
.
Verifies if the signature is a valid ECDSA signature using the given public key.
OpenSSL documentation at ECDSA_do_verify
Returns internal component: r
of an EcdsaSig
. (See X9.62 or FIPS 186-2)
OpenSSL documentation at ECDSA_SIG_get0
Returns internal components: s
of an EcdsaSig
. (See X9.62 or FIPS 186-2)
OpenSSL documentation at ECDSA_SIG_get0
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = EcdsaSigRef
type Target = EcdsaSigRef
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
type Ref = EcdsaSigRef
type Ref = EcdsaSigRef
The type representing a reference to this type.
Constructs an instance of this type from its raw type.