summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-04 09:58:47 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-04 09:58:47 +0700
commit2f71168faf6550f4e9d4f97ce5393f245223ee0b (patch)
treecd1744a34effb14def47d03aa8dd942d5850545f
parentRefactoring in AesEngine_X86 (diff)
downloadBouncyCastle.NET-ed25519-2f71168faf6550f4e9d4f97ce5393f245223ee0b.tar.xz
HQC: Remove null check (potential side-channel)
-rw-r--r--crypto/src/pqc/crypto/hqc/HqcKeccakRandomGenerator.cs3
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/src/pqc/crypto/hqc/HqcKeccakRandomGenerator.cs b/crypto/src/pqc/crypto/hqc/HqcKeccakRandomGenerator.cs
index e744bb9b1..4349c6a15 100644
--- a/crypto/src/pqc/crypto/hqc/HqcKeccakRandomGenerator.cs
+++ b/crypto/src/pqc/crypto/hqc/HqcKeccakRandomGenerator.cs
@@ -62,9 +62,6 @@ namespace Org.BouncyCastle.Pqc.Crypto.Hqc
 
         private void KeccakIncAbsorb(byte[] input, int inputLen)
         {
-            if (input == null)
-                return;
-
             int count = 0;
             int rateBytes = rate >> 3;
             while (inputLen + (long)state[25] >= rateBytes)