setDeviceNamespacesSignature
suspend fun setDeviceNamespacesSignature(dataElements: NameSpacedData, secureArea: SecureArea, keyAlias: String, unlockReason: UnlockReason): DocumentGenerator
Sets device-signed data elements to return.
This variant produces an EC signature as per ISO/IEC 18013-5:2021 section 9.1.3.6 mdoc ECDSA / EdDSA 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.
signatureAlgorithm
the signature algorithm to use.
Throws
if the authentication key is locked.