Пример #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());
 }