diff options
author | наб <[email protected]> | 2021-12-23 20:11:01 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-02-15 16:24:04 -0800 |
commit | bf3fffe70de5dd905d315ab022a373296f5fd94b (patch) | |
tree | a16bdc3da2a54a99eae5742d3f73764c482ad786 /module | |
parent | 2c2f955aaebaeacc167970068a994ab014dd2e0d (diff) |
module: icp: remove unused kcf_mac operations
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12901
Diffstat (limited to 'module')
-rw-r--r-- | module/icp/api/kcf_mac.c | 48 |
1 files changed, 2 insertions, 46 deletions
diff --git a/module/icp/api/kcf_mac.c b/module/icp/api/kcf_mac.c index 00cee069c..3238b4edf 100644 --- a/module/icp/api/kcf_mac.c +++ b/module/icp/api/kcf_mac.c @@ -79,6 +79,7 @@ * the specified session id. * When complete and successful, 'mac' will contain the message * authentication code. + * Relies on the KCF scheduler to choose a provider. * * Context: * Process or interrupt, according to the semantics dictated by the 'crq'. @@ -87,29 +88,6 @@ * See comment in the beginning of the file. */ int -crypto_mac_prov(crypto_provider_t provider, crypto_session_id_t sid, - crypto_mechanism_t *mech, crypto_data_t *data, crypto_key_t *key, - crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq) -{ - kcf_req_params_t params; - kcf_provider_desc_t *pd = provider; - kcf_provider_desc_t *real_provider = pd; - int rv; - - ASSERT(KCF_PROV_REFHELD(pd)); - - KCF_WRAP_MAC_OPS_PARAMS(¶ms, KCF_OP_ATOMIC, sid, mech, key, - data, mac, tmpl); - rv = kcf_submit_request(real_provider, NULL, crq, ¶ms); - - return (rv); -} - -/* - * Same as crypto_mac_prov(), but relies on the KCF scheduler to choose - * a provider. See crypto_mac() comments for more information. - */ -int crypto_mac(crypto_mechanism_t *mech, crypto_data_t *data, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq) @@ -183,27 +161,7 @@ retry: * Single part operation to compute the MAC corresponding to the specified * 'data' and to verify that it matches the MAC specified by 'mac'. * The other arguments are the same as the function crypto_mac_prov(). - */ -int -crypto_mac_verify_prov(crypto_provider_t provider, crypto_session_id_t sid, - crypto_mechanism_t *mech, crypto_data_t *data, crypto_key_t *key, - crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq) -{ - kcf_req_params_t params; - kcf_provider_desc_t *pd = provider; - kcf_provider_desc_t *real_provider = pd; - - ASSERT(KCF_PROV_REFHELD(pd)); - - KCF_WRAP_MAC_OPS_PARAMS(¶ms, KCF_OP_MAC_VERIFY_ATOMIC, sid, mech, - key, data, mac, tmpl); - - return (kcf_submit_request(real_provider, NULL, crq, ¶ms)); -} - -/* - * Same as crypto_mac_verify_prov(), but relies on the KCF scheduler to choose - * a provider. See crypto_mac_verify_prov() comments for more information. + * Relies on the KCF scheduler to choose a provider. */ int crypto_mac_verify(crypto_mechanism_t *mech, crypto_data_t *data, @@ -511,9 +469,7 @@ crypto_mac_final(crypto_context_t context, crypto_data_t *mac, } #if defined(_KERNEL) -EXPORT_SYMBOL(crypto_mac_prov); EXPORT_SYMBOL(crypto_mac); -EXPORT_SYMBOL(crypto_mac_verify_prov); EXPORT_SYMBOL(crypto_mac_verify); EXPORT_SYMBOL(crypto_mac_init_prov); EXPORT_SYMBOL(crypto_mac_init); |