randomKey
suspend fun <A : AuthCapability<out K>, I : NonceTrait, K : KeyType> SymmetricEncryptionAlgorithm<A, I, K>.randomKey(): SymmetricKey<A, I, out K>(source)
Generates a fresh random key for this algorithm.
suspend fun <I : NonceTrait> SymmetricEncryptionAlgorithm<AuthCapability.Authenticated.WithDedicatedMac, I, KeyType.WithDedicatedMacKey>.randomKey( macKeyLength: BitLength): SymmetricKey.WithDedicatedMac<I>(source)
Generates a fresh random key for this algorithm. macKeyLength can be specified to override preferredMacKeyLength.