mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
module: icp: remove set-but-unused cd_miscdata
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12901
This commit is contained in:
@@ -242,19 +242,12 @@ int
|
||||
cbc_init_ctx(cbc_ctx_t *cbc_ctx, char *param, size_t param_len,
|
||||
size_t block_size, void (*copy_block)(uint8_t *, uint64_t *))
|
||||
{
|
||||
/*
|
||||
* Copy IV into context.
|
||||
*
|
||||
* If cm_param == NULL then the IV comes from the
|
||||
* cd_miscdata field in the crypto_data structure.
|
||||
*/
|
||||
if (param != NULL) {
|
||||
ASSERT(param_len == block_size);
|
||||
copy_block((uchar_t *)param, cbc_ctx->cbc_iv);
|
||||
}
|
||||
/* Copy IV into context. */
|
||||
ASSERT3P(param, !=, NULL);
|
||||
ASSERT3U(param_len, ==, block_size);
|
||||
|
||||
copy_block((uchar_t *)param, cbc_ctx->cbc_iv);
|
||||
|
||||
cbc_ctx->cbc_lastp = (uint8_t *)&cbc_ctx->cbc_iv[0];
|
||||
cbc_ctx->cbc_flags |= CBC_MODE;
|
||||
return (CRYPTO_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user