summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2021-03-19 19:42:55 +1100
committerDavid Hook <dgh@cryptoworkshop.com>2021-03-19 19:42:55 +1100
commit3e4bc7cc70cf8d0d495b91f5038a2dc1445b8237 (patch)
tree3e168c74ece4e7525ff01dd187854ddae32e8633
parentfirst cut FPE, TupleHash, ParallelHash, and GCM-SIV (diff)
downloadBouncyCastle.NET-ed25519-3e4bc7cc70cf8d0d495b91f5038a2dc1445b8237.tar.xz
updates for working tests for FPE, TupleHash, ParallelHash
-rw-r--r--crypto/src/crypto/modes/GcmSivBlockCipher.cs1
-rw-r--r--crypto/src/crypto/util/BasicAlphabetMapper.cs2
2 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/crypto/modes/GcmSivBlockCipher.cs b/crypto/src/crypto/modes/GcmSivBlockCipher.cs
index a45e5ec06..e54f1c201 100644
--- a/crypto/src/crypto/modes/GcmSivBlockCipher.cs
+++ b/crypto/src/crypto/modes/GcmSivBlockCipher.cs
@@ -4,6 +4,7 @@ using System.Diagnostics;
 using Org.BouncyCastle.Utilities.IO;
 using Org.BouncyCastle.Crypto.Macs;
 using Org.BouncyCastle.Crypto.Engines;
+using Org.BouncyCastle.Crypto.Modes;
 using Org.BouncyCastle.Crypto.Modes.Gcm;
 using Org.BouncyCastle.Crypto.Parameters;
 using Org.BouncyCastle.Crypto.Utilities;
diff --git a/crypto/src/crypto/util/BasicAlphabetMapper.cs b/crypto/src/crypto/util/BasicAlphabetMapper.cs
index bd0411e30..ac4011a94 100644
--- a/crypto/src/crypto/util/BasicAlphabetMapper.cs
+++ b/crypto/src/crypto/util/BasicAlphabetMapper.cs
@@ -55,7 +55,7 @@ namespace Org.BouncyCastle.Crypto.Utilities
             outBuf = new byte[input.Length];
             for (int i = 0; i != input.Length; i++)
             {
-                outBuf[i] = (byte)indexMap[input[i]];
+                outBuf[i] = (byte)(int)indexMap[input[i]];
             }
         }
         else