aead

open suspend fun aead(algorithm: AeadAlgorithm, key: ByteArray): Aead(source)

An AEAD for algorithm. AES-CCM is implemented in common code on top of aesBlockCipher because CryptoKit, CommonCrypto, WebCrypto and the stock JDK do not offer it. Backends override this for what their platform provides natively (AES-GCM, ChaCha20/Poly1305).