encryptBlocking

open override fun encryptBlocking(plaintext: ByteArray): ByteArray(source)

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

Use encrypt when calling from suspending code.


open override fun encryptBlocking(plaintext: ByteString): ByteString(source)

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

Use encrypt when calling from suspending code.


abstract fun encryptBlocking(plaintext: ByteArray, associatedData: ByteArray?): ByteArray(source)

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

Use encrypt when calling from suspending code.


open fun encryptBlocking(plaintext: ByteString, associatedData: ByteString?): ByteString(source)

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

Use encrypt when calling from suspending code.