public void getrequest(urequest ureq, user u) { btb.AppendText("Received request from user: "******" !\n"); DateTime exp = DateTime.Now; exp = exp.AddMonths(1); exp = exp.AddDays(1); //string info = "Certificate generated for user: "******" on " + DateTime.Now; string info = "Nr. of paywords:1100"; string sigstr = this.ToString() + "," + ureq.getname() + "," + ureq.getmail() + "," + ureq.getkey().ToString() + "," + exp.ToString() + "," + info; BigInteger sigh = hashf.hash(sigstr); BigInteger sigB = rsa.createSig(sigh, bpvk); bcertificate cert = new bcertificate(this, ureq.getname(), ureq.getmail(), ureq.getkey(), exp, info, sigB); clist.Add(cert); sendcertificate(cert, u); }
public void sendrequest(broker b) { urequest ureq = new urequest(name, mail, card, upbk); utb.AppendText("Sent certificate request to broker:" + b + " !\n"); b.getrequest(ureq, this); }