setDeviceNamespacesMac
suspend fun setDeviceNamespacesMac(dataElements: NameSpacedData, secureArea: SecureArea, keyAlias: String, keyUnlockData: KeyUnlockData?, eReaderKey: EcPublicKey): DocumentGenerator
Sets device-signed data elements to return.
This variant produces a MAC as per ISO/IEC 18013-5:2021 section 9.1.3.5 mdoc MAC Authentication.
Return
the generator.
Parameters
dataElements
the data elements to return in DeviceSigned
.
secureArea
the SecureArea for the authentication key to sign with.
keyAlias
the alias for the authentication key to sign with.
keyUnlockData
unlock data for the authentication key, or null
.
eReaderKey
the ephemeral public key used by the remote reader.
Throws
if the authentication key is locked.