Page MenuHomeFreeBSD

D33525.diff
No OneTemporary

D33525.diff

diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c
--- a/sys/opencrypto/cryptosoft.c
+++ b/sys/opencrypto/cryptosoft.c
@@ -624,7 +624,6 @@
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 @@
/* 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 @@
}
explicit_bzero(tag, sizeof(tag));
explicit_bzero(blk, sizeof(blk));
- explicit_bzero(iv, sizeof(iv));
return (error);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 3:51 PM (21 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14700256
Default Alt Text
D33525.diff (688 B)

Event Timeline