Home
last modified time | relevance | path

Searched refs:mech (Results 1 – 16 of 16) sorted by relevance

/f-stack/freebsd/contrib/openzfs/module/icp/api/
H A Dkcf_cipher.c101 crypto_mechanism_t *mech, crypto_key_t *key, in crypto_cipher_init_prov() argument
115 error = kcf_get_hardware_provider(mech->cm_type, in crypto_cipher_init_prov()
119 error = kcf_get_hardware_provider(mech->cm_type, in crypto_cipher_init_prov()
139 lmech = *mech; in crypto_cipher_init_prov()
159 KCF_CAN_SHARE_OPSTATE(pd, mech->cm_type)) { in crypto_cipher_init_prov()
194 mech, key, NULL, NULL, tmpl); in crypto_cipher_init_prov()
198 mech, key, NULL, NULL, tmpl); in crypto_cipher_init_prov()
394 lmech = *mech; in crypto_encrypt()
427 crypto_mechanism_t *mech, crypto_key_t *key, in crypto_encrypt_init_prov() argument
608 rv = kcf_get_hardware_provider(mech->cm_type, in crypto_decrypt_prov()
[all …]
H A Dkcf_mac.c102 rv = kcf_get_hardware_provider(mech->cm_type, in crypto_mac_prov()
124 crypto_mac(crypto_mechanism_t *mech, crypto_data_t *data, in crypto_mac() argument
169 lmech = *mech; in crypto_mac()
170 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_mac()
188 pd->pd_sid, mech, key, data, mac, spi_ctx_tmpl); in crypto_mac()
227 rv = kcf_get_hardware_provider(mech->cm_type, in crypto_mac_verify_prov()
294 lmech = *mech; in crypto_mac_verify()
295 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_mac_verify()
308 KCF_OP_MAC_VERIFY_ATOMIC, pd->pd_sid, mech, in crypto_mac_verify()
380 rv = kcf_get_hardware_provider(mech->cm_type, in crypto_mac_init_prov()
[all …]
H A Dkcf_digest.c101 rv = kcf_get_hardware_provider(mech->cm_type, in crypto_digest_prov()
125 crypto_digest(crypto_mechanism_t *mech, crypto_data_t *data, in crypto_digest() argument
147 lmech = *mech; in crypto_digest()
148 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_digest()
159 pd->pd_sid, mech, NULL, data, digest); in crypto_digest()
217 error = kcf_get_hardware_provider(mech->cm_type, in crypto_digest_init_prov()
236 lmech = *mech; in crypto_digest_init_prov()
237 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, real_provider, &lmech); in crypto_digest_init_prov()
243 mech, NULL, NULL, NULL); in crypto_digest_init_prov()
276 if ((pd = kcf_get_mech_provider(mech->cm_type, NULL, &error, in crypto_digest_init()
[all …]
H A Dkcf_ctxops.c71 crypto_create_ctx_template(crypto_mechanism_t *mech, crypto_key_t *key, in crypto_create_ctx_template() argument
85 if (mech == NULL) in crypto_create_ctx_template()
88 error = kcf_get_sw_prov(mech->cm_type, &pd, &me, B_TRUE); in crypto_create_ctx_template()
99 prov_mech.cm_type = KCF_TO_PROV_MECHNUM(pd, mech->cm_type); in crypto_create_ctx_template()
100 prov_mech.cm_param = mech->cm_param; in crypto_create_ctx_template()
101 prov_mech.cm_param_len = mech->cm_param_len; in crypto_create_ctx_template()
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dhkdf.c29 crypto_mechanism_t mech; in hkdf_sha512_extract() local
34 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC); in hkdf_sha512_extract()
35 mech.cm_param = NULL; in hkdf_sha512_extract()
36 mech.cm_param_len = 0; in hkdf_sha512_extract()
56 ret = crypto_mac(&mech, &input_cd, &key, NULL, &output_cd, NULL); in hkdf_sha512_extract()
68 crypto_mechanism_t mech; in hkdf_sha512_expand() local
81 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC); in hkdf_sha512_expand()
82 mech.cm_param = NULL; in hkdf_sha512_expand()
83 mech.cm_param_len = 0; in hkdf_sha512_expand()
113 ret = crypto_mac_init(&mech, &key, NULL, &ctx, NULL); in hkdf_sha512_expand()
/f-stack/freebsd/contrib/openzfs/module/icp/include/sys/crypto/
H A Dimpl.h563 (pd)->pd_prov_handle, mech, key, template, size, req) : \
591 #define KCF_PROV_DIGEST_INIT(pd, ctx, mech, req) ( \ argument
593 KCF_PROV_DIGEST_OPS(pd)->digest_init(ctx, mech, req) : \
623 (pd)->pd_prov_handle, session, mech, data, digest, req) : \
741 ctx, mech, key, template, req) : CRYPTO_NOT_SUPPORTED)
819 KCF_PROV_VERIFY_OPS(pd)->verify_recover_init(ctx, mech, key, \
1092 session, mech, template, count, object, req) : \
1099 session, mech, pub_template, pub_count, priv_template, \
1123 session, mech, base_key, template, count, key, req) : \
1126 #define KCF_PROV_KEY_CHECK(pd, mech, key) ( \ argument
[all …]
/f-stack/freebsd/contrib/openzfs/include/sys/crypto/
H A Dapi.h66 extern int crypto_create_ctx_template(crypto_mechanism_t *mech,
73 extern int crypto_digest(crypto_mechanism_t *mech, crypto_data_t *data,
90 extern int crypto_mac(crypto_mechanism_t *mech, crypto_data_t *data,
96 extern int crypto_mac_verify(crypto_mechanism_t *mech, crypto_data_t *data,
102 extern int crypto_mac_init(crypto_mechanism_t *mech, crypto_key_t *key,
115 extern int crypto_sign(crypto_mechanism_t *mech, crypto_key_t *key,
121 extern int crypto_sign_init(crypto_mechanism_t *mech, crypto_key_t *key,
133 extern int crypto_sign_recover(crypto_mechanism_t *mech, crypto_key_t *key,
143 extern int crypto_verify(crypto_mechanism_t *mech, crypto_key_t *key,
149 extern int crypto_verify_init(crypto_mechanism_t *mech, crypto_key_t *key,
[all …]
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/zfs/sys/
H A Dsha2.h103 SHA2Init(uint64_t mech, SHA2_CTX *c) in SHA2Init() argument
105 switch (mech) { in SHA2Init()
119 panic("unknown mechanism %ju", (uintmax_t)mech); in SHA2Init()
121 c->algotype = (uint32_t)mech; in SHA2Init()
/f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c226 crypto_mechanism_t mech; in zio_crypt_key_init() local
301 crypto_mechanism_t mech; in zio_crypt_key_change_salt() local
385 crypto_mechanism_t mech; in zio_do_crypt_uio() local
426 mech.cm_param = (char *)(&ccmp); in zio_do_crypt_uio()
552 crypto_mechanism_t mech; in zio_crypt_key_unwrap() local
675 crypto_mechanism_t mech; in zio_crypt_do_hmac() local
683 mech.cm_param = NULL; in zio_crypt_do_hmac()
684 mech.cm_param_len = 0; in zio_crypt_do_hmac()
1127 crypto_mechanism_t mech; in zio_crypt_do_objset_hmacs() local
1138 mech.cm_param = NULL; in zio_crypt_do_objset_hmacs()
[all …]
/f-stack/freebsd/contrib/openzfs/include/os/linux/zfs/sys/
H A Dsha2.h93 extern void SHA2Init(uint64_t mech, SHA2_CTX *);
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/sys/
H A Dsha2.h111 extern void SHA2Init(uint64_t mech, SHA2_CTX *);
/f-stack/freebsd/contrib/openzfs/module/icp/io/
H A Daes.c1385 process_gmac_mech(crypto_mechanism_t *mech, crypto_data_t *data, in process_gmac_mech() argument
1389 CK_AES_GMAC_PARAMS *params = (CK_AES_GMAC_PARAMS *)mech->cm_param; in process_gmac_mech()
1391 if (mech->cm_type != AES_GMAC_MECH_INFO_TYPE) in process_gmac_mech()
1394 if (mech->cm_param_len != sizeof (CK_AES_GMAC_PARAMS)) in process_gmac_mech()
H A Dsha2_mod.c73 #define PROV_SHA2_DIGEST_KEY(mech, ctx, key, len, digest) { \ argument
74 SHA2Init(mech, ctx); \
/f-stack/freebsd/contrib/openzfs/module/icp/algs/sha2/
H A Dsha2.c674 SHA2Init(uint64_t mech, SHA2_CTX *ctx) in SHA2Init() argument
677 switch (mech) { in SHA2Init()
738 (uint32_t)mech); in SHA2Init()
743 ctx->algotype = (uint32_t)mech; in SHA2Init()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c238 crypto_mechanism_t mech __unused; in zio_crypt_key_init()
313 crypto_mechanism_t mech __unused; in zio_crypt_key_change_salt()
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs.abi3723 …<parameter type-id='type-id-53' name='mech' filepath='../../module/icp/algs/sha2/sha2.c' line='674…