Lines Matching refs:modulus
46 * called the shared secret. It has the same length as the modulus, e.g. 512
59 * . if we are client, call DHCrypt(modulus, base, random). This
80 // group parameters (prime modulus and generator)
81 private BigInteger modulus; // P (aka N)
107 modulus = spec.getP();
118 * @param modulus the Diffie-Hellman modulus P
121 DHCrypt(BigInteger modulus, BigInteger base, SecureRandom random) {
122 this.modulus = modulus;
126 DHParameterSpec params = new DHParameterSpec(modulus, base);
157 /** Returns the Diffie-Hellman modulus. */
159 return modulus;
188 * the same size as the Diffie-Hellman modulus.
195 new DHPublicKeySpec(peerPublicValue, modulus, base);