diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-05-30 11:27:54 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-05-30 11:27:54 +0700 |
commit | 125f513592d39249341dc8f74f8cab6cee5489d2 (patch) | |
tree | 26a98769dde097eb891b6158d67be42ff8abd415 /crypto/src | |
parent | Add entry for DTLS bugfix (diff) | |
download | BouncyCastle.NET-ed25519-125f513592d39249341dc8f74f8cab6cee5489d2.tar.xz |
TODO for stricter HC-256 key/IV
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/engines/HC256Engine.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/src/crypto/engines/HC256Engine.cs b/crypto/src/crypto/engines/HC256Engine.cs index 1ace7bbc0..635a3912f 100644 --- a/crypto/src/crypto/engines/HC256Engine.cs +++ b/crypto/src/crypto/engines/HC256Engine.cs @@ -66,6 +66,7 @@ namespace Org.BouncyCastle.Crypto.Engines private void Init() { + // TODO[api] Strictly require 32 bytes for both key and IV if (key.Length != 32 && key.Length != 16) throw new ArgumentException("The key must be 128/256 bits long"); if (iv.Length < 16) |