public static DSAGroup create(SimpleFieldSet fs) throws IllegalBase64Exception, FSParseException {
String myP = fs.get("p");
String myQ = fs.get("q");
String myG = fs.get("g");
if(myP == null || myQ == null || myG == null) throw new FSParseException("The given SFS doesn't contain required fields!");
BigInteger p = new NativeBigInteger(1, Base64.decode(myP));
BigInteger q = new NativeBigInteger(1, Base64.decode(myQ));
BigInteger g = new NativeBigInteger(1, Base64.decode(myG));
DSAGroup dg = new DSAGroup(p, q, g);
if(dg.equals(Global.DSAgroupBigA)) return Global.DSAgroupBigA;