Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142915730
D33526.id100183.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
942 B
Referenced Files
None
Subscribers
None
D33526.id100183.diff
View Options
Index: sys/opencrypto/cryptosoft.c
===================================================================
--- sys/opencrypto/cryptosoft.c
+++ sys/opencrypto/cryptosoft.c
@@ -320,7 +320,6 @@
uint32_t blkbuf[howmany(AES_BLOCK_LEN, sizeof(uint32_t))];
u_char *blk = (u_char *)blkbuf;
u_char tag[GMAC_DIGEST_LEN];
- u_char iv[AES_BLOCK_LEN];
struct crypto_buffer_cursor cc;
const u_char *inblk;
union authctx ctx;
@@ -345,9 +344,9 @@
/* Initialize the IV */
ivlen = AES_GCM_IV_LEN;
- crypto_read_iv(crp, iv);
+ crypto_read_iv(crp, blk);
- axf->Reinit(&ctx, iv, ivlen);
+ axf->Reinit(&ctx, blk, ivlen);
crypto_cursor_init(&cc, &crp->crp_buf);
crypto_cursor_advance(&cc, crp->crp_payload_start);
for (resid = crp->crp_payload_length; resid >= blksz; resid -= len) {
@@ -392,7 +391,6 @@
}
explicit_bzero(blkbuf, sizeof(blkbuf));
explicit_bzero(tag, sizeof(tag));
- explicit_bzero(iv, sizeof(iv));
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 25, 5:03 PM (12 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27952443
Default Alt Text
D33526.id100183.diff (942 B)
Attached To
Mode
D33526: cryptosoft: Reuse 'blk' to hold the initial nonce in swcr_gmac.
Attached
Detach File
Event Timeline
Log In to Comment