Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108268619
D33525.id100182.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
715 B
Referenced Files
None
Subscribers
None
D33525.id100182.diff
View Options
Index: sys/opencrypto/cryptosoft.c
===================================================================
--- sys/opencrypto/cryptosoft.c
+++ 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
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 7:19 AM (18 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16081078
Default Alt Text
D33525.id100182.diff (715 B)
Attached To
Mode
D33525: cryptosoft: Remove unused 'iv' in swcr_ccm_cbc_mac.
Attached
Detach File
Event Timeline
Log In to Comment