From 125f513592d39249341dc8f74f8cab6cee5489d2 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 30 May 2023 11:27:54 +0700 Subject: TODO for stricter HC-256 key/IV --- crypto/src/crypto/engines/HC256Engine.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/src') 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) -- cgit 1.5.1