diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-04 09:58:47 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-04 09:58:47 +0700 |
commit | 2f71168faf6550f4e9d4f97ce5393f245223ee0b (patch) | |
tree | cd1744a34effb14def47d03aa8dd942d5850545f | |
parent | Refactoring in AesEngine_X86 (diff) | |
download | BouncyCastle.NET-ed25519-2f71168faf6550f4e9d4f97ce5393f245223ee0b.tar.xz |
HQC: Remove null check (potential side-channel)
-rw-r--r-- | crypto/src/pqc/crypto/hqc/HqcKeccakRandomGenerator.cs | 3 |
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) |