diff options
Diffstat (limited to 'crypto/src/asn1/cms/PasswordRecipientInfo.cs')
-rw-r--r-- | crypto/src/asn1/cms/PasswordRecipientInfo.cs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/crypto/src/asn1/cms/PasswordRecipientInfo.cs b/crypto/src/asn1/cms/PasswordRecipientInfo.cs index 596dd9537..9fb639bf3 100644 --- a/crypto/src/asn1/cms/PasswordRecipientInfo.cs +++ b/crypto/src/asn1/cms/PasswordRecipientInfo.cs @@ -33,21 +33,20 @@ namespace Org.BouncyCastle.Asn1.Cms this.encryptedKey = encryptedKey; } - public PasswordRecipientInfo( - Asn1Sequence seq) + public PasswordRecipientInfo(Asn1Sequence seq) { - version = (DerInteger) seq[0]; + version = (DerInteger)seq[0]; - if (seq[1] is Asn1TaggedObject) + if (seq[1] is Asn1TaggedObject taggedObject) { - keyDerivationAlgorithm = AlgorithmIdentifier.GetInstance((Asn1TaggedObject) seq[1], false); + keyDerivationAlgorithm = AlgorithmIdentifier.GetInstance(taggedObject, false); keyEncryptionAlgorithm = AlgorithmIdentifier.GetInstance(seq[2]); - encryptedKey = (Asn1OctetString) seq[3]; + encryptedKey = (Asn1OctetString)seq[3]; } else { keyEncryptionAlgorithm = AlgorithmIdentifier.GetInstance(seq[1]); - encryptedKey = (Asn1OctetString) seq[2]; + encryptedKey = (Asn1OctetString)seq[2]; } } |