summary refs log tree commit diff
path: root/crypto/src/crypto/modes/GOFBBlockCipher.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crypto/modes/GOFBBlockCipher.cs')
-rw-r--r--crypto/src/crypto/modes/GOFBBlockCipher.cs6
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); + } } /**