Beispiel #1
0
 public void getcertificate(bcertificate c)
 {
     utb.AppendText("\tCertificate received from: " + c.getbroker() + " !\n");
     cert = c;
     //set nr or paywords from certificate
     string[] ax = cert.getinfo().Split(':');
     pwnr = Convert.ToInt32(ax[1]);
 }
Beispiel #2
0
        private bool verifycert(bcertificate cert)
        {
            rsakey     bpbkey = cert.getbroker().bpbk;
            string     mess   = cert.getbroker().ToString() + "," + cert.getuser() + "," + cert.getaddress() + "," + cert.getukey().ToString() + "," + cert.getexp().ToString() + "," + cert.getinfo();
            BigInteger messh  = hashf.hash(mess);

            return(rsa.verifySig(messh, cert.getsigB(), bpbkey));
        }