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