decryptBlocking

open override fun decryptBlocking(ciphertext: ByteArray): ByteArray(source)

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

Throws an exception if the authentication tag verification fails, indicating the ciphertext has been tampered with.

Use decrypt when calling from suspending code.


open override fun decryptBlocking(ciphertext: ByteString): ByteString(source)

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

Throws an exception if the authentication tag verification fails, indicating the ciphertext has been tampered with.

Use decrypt when calling from suspending code.


abstract fun decryptBlocking(ciphertext: ByteArray, associatedData: ByteArray?): ByteArray(source)

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

Throws an exception if the authentication tag verification fails, indicating the ciphertext or associated data has been tampered with.

Use decrypt when calling from suspending code.


open fun decryptBlocking(ciphertext: ByteString, associatedData: ByteString?): ByteString(source)

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

Throws an exception if the authentication tag verification fails, indicating the ciphertext or associated data has been tampered with.

Use decrypt when calling from suspending code.