コード例 #1
0
 public ACrypt(String Description,
               GetMeterDelegate GetMeter,
               CheckMeterPublicKeySignatureDelegate CheckMeterPublicKeySignature)
 {
     this.Description = Description;
     this.GetMeter    = GetMeter;
     this.CheckMeterPublicKeySignature = CheckMeterPublicKeySignature;
 }
コード例 #2
0
        public EMHCrypt01(GetMeterDelegate GetMeter,
                          CheckMeterPublicKeySignatureDelegate CheckMeterPublicKeySignature)

            : base("ECC secp192r1",
                   GetMeter,
                   CheckMeterPublicKeySignature)

        {
            this.CurveName = "P-192";
            this.ECP       = ECNamedCurveTable.GetByName(CurveName);
            this.ECSpec    = new ECDomainParameters(ECP.Curve, ECP.G, ECP.N, ECP.H, ECP.GetSeed());
            this.C         = (FpCurve)ECSpec.Curve;
        }