diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2020-06-10 21:18:19 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2020-06-10 21:18:19 +0000 |
| commit | 9b6b2f8608e24fc824404e2b47e2cecc669b189b (patch) | |
| tree | 446581e71c4631f97bb44d4c5e0e64e115ba1d14 /sys/opencrypto/cryptosoft.c | |
| parent | f14f00511365d3ba794389a1a5382f02ed669c47 (diff) | |
Notes
Diffstat (limited to 'sys/opencrypto/cryptosoft.c')
| -rw-r--r-- | sys/opencrypto/cryptosoft.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c index b29161b130ac..8cdabfa7c37f 100644 --- a/sys/opencrypto/cryptosoft.c +++ b/sys/opencrypto/cryptosoft.c @@ -336,7 +336,7 @@ swcr_authcompute(struct swcr_session *ses, struct cryptop *crp) bcopy(sw->sw_ictx, &ctx, axf->ctxsize); err = crypto_apply(crp, crp->crp_aad_start, crp->crp_aad_length, - (int (*)(void *, void *, unsigned int))axf->Update, &ctx); + axf->Update, &ctx); if (err) return err; @@ -344,11 +344,10 @@ swcr_authcompute(struct swcr_session *ses, struct cryptop *crp) CRYPTO_OP_IS_ENCRYPT(crp->crp_op)) err = crypto_apply_buf(&crp->crp_obuf, crp->crp_payload_output_start, crp->crp_payload_length, - (int (*)(void *, void *, unsigned int))axf->Update, &ctx); + axf->Update, &ctx); else err = crypto_apply(crp, crp->crp_payload_start, - crp->crp_payload_length, - (int (*)(void *, void *, unsigned int))axf->Update, &ctx); + crp->crp_payload_length, axf->Update, &ctx); if (err) return err; |
