Lines Matching refs:rv

46 	CK_RV rv;  in C_EncryptInit()  local
64 HANDLE2SESSION(hSession, sessp, rv); in C_EncryptInit()
66 if (rv != CKR_OK) { in C_EncryptInit()
67 return (rv); in C_EncryptInit()
78 rv = FUNCLIST(slotid)->C_EncryptInit(sessp->se_handle, in C_EncryptInit()
82 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_EncryptInit()
86 return (rv); in C_EncryptInit()
100 CK_RV rv; in C_Encrypt() local
114 HANDLE2SESSION(hSession, sessp, rv); in C_Encrypt()
116 if (rv != CKR_OK) { in C_Encrypt()
117 return (rv); in C_Encrypt()
121 rv = FUNCLIST(sessp->se_slotid)->C_Encrypt(sessp->se_handle, pData, in C_Encrypt()
125 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_Encrypt()
129 return (rv); in C_Encrypt()
143 CK_RV rv; in C_EncryptUpdate() local
157 HANDLE2SESSION(hSession, sessp, rv); in C_EncryptUpdate()
159 if (rv != CKR_OK) { in C_EncryptUpdate()
160 return (rv); in C_EncryptUpdate()
164 rv = FUNCLIST(sessp->se_slotid)->C_EncryptUpdate(sessp->se_handle, in C_EncryptUpdate()
168 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_EncryptUpdate()
172 return (rv); in C_EncryptUpdate()
184 CK_RV rv; in C_EncryptFinal() local
198 HANDLE2SESSION(hSession, sessp, rv); in C_EncryptFinal()
200 if (rv != CKR_OK) { in C_EncryptFinal()
201 return (rv); in C_EncryptFinal()
205 rv = FUNCLIST(sessp->se_slotid)->C_EncryptFinal(sessp->se_handle, in C_EncryptFinal()
209 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_EncryptFinal()
213 return (rv); in C_EncryptFinal()
229 CK_RV rv; in C_DecryptInit() local
247 HANDLE2SESSION(hSession, sessp, rv); in C_DecryptInit()
249 if (rv != CKR_OK) { in C_DecryptInit()
250 return (rv); in C_DecryptInit()
261 rv = FUNCLIST(slotid)->C_DecryptInit(sessp->se_handle, in C_DecryptInit()
265 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_DecryptInit()
269 return (rv); in C_DecryptInit()
283 CK_RV rv; in C_Decrypt() local
297 HANDLE2SESSION(hSession, sessp, rv); in C_Decrypt()
299 if (rv != CKR_OK) { in C_Decrypt()
300 return (rv); in C_Decrypt()
304 rv = FUNCLIST(sessp->se_slotid)->C_Decrypt(sessp->se_handle, in C_Decrypt()
308 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_Decrypt()
312 return (rv); in C_Decrypt()
326 CK_RV rv; in C_DecryptUpdate() local
340 HANDLE2SESSION(hSession, sessp, rv); in C_DecryptUpdate()
342 if (rv != CKR_OK) { in C_DecryptUpdate()
343 return (rv); in C_DecryptUpdate()
347 rv = FUNCLIST(sessp->se_slotid)->C_DecryptUpdate(sessp->se_handle, in C_DecryptUpdate()
351 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_DecryptUpdate()
355 return (rv); in C_DecryptUpdate()
367 CK_RV rv; in C_DecryptFinal() local
381 HANDLE2SESSION(hSession, sessp, rv); in C_DecryptFinal()
383 if (rv != CKR_OK) { in C_DecryptFinal()
384 return (rv); in C_DecryptFinal()
388 rv = FUNCLIST(sessp->se_slotid)->C_DecryptFinal(sessp->se_handle, in C_DecryptFinal()
392 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_DecryptFinal()
396 return (rv); in C_DecryptFinal()