Home
last modified time | relevance | path

Searched refs:digest_mech (Results 1 – 9 of 9) sorted by relevance

/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftMAC.c225 CK_MECHANISM digest_mech; in mac_init_ctx() local
235 digest_mech.mechanism = CKM_MD5; in mac_init_ctx()
236 digest_mech.pParameter = NULL_PTR; in mac_init_ctx()
237 digest_mech.ulParameterLen = 0; in mac_init_ctx()
238 rv = soft_digest_init_internal(session_p, &digest_mech); in mac_init_ctx()
291 CK_MECHANISM digest_mech; in mac_init_ctx() local
301 digest_mech.mechanism = CKM_SHA_1; in mac_init_ctx()
302 digest_mech.pParameter = NULL_PTR; in mac_init_ctx()
303 digest_mech.ulParameterLen = 0; in mac_init_ctx()
304 rv = soft_digest_init_internal(session_p, &digest_mech); in mac_init_ctx()
[all …]
H A DsoftKeysUtil.c632 CK_MECHANISM digest_mech; in soft_pkcs12_pbe() local
638 digest_mech.mechanism = CKM_SHA_1; in soft_pkcs12_pbe()
639 digest_mech.pParameter = NULL; in soft_pkcs12_pbe()
640 digest_mech.ulParameterLen = 0; in soft_pkcs12_pbe()
757 rv = soft_digest_init(session_p, &digest_mech); in soft_pkcs12_pbe()
856 CK_MECHANISM digest_mech; in soft_derivekey() local
929 digest_mech.mechanism = CKM_SHA_1; in soft_derivekey()
934 digest_mech.mechanism = CKM_MD5; in soft_derivekey()
939 digest_mech.mechanism = CKM_SHA256; in soft_derivekey()
944 digest_mech.mechanism = CKM_SHA384; in soft_derivekey()
[all …]
H A DsoftRSA.c421 CK_MECHANISM digest_mech; in soft_rsa_sign_verify_init_common() local
436 digest_mech.mechanism = CKM_MD5; in soft_rsa_sign_verify_init_common()
437 rv = soft_digest_init_internal(session_p, &digest_mech); in soft_rsa_sign_verify_init_common()
443 digest_mech.mechanism = CKM_SHA_1; in soft_rsa_sign_verify_init_common()
444 digest_mech.pParameter = pMechanism->pParameter; in soft_rsa_sign_verify_init_common()
445 digest_mech.ulParameterLen = pMechanism->ulParameterLen; in soft_rsa_sign_verify_init_common()
446 rv = soft_digest_init_internal(session_p, &digest_mech); in soft_rsa_sign_verify_init_common()
452 digest_mech.mechanism = CKM_SHA256; in soft_rsa_sign_verify_init_common()
453 rv = soft_digest_init_internal(session_p, &digest_mech); in soft_rsa_sign_verify_init_common()
459 digest_mech.mechanism = CKM_SHA384; in soft_rsa_sign_verify_init_common()
[all …]
H A DsoftDSA.c52 CK_MECHANISM digest_mech; in soft_dsa_sign_verify_init_common() local
67 digest_mech.mechanism = CKM_SHA_1; in soft_dsa_sign_verify_init_common()
68 rv = soft_digest_init_internal(session_p, &digest_mech); in soft_dsa_sign_verify_init_common()
H A DsoftEC.c336 CK_MECHANISM digest_mech; in soft_ecc_sign_verify_init_common() local
347 digest_mech.mechanism = CKM_SHA_1; in soft_ecc_sign_verify_init_common()
348 rv = soft_digest_init_internal(session_p, &digest_mech); in soft_ecc_sign_verify_init_common()
/titanic_50/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dmech_md5.c333 CK_MECHANISM digest_mech; in md5_hmac_sign() local
376 digest_mech.mechanism = CKM_MD5; in md5_hmac_sign()
377 digest_mech.ulParameterLen = 0; in md5_hmac_sign()
378 digest_mech.pParameter = NULL; in md5_hmac_sign()
380 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in md5_hmac_sign()
417 digest_mech.mechanism = CKM_MD5; in md5_hmac_sign()
418 digest_mech.ulParameterLen = 0; in md5_hmac_sign()
419 digest_mech.pParameter = NULL; in md5_hmac_sign()
421 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in md5_hmac_sign()
451 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in md5_hmac_sign()
H A Dmech_rsa.c406 CK_MECHANISM digest_mech; in rsa_hash_pkcs_sign() local
418 digest_mech.mechanism = CKM_MD5; in rsa_hash_pkcs_sign()
423 digest_mech.mechanism = CKM_SHA_1; in rsa_hash_pkcs_sign()
429 digest_mech.ulParameterLen = 0; in rsa_hash_pkcs_sign()
430 digest_mech.pParameter = NULL; in rsa_hash_pkcs_sign()
432 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in rsa_hash_pkcs_sign()
482 CK_MECHANISM digest_mech; in rsa_hash_pkcs_sign_update() local
492 digest_mech.mechanism = CKM_MD5; in rsa_hash_pkcs_sign_update()
494 digest_mech.mechanism = CKM_SHA_1; in rsa_hash_pkcs_sign_update()
496 digest_mech.ulParameterLen = 0; in rsa_hash_pkcs_sign_update()
[all …]
H A Dmech_sha.c67 CK_MECHANISM digest_mech; in sha1_hmac_sign() local
108 digest_mech.mechanism = CKM_SHA_1; in sha1_hmac_sign()
109 digest_mech.ulParameterLen = 0; in sha1_hmac_sign()
110 digest_mech.pParameter = NULL; in sha1_hmac_sign()
112 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in sha1_hmac_sign()
148 digest_mech.mechanism = CKM_SHA_1; in sha1_hmac_sign()
149 digest_mech.ulParameterLen = 0; in sha1_hmac_sign()
150 digest_mech.pParameter = NULL; in sha1_hmac_sign()
180 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in sha1_hmac_sign()
/titanic_50/usr/src/uts/common/crypto/io/
H A Ddprov.c8038 crypto_mechanism_t digest_mech, *mechp; in dprov_key_task() local
8067 digest_mech = *mechp; in dprov_key_task()
8069 switch (digest_mech.cm_type) { in dprov_key_task()
8072 digest_mech.cm_type = SHA1_MECH_INFO_TYPE; in dprov_key_task()
8077 digest_mech.cm_type = SHA256_MECH_INFO_TYPE; in dprov_key_task()
8082 digest_mech.cm_type = SHA384_MECH_INFO_TYPE; in dprov_key_task()
8087 digest_mech.cm_type = SHA512_MECH_INFO_TYPE; in dprov_key_task()
8092 digest_mech.cm_type = MD5_MECH_INFO_TYPE; in dprov_key_task()
8150 if ((error = dprov_get_sw_prov(&digest_mech, &pd, in dprov_key_task()
8151 &digest_mech.cm_type)) != CRYPTO_SUCCESS) in dprov_key_task()
[all …]