示例#1
0
 /// <summary>
 /// Add recipient keys
 /// </summary>
 public void AddKey(PublicKey key)
 {
     this.recipientKeys.Add (key);
 }
示例#2
0
 public override PublicKey GetPublic(string name)
 {
     string keyPath = Path.Combine (this.path, name + publicSuffix);
     PublicKey key = new PublicKey (File.ReadAllText (keyPath, Encoding.UTF8));
     key.Name = name;
     return key;
 }
示例#3
0
 public RecipientID(PublicKey recipient)
 {
     keyBuffer = Encoding.ASCII.GetBytes(recipient.ToXml());
 }