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)
64 rv = CKR_KEY_FUNCTION_NOT_PERMITTED;
87 rv = soft_encrypt_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);
127 rv = CKR_ARGUMENTS_BAD;
138 rv = CKR_ARGUMENTS_BAD;
169 rv = soft_encrypt(session_p, pData, ulDataLen, pEncryptedData,
172 if ((rv == CKR_BUFFER_TOO_SMALL) ||
173 (pEncryptedData == NULL && rv == CKR_OK)) {
181 return (rv);
187 return (rv);
197 CK_RV rv;
205 rv = handle2session(hSession, &session_p);
206 if (rv != CKR_OK)
207 return (rv);
216 rv = CKR_ARGUMENTS_BAD;
227 rv = CKR_ARGUMENTS_BAD;
248 rv = soft_encrypt_update(session_p, pPart, ulPartLen,
255 if ((rv == CKR_OK) || (rv == CKR_BUFFER_TOO_SMALL)) {
257 return (rv);
267 return (rv);
276 CK_RV rv;
284 rv = handle2session(hSession, &session_p);
285 if (rv != CKR_OK)
286 return (rv);
289 rv = CKR_ARGUMENTS_BAD;
308 rv = soft_encrypt_final(session_p, pLastEncryptedPart,
311 if ((rv == CKR_BUFFER_TOO_SMALL) ||
312 (pLastEncryptedPart == NULL && rv == CKR_OK)) {
320 return (rv);
329 return (rv);
335 return (rv);