aboutsummaryrefslogtreecommitdiff
path: root/sys/opencrypto/cryptosoft.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-12-17 21:58:58 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-12-17 21:58:58 +0000
commit49bb13076532ec9a24ea26cf0c9c4649641c8ea8 (patch)
tree4f56408b4fa56c2f9305e67aed656603079ef8ed /sys/opencrypto/cryptosoft.c
parentea972feea2d2589ee1317a19eeada0598332defa (diff)
Diffstat (limited to 'sys/opencrypto/cryptosoft.c')
-rw-r--r--sys/opencrypto/cryptosoft.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c
index 62dae55f1537..6f03902498b1 100644
--- a/sys/opencrypto/cryptosoft.c
+++ b/sys/opencrypto/cryptosoft.c
@@ -624,7 +624,6 @@ build_ccm_aad_length(u_int aad_length, uint8_t *blk)
static int
swcr_ccm_cbc_mac(const struct swcr_session *ses, struct cryptop *crp)
{
- u_char iv[AES_BLOCK_LEN];
u_char blk[CCM_CBC_BLOCK_LEN];
u_char tag[AES_CBC_MAC_HASH_LEN];
union authctx ctx;
@@ -645,7 +644,6 @@ swcr_ccm_cbc_mac(const struct swcr_session *ses, struct cryptop *crp)
/* Initialize the IV */
ivlen = csp->csp_ivlen;
- crypto_read_iv(crp, iv);
/* Supply MAC with IV */
axf->Reinit(&ctx, crp->crp_iv, ivlen);
@@ -679,7 +677,6 @@ swcr_ccm_cbc_mac(const struct swcr_session *ses, struct cryptop *crp)
}
explicit_bzero(tag, sizeof(tag));
explicit_bzero(blk, sizeof(blk));
- explicit_bzero(iv, sizeof(iv));
return (error);
}