Lines Matching defs:mechanism
56 CK_MECHANISM mechanism;
61 mechanism.mechanism = CKM_MD5;
62 mechanism.pParameter = 0;
63 mechanism.ulParameterLen = 0;
65 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession);
70 rv = C_DigestInit(hSession, &mechanism);
97 CK_MECHANISM mechanism;
102 mechanism.mechanism = CKM_MD5_HMAC;
103 mechanism.pParameter = 0;
104 mechanism.ulParameterLen = 0;
105 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession);
110 rv = SUNW_C_KeyToObject(hSession, mechanism.mechanism,
118 rv = C_SignInit(hSession, &mechanism, hKey);
150 CK_MECHANISM mechanism;
170 * the mechanism we plan on using.
172 mechanism.mechanism = CKM_DES_ECB;
173 mechanism.pParameter = NULL;
174 mechanism.ulParameterLen = 0;
175 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession);
182 rv = SUNW_C_KeyToObject(hSession, mechanism.mechanism,
189 rv = C_EncryptInit(hSession, &mechanism, hKey);