Code example for BigInteger

Methods: multiply

0
        } 
        while (k.compareTo(params.getQ()) >= 0);
 
        BigInteger  r = params.getG().modPow(k, params.getP()).mod(params.getQ());
 
        k = k.modInverse(params.getQ()).multiply(
                    m.add(((DSAPrivateKeyParameters)key).getX().multiply(r)));
 
        BigInteger  s = k.mod(params.getQ());
 
        BigInteger[]  res = new BigInteger[2];
 
        res[0] = r;
        res[1] = s;
 
        return res;
    } 
 
    /** 
     * return true if the value r and s represent a DSA signature for 
Contextual code suggestions in your IDE  Get Codota for Java