summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-02-02 11:56:16 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-02-02 11:56:16 +0700
commit362bdfcfe97b7fb2fa78990a8f937de1661e9c89 (patch)
tree7a9e532954c91c6fc81538139525ed82698039b8 /crypto/src
parentAdd custom curve for secp521r1 (P-521) (diff)
downloadBouncyCastle.NET-ed25519-362bdfcfe97b7fb2fa78990a8f937de1661e9c89.tar.xz
Bring OCB test vectors up-to-date with draft v06
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/crypto/modes/OCBBlockCipher.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/src/crypto/modes/OCBBlockCipher.cs b/crypto/src/crypto/modes/OCBBlockCipher.cs
index 9f0e0f6bb..38669e22f 100644
--- a/crypto/src/crypto/modes/OCBBlockCipher.cs
+++ b/crypto/src/crypto/modes/OCBBlockCipher.cs
@@ -8,7 +8,7 @@ namespace Org.BouncyCastle.Crypto.Modes
 {
     /**
      * An implementation of the "work in progress" Internet-Draft <a
-     * href="http://tools.ietf.org/html/draft-irtf-cfrg-ocb-05">The OCB Authenticated-Encryption
+     * href="http://tools.ietf.org/html/draft-irtf-cfrg-ocb-06">The OCB Authenticated-Encryption
      * Algorithm</a>, licensed per:
      * 
      * <blockquote><p><a href="http://www.cs.ucdavis.edu/~rogaway/ocb/license1.pdf">License for
@@ -150,6 +150,10 @@ namespace Org.BouncyCastle.Crypto.Modes
             {
                 // TODO
             }
+            else
+            {
+                KtopInput = null;
+            }
 
             // hashCipher always used in forward mode
             hashCipher.Init(true, keyParameter);