modules/woz_aliro_stack/src/protocol/access_document.h
openaliro/openaliro
Module
access_document.h
Overview
@file access_document.h Aliro access document parsed from CBOR and COSE_Sign1 envelope: device public key, issued data element, issuer-signed item, signature, issuer key ID and certificate, validity period, and optional iteration count.
used by access_document.c session.cpp
API
Cstruct woz_aliro_access_document
modules/woz_aliro_stack/src/protocol/access_document.h:23
Parsed Aliro access document with all fields needed for signature verification: device public key, the issued data element and its issuer-signed item (CBOR), cryptographic envelope (COSE_Sign1 protected/payload/signature), issuer key ID and certificate, validity timestamps, and validity iteration if present.
Fint woz_aliro_parse_access_document(const uint8_t *device_response, size_t device_response_length, const uint8_t *requested_element, size_t requested_element_length, struct woz_aliro_access_document *result)
modules/woz_aliro_stack/src/protocol/access_document.h:49