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))); } }
public EncryptedKey(EncryptedValue encryptedValue) { this.encryptedValue = encryptedValue; }