Searched refs:digest_mech (Results 1 – 9 of 9) sorted by relevance
/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softMAC.c | 225 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 D | softKeysUtil.c | 632 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 D | softRSA.c | 421 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 D | softDSA.c | 52 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 D | softEC.c | 336 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 D | mech_md5.c | 333 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 D | mech_rsa.c | 406 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 D | mech_sha.c | 67 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 D | dprov.c | 8038 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 …]
|