Lines Matching refs:mech

41 	CK_MECHANISM_TYPE mech;  member
113 rv = pkcs11_str2mech(op->mechname, &op->mech); in get_mech_info()
128 rv = SUNW_C_GetMechSession(op->mech, &op->hsession); in get_hsession_by_mech()
133 op->mech); in get_hsession_by_mech()
145 CK_MECHANISM mech; in sign_init() local
148 mech.mechanism = op->mech; in sign_init()
149 mech.pParameter = NULL; in sign_init()
150 mech.ulParameterLen = 0; in sign_init()
152 rv = SUNW_C_KeyToObject(op->hsession, op->mech, in sign_init()
158 rv = C_SignInit(op->hsession, &mech, op->keyt); in sign_init()
232 CK_MECHANISM mech; in verify_init() local
235 mech.mechanism = op->mech; in verify_init()
236 mech.pParameter = NULL; in verify_init()
237 mech.ulParameterLen = 0; in verify_init()
239 rv = SUNW_C_KeyToObject(op->hsession, op->mech, in verify_init()
245 rv = C_VerifyInit(op->hsession, &mech, op->keyt); in verify_init()
292 CK_MECHANISM mech; in encrypt_init() local
295 mech.mechanism = op->mech; in encrypt_init()
296 mech.pParameter = op->param; in encrypt_init()
297 mech.ulParameterLen = op->paramlen; in encrypt_init()
299 rv = SUNW_C_KeyToObject(op->hsession, op->mech, in encrypt_init()
305 rv = C_EncryptInit(op->hsession, &mech, op->keyt); in encrypt_init()
356 CK_MECHANISM mech; in decrypt_init() local
359 mech.mechanism = op->mech; in decrypt_init()
360 mech.pParameter = op->param; in decrypt_init()
361 mech.ulParameterLen = op->paramlen; in decrypt_init()
363 rv = SUNW_C_KeyToObject(op->hsession, op->mech, in decrypt_init()
369 rv = C_DecryptInit(op->hsession, &mech, op->keyt); in decrypt_init()
420 CK_MECHANISM mech; in digest_init() local
423 mech.mechanism = op->mech; in digest_init()
424 mech.pParameter = op->param; in digest_init()
425 mech.ulParameterLen = op->paramlen; in digest_init()
427 rv = C_DigestInit(op->hsession, &mech); in digest_init()