diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-02-20 01:07:28 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-02-20 01:07:28 +0700 |
commit | 5eac6ce539bdb80129d461488e4ebbc2984ff113 (patch) | |
tree | ebb3b227e647bf8aa881e960abfa69a39242d9d5 | |
parent | TLS backports from bc-java/tls (diff) | |
download | BouncyCastle.NET-ed25519-5eac6ce539bdb80129d461488e4ebbc2984ff113.tar.xz |
Fix typo
-rw-r--r-- | crypto/src/openpgp/PgpPublicKeyEncryptedData.cs | 2 |
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]; |