public PheCrypto() { this.curveParams = NistNamedCurves.GetByName("P-256"); this.curve = (FpCurve)curveParams.Curve; this.rng = new SecureRandom(); this.tupleHash = new TupleHash(); this.swu = new Swu(curve.Q, curve.B.ToBigInteger()); }
public PheCrypto() { this.curveParams = NistNamedCurves.GetByName("P-256"); this.Curve = (FpCurve)this.curveParams.Curve; this.CurveG = this.curveParams.G.Multiply(BigInteger.ValueOf(1)); this.Rng = new PheRandomGenerator(); this.sha512 = new SHA512Helper(); this.swu = new Swu(this.Curve.Q, this.Curve.B.ToBigInteger()); }