Home | History | Annotate | Download | only in signature

Lines Matching refs:pk

46 	public static byte[] encodeSSHDSAPublicKey(DSAPublicKey pk) throws IOException
51 tw.writeMPInt(pk.getP());
52 tw.writeMPInt(pk.getQ());
53 tw.writeMPInt(pk.getG());
54 tw.writeMPInt(pk.getY());
185 public static DSASignature generateSignature(byte[] message, DSAPrivateKey pk, SecureRandom rnd)
194 int qBitLength = pk.getQ().bitLength();
200 while (k.compareTo(pk.getQ()) >= 0);
202 BigInteger r = pk.getG().modPow(k, pk.getP()).mod(pk.getQ());
204 k = k.modInverse(pk.getQ()).multiply(m.add((pk).getX().multiply(r)));
206 BigInteger s = k.mod(pk.getQ());