Home | History | Annotate | Download | only in agreement

Lines Matching defs:key

20  * party's private key and another party's public key, where both have
23 * primitive can be invoked by a scheme to derive a shared secret key;
31 private ECPrivateKeyParameters key;
34 CipherParameters key)
36 this.key = (ECPrivateKeyParameters)key;
41 return (key.getParameters().getCurve().getFieldSize() + 7) / 8;
49 ECCurve myCurve = key.getParameters().getCurve();
51 throw new IllegalStateException("Infinity is not a valid public key for ECDH");
57 throw new IllegalStateException("The peer public key must be on the curve for ECDH");
59 // Explicitly construct a public key using the private key's curve.
63 if (!pub.getParameters().equals(key.getParameters()))
65 throw new IllegalStateException("ECDH public key has wrong domain parameters");
67 ECPoint P = pubPoint.multiply(key.getD()).normalize();