Aead

interface Aead(source)

AEAD with the COSE convention: ciphertext output is ciphertext || tag.

Inheritors

Properties

Link copied to clipboard
abstract val nonceLength: Int
Link copied to clipboard
abstract val tagLength: Int

Functions

Link copied to clipboard
abstract suspend fun decrypt(nonce: ByteArray, ciphertext: ByteArray, associatedData: ByteArray): ByteArray
Link copied to clipboard
abstract suspend fun encrypt(nonce: ByteArray, plaintext: ByteArray, associatedData: ByteArray): ByteArray