@Test
    public void generateKeyPairWithWrongKeySize_throws() throws Exception {
        KeyPairGenerator keyGen = KeyPairGenerator.getInstance("Ed25519", conscryptProvider);
        assertThrows(IllegalArgumentException.class, () -> keyGen.initialize(256));
    }
Implements a KeySpec that contains the raw bytes of a key.
common/src/test/java/org/conscrypt/EdDsaTest.java