Home
last modified time | relevance | path

Searched refs:mac_mech (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_dual.c51 crypto_mechanism_t *encr_mech, crypto_mechanism_t *mac_mech, in crypto_encrypt_mac_prov() argument
73 mac_mech->cm_type, mac_key, pd, &real_provider, in crypto_encrypt_mac_prov()
106 if (kcf_get_mech_entry(mac_mech->cm_type, &me) != in crypto_encrypt_mac_prov()
130 lmac_mech = *mac_mech; in crypto_encrypt_mac_prov()
131 KCF_SET_PROVIDER_MECHNUM(mac_mech->cm_type, real_provider, in crypto_encrypt_mac_prov()
152 cmops->em_mac_mech = *mac_mech; in crypto_encrypt_mac_prov()
153 KCF_SET_PROVIDER_MECHNUM(mac_mech->cm_type, real_provider, in crypto_encrypt_mac_prov()
155 cmops->em_framework_mac_mechtype = mac_mech->cm_type; in crypto_encrypt_mac_prov()
173 crypto_mechanism_t *mac_mech, crypto_data_t *pt, in crypto_encrypt_mac() argument
197 pd = kcf_get_dual_provider(encr_mech, encr_key, mac_mech, mac_key, in crypto_encrypt_mac()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dhmac.c48 crypto_mechanism_t mac_mech; in krb5_hmac() local
74 mac_mech.cm_type = context->kef_hash_mt; in krb5_hmac()
75 mac_mech.cm_param = NULL; in krb5_hmac()
76 mac_mech.cm_param_len = 0; in krb5_hmac()
78 rv = crypto_mac(&mac_mech, &dd, in krb5_hmac()
/illumos-gate/usr/src/uts/common/sys/crypto/
H A Dapi.h211 crypto_mechanism_t *mac_mech, crypto_data_t *pt,
221 crypto_mechanism_t *mac_mech, crypto_key_t *encr_key,
237 extern int crypto_mac_decrypt(crypto_mechanism_t *mac_mech,
243 crypto_mechanism_t *mac_mech, crypto_mechanism_t *decr_mech,
247 extern int crypto_mac_verify_decrypt(crypto_mechanism_t *mac_mech,
253 crypto_session_id_t, crypto_mechanism_t *mac_mech,
258 extern int crypto_mac_decrypt_init(crypto_mechanism_t *mac_mech,
264 crypto_session_id_t, crypto_mechanism_t *mac_mech,
H A Dimpl.h924 #define KCF_PROV_ENCRYPT_MAC_INIT(pd, ctx, encr_mech, encr_key, mac_mech, \ argument
929 ctx, encr_mech, encr_key, mac_mech, mac_key, encr_ctx_template, \
955 mac_mech, mac_key, plaintext, ciphertext, mac, \ argument
961 mac_mech, mac_key, plaintext, ciphertext, mac, \
965 #define KCF_PROV_MAC_DECRYPT_INIT(pd, ctx, mac_mech, mac_key, decr_mech, \ argument
970 ctx, mac_mech, mac_key, decr_mech, decr_key, mac_ctx_template, \
995 #define KCF_PROV_MAC_DECRYPT_ATOMIC(pd, session, mac_mech, mac_key, \ argument
1001 (pd)->pd_prov_handle, session, mac_mech, mac_key, \
1006 #define KCF_PROV_MAC_VERIFY_DECRYPT_ATOMIC(pd, session, mac_mech, mac_key, \ argument
1013 (pd)->pd_prov_handle, session, mac_mech, mac_key, \
/illumos-gate/usr/src/uts/common/io/
H A Dcryptmod.c985 crypto_mechanism_t mac_mech; in kef_decr_hmac() local
1026 mac_mech.cm_type = sha1_hmac_mech; in kef_decr_hmac()
1027 mac_mech.cm_param = NULL; in kef_decr_hmac()
1028 mac_mech.cm_param_len = 0; in kef_decr_hmac()
1033 rv = crypto_mac(&mac_mech, &dd, &cdata->d_hmac_key, in kef_decr_hmac()
1054 crypto_mechanism_t mac_mech; in kef_encr_hmac() local
1088 mac_mech.cm_type = sha1_hmac_mech; in kef_encr_hmac()
1089 mac_mech.cm_param = NULL; in kef_encr_hmac()
1090 mac_mech.cm_param_len = 0; in kef_encr_hmac()
1092 rv = crypto_mac(&mac_mech, &dd, &cdata->d_hmac_key, in kef_encr_hmac()
[all …]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddprov.c3236 crypto_key_t *encrypt_key, crypto_mechanism_t *mac_mech, in dprov_encrypt_mac_init() argument
3258 if (!dprov_valid_mac_mech(mac_mech->cm_type)) { in dprov_encrypt_mac_init()
3261 (unsigned long long)mac_mech->cm_type); in dprov_encrypt_mac_init()
3270 softc, req, ctx, 0, encrypt_mech, encrypt_key, mac_mech, mac_key, in dprov_encrypt_mac_init()
3361 crypto_key_t *encrypt_key, crypto_mechanism_t *mac_mech, in dprov_encrypt_mac_atomic() argument
3384 if (!dprov_valid_mac_mech(mac_mech->cm_type)) { in dprov_encrypt_mac_atomic()
3387 (unsigned long long)mac_mech->cm_type); in dprov_encrypt_mac_atomic()
3396 softc, req, NULL, session_id, encrypt_mech, encrypt_key, mac_mech, in dprov_encrypt_mac_atomic()
3406 dprov_mac_decrypt_init(crypto_ctx_t *ctx, crypto_mechanism_t *mac_mech, in dprov_mac_decrypt_init() argument
3429 if (!dprov_valid_mac_mech(mac_mech->cm_type)) { in dprov_mac_decrypt_init()
[all …]