Lines Matching refs:pMechanism
38 CK_MECHANISM *pMechanism, meta_object_t *key) in meta_operation_init_defer() argument
46 (void) memcpy(session->init.pMech, pMechanism, in meta_operation_init_defer()
49 if ((pMechanism->ulParameterLen > 0) && in meta_operation_init_defer()
50 (pMechanism->pParameter != NULL)) { in meta_operation_init_defer()
52 malloc(pMechanism->ulParameterLen); in meta_operation_init_defer()
59 pMechanism->pParameter, pMechanism->ulParameterLen); in meta_operation_init_defer()
64 if ((pMechanism->ulParameterLen > 0) && in meta_operation_init_defer()
65 (pMechanism->pParameter != NULL)) { in meta_operation_init_defer()
66 if (pMechanism->ulParameterLen != in meta_operation_init_defer()
71 malloc(pMechanism->ulParameterLen); in meta_operation_init_defer()
79 pMechanism->pParameter, pMechanism->ulParameterLen); in meta_operation_init_defer()
92 pMechanism->mechanism; in meta_operation_init_defer()
94 pMechanism->ulParameterLen; in meta_operation_init_defer()
111 CK_MECHANISM *pMechanism, meta_object_t *key) in meta_operation_init() argument
128 mech = *pMechanism; in meta_operation_init()
130 if ((pMechanism->ulParameterLen > 0) && in meta_operation_init()
131 (pMechanism->pParameter != NULL)) { in meta_operation_init()
133 malloc(pMechanism->ulParameterLen); in meta_operation_init()
138 pMechanism->pParameter, in meta_operation_init()
139 pMechanism->ulParameterLen); in meta_operation_init()
170 if (((session->mech_support_info).mech != pMechanism->mechanism) || in meta_operation_init()
172 (session->mech_support_info).mech = pMechanism->mechanism; in meta_operation_init()
243 init_session->hSession, pMechanism, in meta_operation_init()
248 init_session->hSession, pMechanism, in meta_operation_init()
253 init_session->hSession, pMechanism); in meta_operation_init()
257 init_session->hSession, pMechanism, in meta_operation_init()
262 init_session->hSession, pMechanism, in meta_operation_init()
267 init_session->hSession, pMechanism, in meta_operation_init()
272 init_session->hSession, pMechanism, in meta_operation_init()
328 CK_MECHANISM *pMechanism, meta_object_t *key) in meta_operation_init_softtoken() argument
343 mech = *pMechanism; in meta_operation_init_softtoken()
345 if ((pMechanism->ulParameterLen > 0) && in meta_operation_init_softtoken()
346 (pMechanism->pParameter != NULL)) { in meta_operation_init_softtoken()
348 malloc(pMechanism->ulParameterLen); in meta_operation_init_softtoken()
353 pMechanism->pParameter, pMechanism->ulParameterLen); in meta_operation_init_softtoken()
427 init_session->hSession, pMechanism, in meta_operation_init_softtoken()
432 init_session->hSession, pMechanism, in meta_operation_init_softtoken()
437 init_session->hSession, pMechanism); in meta_operation_init_softtoken()
919 meta_generate_keys(meta_session_t *session, CK_MECHANISM *pMechanism, in meta_generate_keys() argument
979 if (meta_freeobject_check(session, key1, pMechanism, k1Template, in meta_generate_keys()
1016 rv = get_slotlist_for_mech(pMechanism->mechanism, in meta_generate_keys()
1083 pMechanism, k1Template, k1AttrCount, in meta_generate_keys()
1088 pMechanism, k1Template, k1AttrCount, in meta_generate_keys()
1187 meta_wrap_key(meta_session_t *session, CK_MECHANISM *pMechanism, in meta_wrap_key() argument
1204 rv = get_slotlist_for_mech(pMechanism->mechanism, in meta_wrap_key()
1250 wrap_session->hSession, pMechanism, in meta_wrap_key()
1301 CK_MECHANISM *pMechanism, meta_object_t *unwrapping_key, in meta_unwrap_key() argument
1327 rv = get_slotlist_for_mech(pMechanism->mechanism, in meta_unwrap_key()
1373 unwrap_session->hSession, pMechanism, in meta_unwrap_key()
1454 meta_derive_key(meta_session_t *session, CK_MECHANISM *pMechanism, in meta_derive_key() argument
1497 if (meta_freeobject_check(session, newKey1, pMechanism, pTemplate, in meta_derive_key()
1509 rv = get_slotlist_for_mech(pMechanism->mechanism, in meta_derive_key()
1517 if (pMechanism->mechanism == CKM_SSL3_KEY_AND_MAC_DERIVE || in meta_derive_key()
1518 pMechanism->mechanism == CKM_TLS_KEY_AND_MAC_DERIVE) in meta_derive_key()
1521 else if (pMechanism->mechanism == CKM_TLS_PRF) in meta_derive_key()
1586 derive_session->hSession, pMechanism, in meta_derive_key()
1623 keyparams = (CK_SSL3_KEY_MAT_PARAMS*)pMechanism->pParameter; in meta_derive_key()