Beispiel #1
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));
        }
Beispiel #2
0
 public void sendcertificate(bcertificate c, user u)
 {
     btb.AppendText("\tRequest aproved. Sent certificate to user: "******" !\n");
     u.getcertificate(c);
 }