diff options
Diffstat (limited to 'crypto/src/crypto/modes/GOFBBlockCipher.cs')
-rw-r--r-- | crypto/src/crypto/modes/GOFBBlockCipher.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/src/crypto/modes/GOFBBlockCipher.cs b/crypto/src/crypto/modes/GOFBBlockCipher.cs index 7db843115..a91562549 100644 --- a/crypto/src/crypto/modes/GOFBBlockCipher.cs +++ b/crypto/src/crypto/modes/GOFBBlockCipher.cs @@ -98,7 +98,11 @@ namespace Org.BouncyCastle.Crypto.Modes Reset(); - cipher.Init(true, parameters); + // if it's null, key is to be reused. + if (parameters != null) + { + cipher.Init(true, parameters); + } } /** |