Page MenuHomeFreeBSD

D32114.diff
No OneTemporary

D32114.diff

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

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)

Event Timeline