generateKey

fun generateKey(@Nullable size: Int? = defaultKeySize): ByteArray

Generate secret key based on optional key size.

Else, use the default from KeyGenerator.