/// <summary> /// 通过一个pem文件创建RSA,pem为公钥或私钥,出错抛异常 /// </summary> public RSA(string pem, bool noop) { _init(); rsa = RSA_PEM.FromPEM(pem); }
/// <summary> /// 设定服务器器的公钥 /// </summary> public void SetServerPublicKey(string publickey) { this.ServerPublicKey = publickey; this.ServerRSA = RSA_PEM.FromPEM(this.ServerPublicKey); }