BigInteger q = getMPInt();
BigInteger g = getMPInt();
BigInteger y = getMPInt();
BigInteger x = getMPInt();
KeyFactory keyFactory = SecurityUtils.getKeyFactory("DSA");
pub = keyFactory.generatePublic(new DSAPublicKeySpec(y, p, q, g));
prv = keyFactory.generatePrivate(new DSAPrivateKeySpec(x, p, q, g));
} else if (KeyPairProvider.ECDSA_SHA2_NISTP256.equals(keyAlg)) {
return extractEC("nistp256", ECCurves.EllipticCurves.nistp256);
} else if (KeyPairProvider.ECDSA_SHA2_NISTP384.equals(keyAlg)) {
return extractEC("nistp384", ECCurves.EllipticCurves.nistp384);