Lines Matching refs:rv
44 CK_RV rv;
51 rv = meta_handle2session(hSession, &session);
52 if (rv != CKR_OK)
53 return (rv);
55 rv = meta_handle2object(hKey, &key);
56 if (rv != CKR_OK) {
58 return (rv);
61 rv = meta_operation_init(CKF_SIGN, session, pMechanism, key);
66 return (rv);
79 CK_RV rv;
82 rv = meta_handle2session(hSession, &session);
83 if (rv != CKR_OK)
84 return (rv);
92 rv = meta_do_operation(CKF_SIGN, MODE_SINGLE, session, NULL,
97 return (rv);
109 CK_RV rv;
112 rv = meta_handle2session(hSession, &session);
113 if (rv != CKR_OK)
114 return (rv);
122 rv = meta_do_operation(CKF_SIGN, MODE_UPDATE, session, NULL,
127 return (rv);
139 CK_RV rv;
142 rv = meta_handle2session(hSession, &session);
143 if (rv != CKR_OK)
144 return (rv);
152 rv = meta_do_operation(CKF_SIGN, MODE_FINAL, session, NULL,
157 return (rv);
168 CK_RV rv;
175 rv = meta_handle2session(hSession, &session);
176 if (rv != CKR_OK)
177 return (rv);
179 rv = meta_handle2object(hKey, &key);
180 if (rv != CKR_OK) {
182 return (rv);
185 rv = meta_operation_init(CKF_SIGN_RECOVER, session, pMechanism, key);
190 return (rv);
202 CK_RV rv;
205 rv = meta_handle2session(hSession, &session);
206 if (rv != CKR_OK)
207 return (rv);
215 rv = meta_do_operation(CKF_SIGN_RECOVER, MODE_SINGLE, session, NULL,
220 return (rv);