Example #1
0
 public static EncryptedKey GetInstance(object o)
 {
     if (o is EncryptedKey)
     {
         return((EncryptedKey)o);
     }
     else if (o is Asn1TaggedObject)
     {
         return(new EncryptedKey(EnvelopedData.GetInstance((Asn1TaggedObject)o, false)));
     }
     else if (o is EncryptedValue)
     {
         return(new EncryptedKey((EncryptedValue)o));
     }
     else
     {
         return(new EncryptedKey(EncryptedValue.GetInstance(o)));
     }
 }
Example #2
0
 public EncryptedKey(EncryptedValue encryptedValue)
 {
     this.encryptedValue = encryptedValue;
 }