Lines Matching defs:rv

39 	CK_RV		rv;
48 rv = handle2session(hSession, &session_p);
49 if (rv != CKR_OK)
50 return (rv);
53 rv = CKR_ARGUMENTS_BAD;
58 HANDLE2OBJECT(hKey, key_p, rv);
59 if (rv != CKR_OK) {
65 rv = CKR_KEY_FUNCTION_NOT_PERMITTED;
87 rv = soft_sign_init(session_p, pMechanism, key_p);
89 if (rv != CKR_OK) {
99 return (rv);
108 CK_RV rv;
116 rv = handle2session(hSession, &session_p);
117 if (rv != CKR_OK)
118 return (rv);
121 rv = CKR_ARGUMENTS_BAD;
152 rv = soft_sign(session_p, pData, ulDataLen, pSignature,
155 if ((rv == CKR_BUFFER_TOO_SMALL) ||
156 (pSignature == NULL && rv == CKR_OK)) {
164 return (rv);
170 return (rv);
179 CK_RV rv;
187 rv = handle2session(hSession, &session_p);
188 if (rv != CKR_OK)
189 return (rv);
197 rv = CKR_ARGUMENTS_BAD;
218 rv = soft_sign_update(session_p, pPart, ulPartLen);
220 if (rv == CKR_OK) {
222 return (rv);
228 return (rv);
238 CK_RV rv;
246 rv = handle2session(hSession, &session_p);
247 if (rv != CKR_OK)
248 return (rv);
251 rv = CKR_ARGUMENTS_BAD;
270 rv = soft_sign_final(session_p, pSignature, pulSignatureLen);
272 if ((rv == CKR_BUFFER_TOO_SMALL) ||
273 (pSignature == NULL && rv == CKR_OK)) {
281 return (rv);
287 return (rv);
296 CK_RV rv;
305 rv = handle2session(hSession, &session_p);
306 if (rv != CKR_OK)
307 return (rv);
310 rv = CKR_ARGUMENTS_BAD;
315 HANDLE2OBJECT(hKey, key_p, rv);
316 if (rv != CKR_OK) {
322 rv = CKR_KEY_FUNCTION_NOT_PERMITTED;
344 rv = soft_sign_recover_init(session_p, pMechanism, key_p);
346 if (rv != CKR_OK) {
356 return (rv);
365 CK_RV rv;
373 rv = handle2session(hSession, &session_p);
374 if (rv != CKR_OK)
375 return (rv);
378 rv = CKR_ARGUMENTS_BAD;
394 rv = soft_sign_recover(session_p, pData, ulDataLen, pSignature,
397 if ((rv == CKR_BUFFER_TOO_SMALL) ||
398 (pSignature == NULL && rv == CKR_OK)) {
406 return (rv);
412 return (rv);