decrypt

open suspend fun decrypt(ciphertext: ByteArray): ByteArray(source)

Decrypts the given ciphertext and returns the resulting plaintext as a ByteArray.

Use decryptBlocking when calling from non-suspending code.


open suspend fun decrypt(ciphertext: ByteString): ByteString(source)

Decrypts the given ciphertext and returns the resulting plaintext as a ByteString.

Use decryptBlocking when calling from non-suspending code.