Skip to main content

Module certificate

Module certificate 

Source
Expand description

Certificate handling — ETSI TS 103 097 V2.2.1 (2026-03) profiles.

Provides Certificate (read-only wrapper) and OwnCertificate (includes the private-key identifier for signing).

Structs§

Certificate
Immutable certificate wrapper.
OwnCertificate
A certificate for which we hold the private key.

Functions§

compute_hashedid8
Compute the HashedId8 of a COER-encoded certificate.
decode_certificate
COER-decode an EtsiTs103097Certificate.
decode_ieee1609_dot2_data
encode_certificate
COER-encode an EtsiTs103097Certificate.
encode_ieee1609_dot2_data
COER-encode Ieee1609Dot2Data (signed message envelope).
encode_tbs_certificate
COER-encode ToBeSignedCertificate.
encode_tbs_data
COER-encode ToBeSignedData (the data that is actually signed).
signing_input
Input to the ECDSA signing and verification operations (IEEE Std 1609.2-2016, clause 5.3.1, adopted by ETSI TS 103 097 V2.2.1): Hash(Data input) || Hash(Signer identifier input), which ECDSA hashes again. data is the COER encoding of the ToBeSignedData or ToBeSignedCertificate; signer is the canonical COER encoding of the signer’s certificate, or empty for self-signed data. sha384 selects SHA-384 (384-bit curves) instead of SHA-256.
try_decode_ieee1609_dot2_data
COER-decode Ieee1609Dot2Data. COER-decode an Ieee1609Dot2Data, None when malformed (received data).