aboutsummaryrefslogtreecommitdiffstats
path: root/module/icp/io
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-12-22 22:03:00 +0100
committerBrian Behlendorf <[email protected]>2022-02-15 16:23:19 -0800
commit959b9d63927a18d711c8d49c9b904d0f3c7a1fa4 (patch)
tree8bf03a5bd22cc4b7038d5a1c31433bb1910ec298 /module/icp/io
parent9cdf015d0a1713c213f1bd5cbda956995a79c74c (diff)
module: icp: spi: remove crypto_control_ops_t
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12901
Diffstat (limited to 'module/icp/io')
-rw-r--r--module/icp/io/aes.c17
-rw-r--r--module/icp/io/sha2_mod.c17
-rw-r--r--module/icp/io/skein_mod.c17
3 files changed, 0 insertions, 51 deletions
diff --git a/module/icp/io/aes.c b/module/icp/io/aes.c
index e1bd17335..510764e7b 100644
--- a/module/icp/io/aes.c
+++ b/module/icp/io/aes.c
@@ -75,12 +75,6 @@ static const crypto_mech_info_t aes_mech_info_tab[] = {
AES_MIN_KEY_BYTES, AES_MAX_KEY_BYTES, CRYPTO_KEYSIZE_UNIT_IN_BYTES}
};
-static void aes_provider_status(crypto_provider_handle_t, uint_t *);
-
-static const crypto_control_ops_t aes_control_ops = {
- aes_provider_status
-};
-
static int aes_encrypt_init(crypto_ctx_t *, crypto_mechanism_t *,
crypto_key_t *, crypto_spi_ctx_template_t, crypto_req_handle_t);
static int aes_decrypt_init(crypto_ctx_t *, crypto_mechanism_t *,
@@ -150,7 +144,6 @@ static const crypto_ctx_ops_t aes_ctx_ops = {
};
static const crypto_ops_t aes_crypto_ops = {{{{{
- &aes_control_ops,
NULL,
&aes_cipher_ops,
&aes_mac_ops,
@@ -284,16 +277,6 @@ init_keysched(crypto_key_t *key, void *newbie)
return (CRYPTO_SUCCESS);
}
-/*
- * KCF software provider control entry points.
- */
-static void
-aes_provider_status(crypto_provider_handle_t provider, uint_t *status)
-{
- (void) provider;
- *status = CRYPTO_PROVIDER_READY;
-}
-
static int
aes_encrypt_init(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism,
crypto_key_t *key, crypto_spi_ctx_template_t template,
diff --git a/module/icp/io/sha2_mod.c b/module/icp/io/sha2_mod.c
index 7ee16e137..df25d1544 100644
--- a/module/icp/io/sha2_mod.c
+++ b/module/icp/io/sha2_mod.c
@@ -105,12 +105,6 @@ static const crypto_mech_info_t sha2_mech_info_tab[] = {
CRYPTO_KEYSIZE_UNIT_IN_BYTES}
};
-static void sha2_provider_status(crypto_provider_handle_t, uint_t *);
-
-static const crypto_control_ops_t sha2_control_ops = {
- sha2_provider_status
-};
-
static int sha2_digest_init(crypto_ctx_t *, crypto_mechanism_t *,
crypto_req_handle_t);
static int sha2_digest(crypto_ctx_t *, crypto_data_t *, crypto_data_t *,
@@ -164,7 +158,6 @@ static const crypto_ctx_ops_t sha2_ctx_ops = {
};
static const crypto_ops_t sha2_crypto_ops = {{{{{
- &sha2_control_ops,
&sha2_digest_ops,
NULL,
&sha2_mac_ops,
@@ -230,16 +223,6 @@ sha2_mod_fini(void)
}
/*
- * KCF software provider control entry points.
- */
-static void
-sha2_provider_status(crypto_provider_handle_t provider, uint_t *status)
-{
- (void) provider;
- *status = CRYPTO_PROVIDER_READY;
-}
-
-/*
* KCF software provider digest entry points.
*/
diff --git a/module/icp/io/skein_mod.c b/module/icp/io/skein_mod.c
index d0917e71b..b54685873 100644
--- a/module/icp/io/skein_mod.c
+++ b/module/icp/io/skein_mod.c
@@ -51,12 +51,6 @@ static const crypto_mech_info_t skein_mech_info_tab[] = {
CRYPTO_KEYSIZE_UNIT_IN_BYTES}
};
-static void skein_provider_status(crypto_provider_handle_t, uint_t *);
-
-static const crypto_control_ops_t skein_control_ops = {
- skein_provider_status
-};
-
static int skein_digest_init(crypto_ctx_t *, crypto_mechanism_t *,
crypto_req_handle_t);
static int skein_digest(crypto_ctx_t *, crypto_data_t *, crypto_data_t *,
@@ -102,7 +96,6 @@ static const crypto_ctx_ops_t skein_ctx_ops = {
};
static const crypto_ops_t skein_crypto_ops = {{{{{
- &skein_control_ops,
&skein_digest_ops,
NULL,
&skein_mac_ops,
@@ -223,16 +216,6 @@ skein_mod_fini(void)
}
/*
- * KCF software provider control entry points.
- */
-static void
-skein_provider_status(crypto_provider_handle_t provider, uint_t *status)
-{
- (void) provider;
- *status = CRYPTO_PROVIDER_READY;
-}
-
-/*
* General Skein hashing helper functions.
*/