randomKey

suspend fun <A : AuthCapability<out K>, I : NonceTrait, K : KeyType> SymmetricEncryptionAlgorithm<A, I, K>.randomKey(random: CryptoRand): SymmetricKey<A, I, out K>(source)

Generates a fresh random key for this algorithm.


Generates a fresh random key for this algorithm. macKeyLength can be specified to override preferredMacKeyLength.