Companion

object Companion

Functions

Link copied to clipboard
fun calculateMac(secret: ByteArray, message: ByteArray): ByteArray
Link copied to clipboard
fun decrypt(secret: ByteArray, ciphertext: CipherText, additionalData: ByteArray = byteArrayOf()): ByteArray?
Link copied to clipboard
fun deriveKey(secret: ByteArray, salt: ByteArray, info: ByteArray): ByteArray
Link copied to clipboard
fun encrypt(secret: ByteArray, message: ByteArray, additionalData: ByteArray = byteArrayOf()): CipherText?
Link copied to clipboard
fun verifyHmacSignature(key: ByteArray, signature: ByteArray, message: ByteArray): Boolean