summary refs log tree commit diff
path: root/crypto/src/asn1/cms/EncryptedContentInfoParser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/cms/EncryptedContentInfoParser.cs')
-rw-r--r--crypto/src/asn1/cms/EncryptedContentInfoParser.cs30
1 files changed, 11 insertions, 19 deletions
diff --git a/crypto/src/asn1/cms/EncryptedContentInfoParser.cs b/crypto/src/asn1/cms/EncryptedContentInfoParser.cs
index 09434d7ef..42f72164a 100644
--- a/crypto/src/asn1/cms/EncryptedContentInfoParser.cs
+++ b/crypto/src/asn1/cms/EncryptedContentInfoParser.cs
@@ -15,32 +15,24 @@ namespace Org.BouncyCastle.Asn1.Cms
 	*/
 	public class EncryptedContentInfoParser
 	{
-		private DerObjectIdentifier		_contentType;
-		private AlgorithmIdentifier		_contentEncryptionAlgorithm;
-		private Asn1TaggedObjectParser	_encryptedContent;
+		private readonly DerObjectIdentifier m_contentType;
+		private readonly AlgorithmIdentifier m_contentEncryptionAlgorithm;
+		private readonly Asn1TaggedObjectParser	m_encryptedContent;
 
-		public EncryptedContentInfoParser(
-			Asn1SequenceParser seq)
+		public EncryptedContentInfoParser(Asn1SequenceParser seq)
 		{
-			_contentType = (DerObjectIdentifier)seq.ReadObject();
-			_contentEncryptionAlgorithm = AlgorithmIdentifier.GetInstance(seq.ReadObject().ToAsn1Object());
-			_encryptedContent = (Asn1TaggedObjectParser)seq.ReadObject();
+			m_contentType = (DerObjectIdentifier)seq.ReadObject();
+			m_contentEncryptionAlgorithm = AlgorithmIdentifier.GetInstance(seq.ReadObject().ToAsn1Object());
+			m_encryptedContent = (Asn1TaggedObjectParser)seq.ReadObject();
 		}
 
-		public DerObjectIdentifier ContentType
-		{
-			get { return _contentType; }
-		}
+		public DerObjectIdentifier ContentType => m_contentType;
 
-		public AlgorithmIdentifier ContentEncryptionAlgorithm
-		{
-			get { return _contentEncryptionAlgorithm; }
-		}
+		public AlgorithmIdentifier ContentEncryptionAlgorithm => m_contentEncryptionAlgorithm;
 
-		public IAsn1Convertible GetEncryptedContent(
-			int tag)
+		public IAsn1Convertible GetEncryptedContent(int tag)
 		{
-			return Asn1Utilities.ParseContextBaseUniversal(_encryptedContent, 0, false, tag);
+			return Asn1Utilities.ParseContextBaseUniversal(m_encryptedContent, 0, false, tag);
 		}
 	}
 }