Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108269562
D35578.id107615.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
654 B
Referenced Files
None
Subscribers
None
D35578.id107615.diff
View Options
diff --git a/sys/opencrypto/crypto.c b/sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c
+++ b/sys/opencrypto/crypto.c
@@ -1372,6 +1372,11 @@
if (out == NULL) {
KASSERT(crp->crp_payload_output_start == 0,
("payload output start non-zero without output buffer"));
+ } else if (csp->csp_mode == CSP_MODE_DIGEST) {
+ KASSERT(!(crp->crp_op & CRYPTO_OP_VERIFY_DIGEST),
+ ("digest verify with separate output buffer"));
+ KASSERT(crp->crp_payload_output_start == 0,
+ ("digest operation with non-zero payload output start"));
} else {
KASSERT(crp->crp_payload_output_start == 0 ||
crp->crp_payload_output_start < olen,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 7:35 AM (17 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16081423
Default Alt Text
D35578.id107615.diff (654 B)
Attached To
Mode
D35578: crypto: Fix assertions for digest-only sessions with separate output.
Attached
Detach File
Event Timeline
Log In to Comment