mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
module: icp: remove unused (and mostly faked) cm_{{min,max}_key_length,mech_flags}
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12901
This commit is contained in:
@@ -252,14 +252,6 @@ init_prov_mechs(const crypto_provider_info_t *info, kcf_provider_desc_t *desc)
|
||||
* to the corresponding KCF mechanism mech_entry chain.
|
||||
*/
|
||||
for (mech_idx = 0; mech_idx < desc->pd_mech_list_count; mech_idx++) {
|
||||
const crypto_mech_info_t *mi = &desc->pd_mechanisms[mech_idx];
|
||||
|
||||
if ((mi->cm_mech_flags & CRYPTO_KEYSIZE_UNIT_IN_BITS) &&
|
||||
(mi->cm_mech_flags & CRYPTO_KEYSIZE_UNIT_IN_BYTES)) {
|
||||
err = CRYPTO_ARGUMENTS_BAD;
|
||||
break;
|
||||
}
|
||||
|
||||
if ((err = kcf_add_mech_provider(mech_idx, desc, &pmd)) !=
|
||||
KCF_SUCCESS)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user