summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-02-20 01:07:28 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-02-20 01:07:28 +0700
commit5eac6ce539bdb80129d461488e4ebbc2984ff113 (patch)
treeebb3b227e647bf8aa881e960abfa69a39242d9d5
parentTLS backports from bc-java/tls (diff)
downloadBouncyCastle.NET-ed25519-5eac6ce539bdb80129d461488e4ebbc2984ff113.tar.xz
Fix typo
-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];