pub trait AssociatedOid {
    const OID: ObjectIdentifier;
}
Expand description

A trait which associates an OID with a type.

Required Associated Constants§

const OID: ObjectIdentifier

The OID associated with this type.

Implementations on Foreign Types§

source§

impl AssociatedOid for Secp256k1

source§

const OID: ObjectIdentifier = pkcs8::ObjectIdentifier::new_unwrap("1.3.132.0.10")

§

impl<C> AssociatedOid for Signature<C>where C: DigestPrimitive, <C as DigestPrimitive>::Digest: AssociatedOid,

ECDSA ObjectIdentifier which identifies the digest used by default with the Signer and Verifier traits.

To support non-default digest algorithms, use the [SignatureWithOid] type instead.

§

const OID: ObjectIdentifier = match ecdsa_oid_for_digest(<C::Digest>::OID) { Some(oid) => oid, None => { ::core::panicking::panic_fmt(<#[lang = "format_arguments"]>::new_const(&["no RFC5758 ECDSA OID defined for DigestPrimitive::Digest"])); } }

Implementors§