encryptWithIv

Encrypts the given plaintext using the specified iv and returns the resulting ciphertext as a ByteArray.

Use encryptWithIvBlocking when calling from non-suspending code.


Encrypts the given plaintext using the specified iv and returns the resulting ciphertext as a ByteString.

Use encryptWithIvBlocking when calling from non-suspending code.