Home
last modified time | relevance | path

Searched refs:lmech (Results 1 – 7 of 7) sorted by relevance

/titanic_50/usr/src/uts/common/crypto/api/
H A Dkcf_mac.c171 crypto_mechanism_t lmech; in crypto_mac() local
173 lmech = *mech; in crypto_mac()
174 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_mac()
176 error = KCF_PROV_MAC_ATOMIC(pd, pd->pd_sid, &lmech, key, data, in crypto_mac()
295 crypto_mechanism_t lmech; in crypto_mac_verify() local
297 lmech = *mech; in crypto_mac_verify()
298 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_mac_verify()
300 error = KCF_PROV_MAC_VERIFY_ATOMIC(pd, pd->pd_sid, &lmech, key, in crypto_mac_verify()
401 crypto_mechanism_t lmech; in crypto_mac_init_prov() local
403 lmech = *mech; in crypto_mac_init_prov()
[all …]
H A Dkcf_miscapi.c532 crypto_mechanism_t lmech; in crypto_key_check() local
535 lmech = *mech; in crypto_key_check()
536 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_key_check()
537 error = KCF_PROV_KEY_CHECK(pd, &lmech, key); in crypto_key_check()
556 crypto_mechanism_t lmech; in crypto_key_check() local
559 lmech = *mech; in crypto_key_check()
561 &lmech); in crypto_key_check()
562 error = KCF_PROV_KEY_CHECK(pd, &lmech, key); in crypto_key_check()
586 crypto_mechanism_t lmech; in crypto_key_check_prov() local
600 lmech = *mech; in crypto_key_check_prov()
[all …]
H A Dkcf_digest.c149 crypto_mechanism_t lmech; in crypto_digest() local
151 lmech = *mech; in crypto_digest()
152 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_digest()
153 error = KCF_PROV_DIGEST_ATOMIC(pd, pd->pd_sid, &lmech, data, in crypto_digest()
238 crypto_mechanism_t lmech; in crypto_digest_init_prov() local
240 lmech = *mech; in crypto_digest_init_prov()
241 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, real_provider, &lmech); in crypto_digest_init_prov()
242 error = KCF_PROV_DIGEST_INIT(real_provider, ctx, &lmech, in crypto_digest_init_prov()
H A Dkcf_cipher.c142 crypto_mechanism_t lmech; in crypto_cipher_init_prov() local
144 lmech = *mech; in crypto_cipher_init_prov()
145 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, real_provider, &lmech); in crypto_cipher_init_prov()
149 &lmech, key, tmpl, KCF_SWFP_RHNDL(crq)); in crypto_cipher_init_prov()
154 &lmech, key, tmpl, KCF_SWFP_RHNDL(crq)); in crypto_cipher_init_prov()
396 crypto_mechanism_t lmech; in crypto_encrypt() local
398 lmech = *mech; in crypto_encrypt()
399 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_encrypt()
401 error = KCF_PROV_ENCRYPT_ATOMIC(pd, pd->pd_sid, &lmech, key, in crypto_encrypt()
678 crypto_mechanism_t lmech; in crypto_decrypt() local
[all …]
H A Dkcf_sign.c299 crypto_mechanism_t lmech; in sign_sr_atomic_common() local
301 lmech = *mech; in sign_sr_atomic_common()
302 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in sign_sr_atomic_common()
304 error = KCF_PROV_SIGN_ATOMIC(pd, pd->pd_sid, &lmech, in sign_sr_atomic_common()
309 &lmech, key, data, spi_ctx_tmpl, signature, in sign_sr_atomic_common()
H A Dkcf_verify.c301 crypto_mechanism_t lmech; in verify_vr_atomic_common() local
303 lmech = *mech; in verify_vr_atomic_common()
304 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in verify_vr_atomic_common()
306 error = KCF_PROV_VERIFY_ATOMIC(pd, pd->pd_sid, &lmech, in verify_vr_atomic_common()
312 &lmech, key, signature, spi_ctx_tmpl, data, in verify_vr_atomic_common()
H A Dkcf_dual.c667 crypto_mechanism_t lmech = *encr_mech; in crypto_encrypt_mac_init() local
669 lmech.cm_type = prov_encr_mechid; in crypto_encrypt_mac_init()
671 error = KCF_PROV_ENCRYPT_INIT(pd, ctx, &lmech, in crypto_encrypt_mac_init()
1259 crypto_mechanism_t lmech; in crypto_mac_decrypt_common() local
1261 lmech = *decr_mech; in crypto_mac_decrypt_common()
1263 pd, &lmech); in crypto_mac_decrypt_common()
1266 &lmech, decr_key, (crypto_data_t *)ct, in crypto_mac_decrypt_common()
1648 crypto_mechanism_t lmech = *decr_mech; in crypto_mac_decrypt_init() local
1650 lmech.cm_type = prov_decr_mechid; in crypto_mac_decrypt_init()
1652 error = KCF_PROV_DECRYPT_INIT(pd, ctx, &lmech, in crypto_mac_decrypt_init()