@Override
    public KeyPair generateKeyPair() {
        byte[] privateKeyBytes = new byte[OpenSslSlhDsaPrivateKey.PRIVATE_KEY_SIZE_BYTES];
        byte[] publicKeyBytes = new byte[OpenSslSlhDsaPublicKey.PUBLIC_KEY_SIZE_BYTES];
        NativeCrypto.SLHDSA_SHA2_128S_generate_key(publicKeyBytes, privateKeyBytes);

        return new KeyPair(new OpenSslSlhDsaPublicKey(publicKeyBytes),
                new OpenSslSlhDsaPrivateKey(privateKeyBytes));
    }
An implementation of {@link KeyPairGenerator} for SLH-DSA keys which uses BoringSSL to perform
all the operations. It only supports SLHDSA_SHA2_128S.
common/src/main/java/org/conscrypt/OpenSslSlhDsaKeyPairGenerator.java