decrypt

suspend fun decrypt(recipientPrivateKey: AsymmetricKey, encryptionParameters: EncryptionParameters, sessionTranscript: DataItem, atTime: Instant = Clock.System.now()): EncryptedDocumentsPlaintext

Decrypts the encrypted documents.

After decryption, the same verification checks as in DeviceResponse.verify are performed to verify the integrity of the returned documents.

Return

a EncryptedDocumentsPlaintext.

Parameters

recipientPrivateKey

the private key used for decryption.

encryptionParameters
sessionTranscript

the session transcript.

atTime

the point in time for validating the whether returned documents are valid.