Home | History | Annotate | Download | only in securegcm

Lines Matching refs:Ed25519

23 import com.google.security.cryptauth.lib.securegcm.Ed25519.Ed25519Exception;
36 * Exchange Protocol) on top of the Ed25519 curve.
38 * Ed25519: http://ed25519.cr.yp.to/
122 // Source of ed25519 is here: http://ed25519.cr.yp.to/python/ed25519.py
123 // import ed25519
127 // seed1 = 'D2D Ed25519 point generation seed (M)'
128 // seed2 = 'D2D Ed25519 point generation seed (N)'
134 // P = ed25519.scalarmult(ed25519.B, int(y, 16) % ed25519.q)
135 // if (not ed25519.isoncurve(P)):
197 // Base point B as per ed25519.cr.yp.to
281 pointX = Ed25519.scalarMultiplyExtendedPoint(B, valueX);
353 Ed25519.scalarMultiplyExtendedPoint(isInitiator ? KM : KN, passwordHash);
354 ourCommitmentPointExtended = Ed25519.addExtendedPoints(ourCommitmentPointExtended, pointX);
355 ourCommitmentPointAffine = Ed25519.toAffine(ourCommitmentPointExtended);
380 BigInteger[] kNMP = Ed25519.scalarMultiplyExtendedPoint(isInitiator ? KN : KM, passwordHash);
384 Ed25519.subtractExtendedPoints(theirCommitmentPointExtended, kNMP);
386 BigInteger[] sharedKeyPoint = Ed25519.scalarMultiplyExtendedPoint(theirPublicKey, valueX);
387 sharedKey = hash(pointToByteArray(Ed25519.toAffine(sharedKeyPoint)));
582 Ed25519.validateAffinePoint(theirCommitmentPointAffine);
583 theirCommitmentPointExtended = Ed25519.toExtended(theirCommitmentPointAffine);