Expand description
This module provides functions for working with COSE signatures.
Structs§
- Certificate
Info - Summary information about an X.509 signing certificate and the validation performed on it.
- Certificate
Trust Policy - A
CertificateTrustPolicy
is configured with information about trust anchors, privately-accepted end-entity certificates, and allowed EKUs. It can be used to evaluate a signing certificate against those policies. - Invalid
Certificate Error - This error can occur when adding certificates to a
CertificateTrustPolicy
.
Enums§
- Certificate
Profile Error - Describes errors that can be identified when checking a certificate’s profile.
- Certificate
Trust Error - Describes errors that can be identified when evaluating a certificate’s trust.
- Cose
Error - Describes errors that can occur when processing or generating COSE signatures.
- Ocsp
Fetch Policy - Policy for fetching OCSP responses.
- Time
Stamp Storage - The
TimeStampStorage
parameter defines how RFC 3161 time stamps are to be stored in a COSE signature. - Verifier
- A
Verifier
reads a COSE signature and reports on its validity.
Functions§
- cert_
chain_ from_ sign1 - TO DO: Documentation for this function.
- check_
certificate_ profile - Verify that an X.509 certificate meets the requirements stated in §14.5.1, Certificate Profiles.
- check_
ocsp_ status - Given a COSE signature, extract the OCSP data and validate the status of that report.
- check_
ocsp_ status_ async - Given a COSE signature, extract the OCSP data and validate the status of that report.
- parse_
cose_ sign1 - Parse a byte slice as a COSE Sign1 data structure.
- sign
- Given an arbitrary block of data and a
RawSigner
orAsyncRawSigner
instance, generate a COSE signature for that block of data. - sign_
async - Given an arbitrary block of data and a
RawSigner
orAsyncRawSigner
instance, generate a COSE signature for that block of data. - signing_
alg_ from_ sign1 - TO DO: Documentation for this function.
- signing_
time_ from_ sign1 - Return the time of signing for this signature.
- signing_
time_ from_ sign1_ async - Return the time of signing for this signature.