Lines Matching defs:mech_info
302 static void pk11_choose_pubkey_slot(CK_MECHANISM_INFO mech_info,
2962 CK_MECHANISM_INFO mech_info;
3023 pk11_choose_pubkey_slot(mech_info, token_info, current_slot,
3071 pk11_choose_pubkey_slot(CK_MECHANISM_INFO mech_info,
3088 &mech_info);
3089 if (rv == CKR_OK && ((mech_info.flags & CKF_SIGN) &&
3090 (mech_info.flags & CKF_VERIFY))) {
3096 CKM_RSA_X_509, &mech_info);
3098 if (rv == CKR_OK && ((mech_info.flags & CKF_SIGN) &&
3099 (mech_info.flags & CKF_VERIFY) &&
3100 (mech_info.flags & CKF_ENCRYPT) &&
3101 (mech_info.flags & CKF_VERIFY_RECOVER) &&
3102 (mech_info.flags & CKF_DECRYPT))) {
3114 rv = pFuncList->C_GetMechanismInfo(current_slot, CKM_DSA, &mech_info);
3115 if (rv == CKR_OK && ((mech_info.flags & CKF_SIGN) &&
3116 (mech_info.flags & CKF_VERIFY))) {
3128 CKM_DH_PKCS_KEY_PAIR_GEN, &mech_info);
3130 if (rv == CKR_OK && (mech_info.flags & CKF_GENERATE_KEY_PAIR)) {
3132 CKM_DH_PKCS_DERIVE, &mech_info);
3133 if (rv == CKR_OK && (mech_info.flags & CKF_DERIVE)) {
3202 static CK_MECHANISM_INFO mech_info;
3211 &mech_info);
3221 if ((mech_info.flags & CKF_ENCRYPT) &&
3222 (mech_info.flags & CKF_DECRYPT)) {
3223 if (mech_info.ulMinKeySize > cipher->min_key_len ||
3224 mech_info.ulMaxKeySize < cipher->max_key_len) {
3228 mech_info.ulMinKeySize, mech_info.ulMaxKeySize);
3243 CK_MECHANISM_INFO mech_info;
3247 rv = pflist->C_GetMechanismInfo(slot_id, digest->mech_type, &mech_info);
3253 if (mech_info.flags & CKF_DIGEST) {