diff options
-rw-r--r-- | crypto/src/crypto/encodings/OaepEncoding.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/encodings/OaepEncoding.cs b/crypto/src/crypto/encodings/OaepEncoding.cs index 95814ef25..cb23b1710 100644 --- a/crypto/src/crypto/encodings/OaepEncoding.cs +++ b/crypto/src/crypto/encodings/OaepEncoding.cs @@ -273,7 +273,7 @@ namespace Org.BouncyCastle.Crypto.Encodings } } - if (start >= (block.Length - 1) || block[start] != 1) + if (start > (block.Length - 1) || block[start] != 1) { throw new InvalidCipherTextException("data start wrong " + start); } |