Page MenuHomeFreeBSD

D35578.id107615.diff
No OneTemporary

D35578.id107615.diff

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

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)

Event Timeline