Lines Matching refs:rv
48 CK_RV rv; in C_EncryptInit() local
66 HANDLE2SESSION(hSession, sessp, rv); in C_EncryptInit()
68 if (rv != CKR_OK) { in C_EncryptInit()
69 return (rv); in C_EncryptInit()
80 rv = FUNCLIST(slotid)->C_EncryptInit(sessp->se_handle, in C_EncryptInit()
84 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_EncryptInit()
88 return (rv); in C_EncryptInit()
102 CK_RV rv; in C_Encrypt() local
116 HANDLE2SESSION(hSession, sessp, rv); in C_Encrypt()
118 if (rv != CKR_OK) { in C_Encrypt()
119 return (rv); in C_Encrypt()
123 rv = FUNCLIST(sessp->se_slotid)->C_Encrypt(sessp->se_handle, pData, in C_Encrypt()
127 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_Encrypt()
131 return (rv); in C_Encrypt()
145 CK_RV rv; in C_EncryptUpdate() local
159 HANDLE2SESSION(hSession, sessp, rv); in C_EncryptUpdate()
161 if (rv != CKR_OK) { in C_EncryptUpdate()
162 return (rv); in C_EncryptUpdate()
166 rv = FUNCLIST(sessp->se_slotid)->C_EncryptUpdate(sessp->se_handle, in C_EncryptUpdate()
170 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_EncryptUpdate()
174 return (rv); in C_EncryptUpdate()
186 CK_RV rv; in C_EncryptFinal() local
200 HANDLE2SESSION(hSession, sessp, rv); in C_EncryptFinal()
202 if (rv != CKR_OK) { in C_EncryptFinal()
203 return (rv); in C_EncryptFinal()
207 rv = FUNCLIST(sessp->se_slotid)->C_EncryptFinal(sessp->se_handle, in C_EncryptFinal()
211 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_EncryptFinal()
215 return (rv); in C_EncryptFinal()
231 CK_RV rv; in C_DecryptInit() local
249 HANDLE2SESSION(hSession, sessp, rv); in C_DecryptInit()
251 if (rv != CKR_OK) { in C_DecryptInit()
252 return (rv); in C_DecryptInit()
263 rv = FUNCLIST(slotid)->C_DecryptInit(sessp->se_handle, in C_DecryptInit()
267 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_DecryptInit()
271 return (rv); in C_DecryptInit()
285 CK_RV rv; in C_Decrypt() local
299 HANDLE2SESSION(hSession, sessp, rv); in C_Decrypt()
301 if (rv != CKR_OK) { in C_Decrypt()
302 return (rv); in C_Decrypt()
306 rv = FUNCLIST(sessp->se_slotid)->C_Decrypt(sessp->se_handle, in C_Decrypt()
310 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_Decrypt()
314 return (rv); in C_Decrypt()
328 CK_RV rv; in C_DecryptUpdate() local
342 HANDLE2SESSION(hSession, sessp, rv); in C_DecryptUpdate()
344 if (rv != CKR_OK) { in C_DecryptUpdate()
345 return (rv); in C_DecryptUpdate()
349 rv = FUNCLIST(sessp->se_slotid)->C_DecryptUpdate(sessp->se_handle, in C_DecryptUpdate()
353 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_DecryptUpdate()
357 return (rv); in C_DecryptUpdate()
369 CK_RV rv; in C_DecryptFinal() local
383 HANDLE2SESSION(hSession, sessp, rv); in C_DecryptFinal()
385 if (rv != CKR_OK) { in C_DecryptFinal()
386 return (rv); in C_DecryptFinal()
390 rv = FUNCLIST(sessp->se_slotid)->C_DecryptFinal(sessp->se_handle, in C_DecryptFinal()
394 if (rv == CKR_FUNCTION_NOT_SUPPORTED) { in C_DecryptFinal()
398 return (rv); in C_DecryptFinal()