summary refs log tree commit diff
path: root/crypto/src/openpgp
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/openpgp')
-rw-r--r--crypto/src/openpgp/PgpPublicKeyEncryptedData.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/openpgp/PgpPublicKeyEncryptedData.cs b/crypto/src/openpgp/PgpPublicKeyEncryptedData.cs
index 78d4d575c..04fe3ad37 100644
--- a/crypto/src/openpgp/PgpPublicKeyEncryptedData.cs
+++ b/crypto/src/openpgp/PgpPublicKeyEncryptedData.cs
@@ -204,7 +204,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp
                 Array.Copy(enc, 2, pEnc, 0, pLen);
 
                 int keyLen = enc[pLen + 2];
-                if ((2 + pLen + 1 + keyLen) > enc.length)
+                if ((2 + pLen + 1 + keyLen) > enc.Length)
                     throw new PgpException("encoded length out of range");
 
                 byte[] keyEnc = new byte[keyLen];