encrypt

fun encrypt(plaintext: ByteArray, aad: ByteArray): ByteArray

Encrypts a message to the receiver.

Return

the encrypted message, including the authentication tag at the end.

Parameters

plaintext

the message to encrypt.

aad

additional authenticated data.