Lines Matching defs:session

162 	BIGNUM **dsa_pub_num, CK_SESSION_HANDLE session);
164 BIGNUM **dsa_priv_num, CK_SESSION_HANDLE session);
179 BIGNUM **priv_key, CK_SESSION_HANDLE session);
205 * session structure and the ref count for the reference being replaced gets to
747 rv = pFuncList->C_EncryptInit(sp->session, p_mech,
756 rv = pFuncList->C_Encrypt(sp->session,
802 rv = pFuncList->C_SignInit(sp->session, p_mech,
812 rv = pFuncList->C_Sign(sp->session,
859 rv = pFuncList->C_DecryptInit(sp->session, p_mech,
869 rv = pFuncList->C_Decrypt(sp->session,
916 rv = pFuncList->C_VerifyRecoverInit(sp->session,
926 rv = pFuncList->C_VerifyRecover(sp->session,
1060 rv = pFuncList->C_SignInit(sp->session, p_mech, h_priv_key);
1067 rv = pFuncList->C_Sign(sp->session, s, i, sigret,
1167 rv = pFuncList->C_VerifyInit(sp->session, p_mech,
1174 rv = pFuncList->C_Verify(sp->session, s, i,
1307 /* login to the session */
1308 if (pk11_token_login(sp->session, &pk11_login_done,
1317 if (find_one_object(OP_RSA, sp->session, search_templ, 3,
1352 if ((rv = pFuncList->C_GetAttributeValue(sp->session, ks_key,
1373 * Must have 'n'/'e' components in the session structure as
1398 * Create a session object from it so that when calling
1404 * we always have a session key. Note that this is different
1494 * Get a public key object in a session from a given rsa structure. If the
1495 * PKCS#11 session object already exists it is found, reused, and
1497 * session object is created and put also onto the active object list.
1499 * We use the session field from sp, and we cache rsa->(n|e) in
1551 rv = pFuncList->C_FindObjectsInit(sp->session, a_key_template,
1559 rv = pFuncList->C_FindObjects(sp->session, &h_key, 1, &found);
1566 rv = pFuncList->C_FindObjectsFinal(sp->session);
1574 rv = pFuncList->C_CreateObject(sp->session,
1608 (void) pFuncList->C_DestroyObject(sp->session, h_key);
1645 * Both CKA_TOKEN and CKA_SENSITIVE have to be CK_FALSE for session keys
1700 * session keys.
1705 rv = pFuncList->C_FindObjectsInit(sp->session, a_key_template,
1713 rv = pFuncList->C_FindObjects(sp->session, &h_key, 1, &found);
1720 rv = pFuncList->C_FindObjectsFinal(sp->session);
1732 * types we just create a new session key using the private
1741 rv = pFuncList->C_CreateObject(sp->session,
1799 (void) pFuncList->C_DestroyObject(sp->session, h_key);
1853 * on with this session structure.
1860 * A different RSA key pair was using this session structure previously
1895 * on with this session structure.
1902 * A different RSA key pair was using this session structure previously
1972 &sp->opdata_dsa_priv_num, sp->session);
1976 rv = pFuncList->C_SignInit(sp->session, p_mech, h_priv_key);
1983 rv = pFuncList->C_Sign(sp->session, (unsigned char *) dgst,
2076 &sp->opdata_dsa_pub_num, sp->session);
2080 rv = pFuncList->C_VerifyInit(sp->session, p_mech, h_pub_key);
2097 rv = pFuncList->C_Verify(sp->session,
2114 * Create a public key object in a session from a given dsa structure.
2118 DSA **key_ptr, BIGNUM **dsa_pub_num, CK_SESSION_HANDLE session)
2157 rv = pFuncList->C_FindObjectsInit(session, a_key_template,
2166 rv = pFuncList->C_FindObjects(session, &h_key, 1, &found);
2173 rv = pFuncList->C_FindObjectsFinal(session);
2181 rv = pFuncList->C_CreateObject(session,
2211 (void) pFuncList->C_DestroyObject(session, h_key);
2230 * Create a private key object in the session from a given dsa structure
2234 DSA **key_ptr, BIGNUM **dsa_priv_num, CK_SESSION_HANDLE session)
2246 * Both CKA_TOKEN and CKA_SENSITIVE have to be CK_FALSE for session keys
2278 rv = pFuncList->C_FindObjectsInit(session, a_key_template,
2286 rv = pFuncList->C_FindObjects(session, &h_key, 1, &found);
2293 rv = pFuncList->C_FindObjectsFinal(session);
2301 rv = pFuncList->C_CreateObject(session,
2331 (void) pFuncList->C_DestroyObject(session, h_key);
2510 * a session handle. The objects created in this function are
2517 rv = pFuncList->C_GenerateKeyPair(sp->session,
2542 rv = pFuncList->C_GetAttributeValue(sp->session, h_pub_key,
2544 rv1 = pFuncList->C_GetAttributeValue(sp->session, h_priv_key,
2564 rv = pFuncList->C_GetAttributeValue(sp->session, h_pub_key,
2592 rv = pFuncList->C_GetAttributeValue(sp->session, h_priv_key,
2621 rv = pFuncList->C_DestroyObject(sp->session, h_pub_key);
2629 rv = pFuncList->C_DestroyObject(sp->session, h_priv_key);
2697 &sp->opdata_dh_priv_num, sp->session);
2704 rv = pFuncList->C_DeriveKey(sp->session,
2715 rv = pFuncList->C_GetAttributeValue(sp->session, h_derived_key,
2734 rv = pFuncList->C_GetAttributeValue(sp->session, h_derived_key,
2770 rv = pFuncList->C_DestroyObject(sp->session, h_derived_key);
2793 DH **key_ptr, BIGNUM **dh_priv_num, CK_SESSION_HANDLE session)
2850 rv = pFuncList->C_FindObjectsInit(session, key_template,
2857 rv = pFuncList->C_FindObjects(session, &h_key, 1, &found);
2863 rv = pFuncList->C_FindObjectsFinal(session);
2871 rv = pFuncList->C_CreateObject(session,
2901 (void) pFuncList->C_DestroyObject(session, h_key);