Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145603781
D33195.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
459 B
Referenced Files
None
Subscribers
None
D33195.id.diff
View Options
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c
--- a/sys/opencrypto/cryptosoft.c
+++ b/sys/opencrypto/cryptosoft.c
@@ -1508,6 +1508,15 @@
switch (csp->csp_cipher_alg) {
case CRYPTO_AES_NIST_GCM_16:
case CRYPTO_AES_CCM_16:
+ switch (csp->csp_cipher_klen * 8) {
+ case 128:
+ case 192:
+ case 256:
+ break;
+ default:
+ return (EINVAL);
+ }
+ break;
case CRYPTO_CHACHA20_POLY1305:
break;
default:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 23, 1:48 AM (6 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28948515
Default Alt Text
D33195.id.diff (459 B)
Attached To
Mode
D33195: cryptosoft: Reject AES-CCM/GCM sessions with invalid key lengths.
Attached
Detach File
Event Timeline
Log In to Comment