Lines Matching defs:rv
728 CK_RV rv;
747 rv = pFuncList->C_EncryptInit(sp->session, p_mech,
749 if (rv != CKR_OK) {
751 PK11_R_ENCRYPTINIT, rv);
756 rv = pFuncList->C_Encrypt(sp->session,
758 if (rv != CKR_OK) {
760 PK11_R_ENCRYPT, rv);
783 CK_RV rv;
802 rv = pFuncList->C_SignInit(sp->session, p_mech,
805 if (rv != CKR_OK) {
807 PK11_R_SIGNINIT, rv);
812 rv = pFuncList->C_Sign(sp->session,
814 if (rv != CKR_OK) {
816 rv);
840 CK_RV rv;
859 rv = pFuncList->C_DecryptInit(sp->session, p_mech,
862 if (rv != CKR_OK) {
864 PK11_R_DECRYPTINIT, rv);
869 rv = pFuncList->C_Decrypt(sp->session,
872 if (rv != CKR_OK) {
874 PK11_R_DECRYPT, rv);
897 CK_RV rv;
916 rv = pFuncList->C_VerifyRecoverInit(sp->session,
919 if (rv != CKR_OK) {
921 PK11_R_VERIFYRECOVERINIT, rv);
926 rv = pFuncList->C_VerifyRecover(sp->session,
928 if (rv != CKR_OK) {
930 PK11_R_VERIFYRECOVER, rv);
989 CK_RV rv;
1060 rv = pFuncList->C_SignInit(sp->session, p_mech, h_priv_key);
1061 if (rv != CKR_OK) {
1062 PK11err_add_data(PK11_F_RSA_SIGN, PK11_R_SIGNINIT, rv);
1067 rv = pFuncList->C_Sign(sp->session, s, i, sigret,
1071 if (rv != CKR_OK) {
1072 PK11err_add_data(PK11_F_RSA_SIGN, PK11_R_SIGN, rv);
1099 CK_RV rv;
1167 rv = pFuncList->C_VerifyInit(sp->session, p_mech,
1169 if (rv != CKR_OK) {
1171 rv);
1174 rv = pFuncList->C_Verify(sp->session, s, i,
1176 if (rv != CKR_OK) {
1177 PK11err_add_data(PK11_F_RSA_VERIFY, PK11_R_VERIFY, rv);
1276 CK_RV rv;
1352 if ((rv = pFuncList->C_GetAttributeValue(sp->session, ks_key,
1356 PK11_R_GETATTRIBUTVALUE, rv);
1505 CK_RV rv;
1551 rv = pFuncList->C_FindObjectsInit(sp->session, a_key_template,
1553 if (rv != CKR_OK) {
1555 PK11_R_FINDOBJECTSINIT, rv);
1559 rv = pFuncList->C_FindObjects(sp->session, &h_key, 1, &found);
1560 if (rv != CKR_OK) {
1562 PK11_R_FINDOBJECTS, rv);
1566 rv = pFuncList->C_FindObjectsFinal(sp->session);
1567 if (rv != CKR_OK) {
1569 PK11_R_FINDOBJECTSFINAL, rv);
1574 rv = pFuncList->C_CreateObject(sp->session,
1576 if (rv != CKR_OK) {
1578 PK11_R_CREATEOBJECT, rv);
1635 CK_RV rv;
1705 rv = pFuncList->C_FindObjectsInit(sp->session, a_key_template,
1707 if (rv != CKR_OK) {
1709 PK11_R_FINDOBJECTSINIT, rv);
1713 rv = pFuncList->C_FindObjects(sp->session, &h_key, 1, &found);
1714 if (rv != CKR_OK) {
1716 PK11_R_FINDOBJECTS, rv);
1720 rv = pFuncList->C_FindObjectsFinal(sp->session);
1721 if (rv != CKR_OK) {
1723 PK11_R_FINDOBJECTSFINAL, rv);
1741 rv = pFuncList->C_CreateObject(sp->session,
1743 if (rv != CKR_OK) {
1745 PK11_R_CREATEOBJECT, rv);
1935 CK_RV rv;
1976 rv = pFuncList->C_SignInit(sp->session, p_mech, h_priv_key);
1977 if (rv != CKR_OK) {
1978 PK11err_add_data(PK11_F_DSA_SIGN, PK11_R_SIGNINIT, rv);
1983 rv = pFuncList->C_Sign(sp->session, (unsigned char *) dgst,
1985 if (rv != CKR_OK) {
1986 PK11err_add_data(PK11_F_DSA_SIGN, PK11_R_SIGN, rv);
2034 CK_RV rv;
2080 rv = pFuncList->C_VerifyInit(sp->session, p_mech, h_pub_key);
2081 if (rv != CKR_OK) {
2083 rv);
2097 rv = pFuncList->C_Verify(sp->session,
2099 if (rv != CKR_OK) {
2100 PK11err_add_data(PK11_F_DSA_VERIFY, PK11_R_VERIFY, rv);
2120 CK_RV rv;
2157 rv = pFuncList->C_FindObjectsInit(session, a_key_template,
2160 if (rv != CKR_OK) {
2162 PK11_R_FINDOBJECTSINIT, rv);
2166 rv = pFuncList->C_FindObjects(session, &h_key, 1, &found);
2167 if (rv != CKR_OK) {
2169 PK11_R_FINDOBJECTS, rv);
2173 rv = pFuncList->C_FindObjectsFinal(session);
2174 if (rv != CKR_OK) {
2176 PK11_R_FINDOBJECTSFINAL, rv);
2181 rv = pFuncList->C_CreateObject(session,
2183 if (rv != CKR_OK) {
2185 PK11_R_CREATEOBJECT, rv);
2236 CK_RV rv;
2278 rv = pFuncList->C_FindObjectsInit(session, a_key_template,
2280 if (rv != CKR_OK) {
2282 PK11_R_FINDOBJECTSINIT, rv);
2286 rv = pFuncList->C_FindObjects(session, &h_key, 1, &found);
2287 if (rv != CKR_OK) {
2289 PK11_R_FINDOBJECTS, rv);
2293 rv = pFuncList->C_FindObjectsFinal(session);
2294 if (rv != CKR_OK) {
2296 PK11_R_FINDOBJECTSFINAL, rv);
2301 rv = pFuncList->C_CreateObject(session,
2303 if (rv != CKR_OK) {
2305 PK11_R_CREATEOBJECT, rv);
2440 CK_RV rv, rv1;
2517 rv = pFuncList->C_GenerateKeyPair(sp->session,
2525 if (rv != CKR_OK) {
2526 PK11err_add_data(PK11_F_DH_GEN_KEY, PK11_R_GEN_KEY, rv);
2542 rv = pFuncList->C_GetAttributeValue(sp->session, h_pub_key,
2547 if (rv != CKR_OK || rv1 != CKR_OK) {
2548 rv = (rv != CKR_OK) ? rv : rv1;
2550 PK11_R_GETATTRIBUTVALUE, rv);
2564 rv = pFuncList->C_GetAttributeValue(sp->session, h_pub_key,
2566 if (rv != CKR_OK) {
2568 PK11_R_GETATTRIBUTVALUE, rv);
2592 rv = pFuncList->C_GetAttributeValue(sp->session, h_priv_key,
2594 if (rv != CKR_OK) {
2596 PK11_R_GETATTRIBUTVALUE, rv);
2621 rv = pFuncList->C_DestroyObject(sp->session, h_pub_key);
2622 if (rv != CKR_OK) {
2624 PK11_R_DESTROYOBJECT, rv);
2629 rv = pFuncList->C_DestroyObject(sp->session, h_priv_key);
2630 if (rv != CKR_OK) {
2632 PK11_R_DESTROYOBJECT, rv);
2668 CK_RV rv;
2704 rv = pFuncList->C_DeriveKey(sp->session,
2710 if (rv != CKR_OK) {
2711 PK11err_add_data(PK11_F_DH_COMP_KEY, PK11_R_DERIVEKEY, rv);
2715 rv = pFuncList->C_GetAttributeValue(sp->session, h_derived_key,
2717 if (rv != CKR_OK) {
2719 rv);
2734 rv = pFuncList->C_GetAttributeValue(sp->session, h_derived_key,
2736 if (rv != CKR_OK) {
2738 rv);
2770 rv = pFuncList->C_DestroyObject(sp->session, h_derived_key);
2771 if (rv != CKR_OK) {
2773 PK11_R_DESTROYOBJECT, rv);
2795 CK_RV rv;
2850 rv = pFuncList->C_FindObjectsInit(session, key_template,
2852 if (rv != CKR_OK) {
2853 PK11err_add_data(PK11_F_GET_DH_KEY, PK11_R_FINDOBJECTSINIT, rv);
2857 rv = pFuncList->C_FindObjects(session, &h_key, 1, &found);
2858 if (rv != CKR_OK) {
2859 PK11err_add_data(PK11_F_GET_DH_KEY, PK11_R_FINDOBJECTS, rv);
2863 rv = pFuncList->C_FindObjectsFinal(session);
2864 if (rv != CKR_OK) {
2866 rv);
2871 rv = pFuncList->C_CreateObject(session,
2873 if (rv != CKR_OK) {
2875 rv);
3002 CK_RV rv;
3006 if ((rv = pFuncList->C_FindObjectsInit(s, ptempl, nattr)) != CKR_OK) {
3008 PK11_R_FINDOBJECTSINIT, rv);
3012 rv = pFuncList->C_FindObjects(s, pkey, 1, &objcnt);
3013 if (rv != CKR_OK) {
3015 rv);