Lines Matching refs:rv
43 CK_RV rv;
49 rv = meta_handle2session(hSession, &session);
50 if (rv != CKR_OK)
51 return (rv);
53 rv = meta_operation_init_defer(CKF_DIGEST, session, pMechanism, NULL);
57 return (rv);
69 CK_RV rv;
76 rv = meta_handle2session(hSession, &session);
77 if (rv != CKR_OK)
78 return (rv);
80 rv = meta_do_operation(CKF_DIGEST, MODE_SINGLE, session, NULL,
85 return (rv);
97 CK_RV rv;
104 rv = meta_handle2session(hSession, &session);
105 if (rv != CKR_OK)
106 return (rv);
108 rv = meta_do_operation(CKF_DIGEST, MODE_UPDATE, session, NULL,
113 return (rv);
130 CK_RV rv;
134 rv = meta_handle2session(hSession, &session);
135 if (rv != CKR_OK)
136 return (rv);
138 rv = meta_handle2object(hKey, &key);
139 if (rv != CKR_OK) {
141 return (rv);
145 rv = meta_do_operation(CKF_DIGEST, MODE_UPDATE_WITHKEY, session, key,
151 return (rv);
163 CK_RV rv;
169 rv = meta_handle2session(hSession, &session);
170 if (rv != CKR_OK)
171 return (rv);
173 rv = meta_do_operation(CKF_DIGEST, MODE_FINAL, session, NULL,
178 return (rv);