getDeviceNameSpaces
Returns a CBOR structure containing the retrieved device-signed data.
This structure - along with the session transcript - may be cryptographically authenticated to prove to the reader that the data is from a trusted credential and getDeviceMac can be used to get a MAC.
The CBOR structure which is cryptographically authenticated is the DeviceAuthenticationBytes
structure (See section 9.1.3.4 of ISO/IEC 18013-5:2021 for details) according to the following CDDL schema:
DeviceAuthentication = [
"DeviceAuthentication",
SessionTranscript,
DocType,
DeviceNameSpacesBytes
]
DocType = tstr
SessionTranscript = any
DeviceNameSpacesBytes = #6.24(bstr .cbor DeviceNameSpaces)
DeviceAuthenticationBytes = #6.24(bstr .cbor DeviceAuthentication)
Content copied to clipboard
where
DeviceNameSpaces = {
* NameSpace => DeviceSignedItems
}
DeviceSignedItems = {
+ DataItemName => DataItemValue
}
NameSpace = tstr
DataItemName = tstr
DataItemValue = any
Content copied to clipboard
The returned data is the binary encoding of the DeviceNameSpaces
structure as defined above.
Return
The bytes of the DeviceNameSpaces
CBOR structure.