protected byte[] doKeyGeneration(int keyBytes) {
        byte[] keyData = new byte[keyBytes];
        secureRandom.nextBytes(keyData);
        return keyData;
    }
An implementation of {@link javax.crypto.KeyGenerator} suitable for use with other Conscrypt
algorithms.
common/src/main/java/org/conscrypt/KeyGeneratorImpl.java