Generates a random key for use in HMAC-SHA256 computation.
A ByteArray containing the generated key.
The size of the key in bytes (default: KEY_SIZE).