cha Cha20Poly1305Ietf Encrypt
actual fun chaCha20Poly1305IetfEncrypt(message: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
expect fun chaCha20Poly1305IetfEncrypt(message: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
Encrypt the message and return encrypted data and tag using ChaChaPoly1305-IETF (96 bit nonce)
Return
encrypted data and tag (in that order)
Parameters
message
message to encrypt
associated Data
associated data the won't be encrypted, but will be authenticated
nonce
a unique nonce
key
secret key
actual fun chaCha20Poly1305IetfEncrypt(message: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun chaCha20Poly1305IetfEncrypt(message: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray