View | Details | Raw Unified | Return to bug 252316 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/opencrypto/crypto.c (+5 lines)
Lines 1372-1377 crp_sanity(struct cryptop *crp) Link Here
1372
	if (out == NULL) {
1372
	if (out == NULL) {
1373
		KASSERT(crp->crp_payload_output_start == 0,
1373
		KASSERT(crp->crp_payload_output_start == 0,
1374
		    ("payload output start non-zero without output buffer"));
1374
		    ("payload output start non-zero without output buffer"));
1375
	} else if (csp->csp_mode == CSP_MODE_DIGEST) {
1376
		KASSERT(!(crp->crp_op & CRYPTO_OP_VERIFY_DIGEST),
1377
		    ("digest verify with separate output buffer"));
1378
		KASSERT(crp->crp_payload_output_start == 0,
1379
		    ("digest verify with non-zero payload output start"));
1375
	} else {
1380
	} else {
1376
		KASSERT(crp->crp_payload_output_start == 0 ||
1381
		KASSERT(crp->crp_payload_output_start == 0 ||
1377
		    crp->crp_payload_output_start < olen,
1382
		    crp->crp_payload_output_start < olen,

Return to bug 252316