buildEncryptedResponse

suspend fun buildEncryptedResponse(credentialPresentation: CredentialPresentation.PresentationExchangePresentation, isoMdocWalletRequest: RequestParametersFrom.IsoMdocDcApi, keyMaterial: KeyMaterial, holder: Holder, signDeviceAuthDetached: SignCoseDetachedFun<ByteArray> = SignCoseDetached(keyMaterial, CoseHeaderNone(), CoseHeaderNone())): EncryptedResponse(source)

Creates the device response, applies device authentication, and HPKE-encrypts it for the verifier.