pub fn verify_message(
request: &SNVerifyRequest,
backend: &EcdsaBackend,
cert_library: &mut CertificateLibrary,
) -> (SNVerifyConfirm, Vec<VerifyEvent>)Expand description
Stateless verification (ETSI TS 103 097 V2.2.1 clauses 5 and 7; IEEE Std 1609.2-2016 clauses 5.2.3.2.2 and 5.3.1). Checks, in order (the first failing one gives the report):
- decodable signed data with protocolVersion 3 (clause 5.1);
- signer identifier: certificate (exactly one) or digest; DENMs always use a certificate (clause 7.1.2);
- the signer certificate is a known, valid authorization ticket;
- headerInfo: generationTime present, p2pcdLearningRequest and missingCrlIdentifier absent (clause 5.2); CAM (clause 7.1.1) and DENM (clause 7.1.2) profiles;
- the PSID is in the appPermissions of the AT (the SSP is returned);
- the generationTime lies in the validity period of the AT chain;
- the generationLocation, when present, lies in the region of the chain;
- the signature, over Hash(Hash(tbsData) || Hash(AT)), with an algorithm matching the verification key.
Mirrors flexstack/security/verify_service.py.