Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146165532
D32119.1779393250.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
758 B
Referenced Files
None
Subscribers
None
D32119.1779393250.diff
View Options
diff --git a/sys/dev/safexcel/safexcel.c b/sys/dev/safexcel/safexcel.c
--- a/sys/dev/safexcel/safexcel.c
+++ b/sys/dev/safexcel/safexcel.c
@@ -1735,7 +1735,7 @@
memset(b0, 0, blen);
b0[0] =
(L - 1) | /* payload length size */
- ((CCM_CBC_MAX_DIGEST_LEN - 2) / 2) << 3 /* digest length */ |
+ ((req->sess->digestlen - 2) / 2) << 3 /* digest length */ |
(crp->crp_aad_length > 0 ? 1 : 0) << 6 /* AAD present bit */;
memcpy(&b0[1], req->iv, csp->csp_ivlen);
b0[14] = crp->crp_payload_length >> 8;
@@ -2314,9 +2314,6 @@
return (EINVAL);
break;
case CRYPTO_AES_CCM_16:
- if (csp->csp_auth_mlen != 0 &&
- csp->csp_auth_mlen != AES_CBC_MAC_HASH_LEN)
- return (EINVAL);
break;
default:
return (EINVAL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 21, 7:54 PM (6 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28757505
Default Alt Text
D32119.1779393250.diff (758 B)
Attached To
Mode
D32119: safexcel: Support truncated tags for AES-CCM.
Attached
Detach File
Event Timeline
Log In to Comment