Skip to main content

Module digest

Module digest 

Source
Expand description

Which digest an ASN.1 AlgorithmIdentifier names, resolved once for OCSP, CMS and every other ASN.1 consumer.

The identifier is matched exactly. Parameters are read under the encoding of the document they came from: absent and NULL both mean none, NULL is recognised under BER, and any other value of a known identifier is malformed. An identifier this table does not know is unsupported. Execution then goes through the provider’s Digest implementation.

Enums§

Algorithm
A digest algorithm named by a standard ASN.1 identifier.

Traits§

AsnDigest
A Digest provider’s identities for standard ASN.1 digest algorithms.

Functions§

algorithm
Reads which standard digest identifier names.
resolve
Resolves identifier to digest’s own identity: algorithm, then the provider’s AsnDigest::identity.
supported
The provider’s identity for an algorithm a schema imposes without writing an identifier, such as SHA-1 for an OCSP ResponderID byKey.