Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115789371
D32114.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
676 B
Referenced Files
None
Subscribers
None
D32114.diff
View Options
diff --git a/sys/crypto/aesni/aesni_ccm.c b/sys/crypto/aesni/aesni_ccm.c
--- a/sys/crypto/aesni/aesni_ccm.c
+++ b/sys/crypto/aesni/aesni_ccm.c
@@ -205,9 +205,6 @@
uint8_t *byte_ptr;
__m128i s0, rolling_mac, s_x, staging_block;
- if (nbytes == 0 && abytes == 0)
- return;
-
/* NIST 800-38c section A.1 says n is [7, 13]. */
if (nlen < 7 || nlen > 13)
panic("%s: bad nonce length %d", __FUNCTION__, nlen);
@@ -377,8 +374,6 @@
__m128i s0, rolling_mac, staging_block;
uint8_t *byte_ptr;
- if (nbytes == 0 && abytes == 0)
- return (1); // No message means no decryption!
if (nlen < 0 || nlen > 15)
panic("%s: bad nonce length %d", __FUNCTION__, nlen);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 29, 4:57 PM (14 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17843198
Default Alt Text
D32114.diff (676 B)
Attached To
Mode
D32114: aesni: Permit AES-CCM requests with neither payload nor AAD.
Attached
Detach File
Event Timeline
Log In to Comment