/titanic_44/usr/src/lib/pkcs11/include/ |
H A D | pkcs11f.h | 144 CK_SESSION_HANDLE hSession, /* the session's handle */ 155 CK_SESSION_HANDLE hSession, /* the session's handle */ 186 CK_SESSION_HANDLE hSession /* the session's handle */ 204 CK_SESSION_HANDLE hSession, /* the session's handle */ 215 CK_SESSION_HANDLE hSession, /* session's handle */ 227 CK_SESSION_HANDLE hSession, /* session's handle */ 240 CK_SESSION_HANDLE hSession, /* the session's handle */ 252 CK_SESSION_HANDLE hSession /* the session's handle */ 264 CK_SESSION_HANDLE hSession, /* the session's handle */ 277 CK_SESSION_HANDLE hSession, /* the session's handle */ [all …]
|
/titanic_44/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_crypt.c | 87 CK_SESSION_HANDLE hSession; in smb_auth_hmac_md5() local 93 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession); in smb_auth_hmac_md5() 98 rv = SUNW_C_KeyToObject(hSession, mechanism.mechanism, in smb_auth_hmac_md5() 101 (void) C_CloseSession(hSession); in smb_auth_hmac_md5() 106 rv = C_SignInit(hSession, &mechanism, hKey); in smb_auth_hmac_md5() 108 (void) C_DestroyObject(hSession, hKey); in smb_auth_hmac_md5() 109 (void) C_CloseSession(hSession); in smb_auth_hmac_md5() 112 rv = C_SignUpdate(hSession, (CK_BYTE_PTR)data, data_len); in smb_auth_hmac_md5() 114 (void) C_DestroyObject(hSession, hKey); in smb_auth_hmac_md5() 115 (void) C_CloseSession(hSession); in smb_auth_hmac_md5() [all …]
|
H A D | smb_mac.c | 88 CK_SESSION_HANDLE hSession; in smb_mac_calc() local 107 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession); in smb_mac_calc() 112 rv = C_DigestInit(hSession, &mechanism); in smb_mac_calc() 117 rv = C_DigestUpdate(hSession, sign_ctx->ssc_mackey, in smb_mac_calc() 123 rv = C_DigestUpdate(hSession, (CK_BYTE_PTR)buf, SMB_SIG_OFFS); in smb_mac_calc() 128 rv = C_DigestUpdate(hSession, seq_buf, sizeof (seq_buf)); in smb_mac_calc() 133 rv = C_DigestUpdate(hSession, (CK_BYTE_PTR)buf + offset_end_of_sig, in smb_mac_calc() 138 rv = C_DigestFinal(hSession, mac, &diglen); in smb_mac_calc() 146 (void) C_CloseSession(hSession); in smb_mac_calc()
|
/titanic_44/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | pkcs11Object.c | 39 C_CreateObject(CK_SESSION_HANDLE hSession, in C_CreateObject() argument 50 return (fast_funcs->C_CreateObject(hSession, pTemplate, in C_CreateObject() 59 HANDLE2SESSION(hSession, sessp, rv); in C_CreateObject() 82 C_CopyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, in C_CopyObject() argument 91 return (fast_funcs->C_CopyObject(hSession, hObject, in C_CopyObject() 100 HANDLE2SESSION(hSession, sessp, rv); in C_CopyObject() 123 C_DestroyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject) in C_DestroyObject() argument 130 return (fast_funcs->C_DestroyObject(hSession, hObject)); in C_DestroyObject() 138 HANDLE2SESSION(hSession, sessp, rv); in C_DestroyObject() 161 C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, in C_GetAttributeValue() argument [all …]
|
H A D | pkcs11Crypt.c | 44 C_EncryptInit(CK_SESSION_HANDLE hSession, in C_EncryptInit() argument 58 return (fast_funcs->C_EncryptInit(hSession, pMechanism, hKey)); in C_EncryptInit() 66 HANDLE2SESSION(hSession, sessp, rv); in C_EncryptInit() 96 C_Encrypt(CK_SESSION_HANDLE hSession, in C_Encrypt() argument 107 return (fast_funcs->C_Encrypt(hSession, pData, ulDataLen, in C_Encrypt() 116 HANDLE2SESSION(hSession, sessp, rv); in C_Encrypt() 139 C_EncryptUpdate(CK_SESSION_HANDLE hSession, in C_EncryptUpdate() argument 150 return (fast_funcs->C_EncryptUpdate(hSession, pPart, ulPartLen, in C_EncryptUpdate() 159 HANDLE2SESSION(hSession, sessp, rv); in C_EncryptUpdate() 182 C_EncryptFinal(CK_SESSION_HANDLE hSession, in C_EncryptFinal() argument [all …]
|
H A D | pkcs11Sign.c | 43 C_SignInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in C_SignInit() argument 57 return (fast_funcs->C_SignInit(hSession, pMechanism, hKey)); in C_SignInit() 65 HANDLE2SESSION(hSession, sessp, rv); in C_SignInit() 95 C_Sign(CK_SESSION_HANDLE hSession, in C_Sign() argument 106 return (fast_funcs->C_Sign(hSession, pData, ulDataLen, in C_Sign() 115 HANDLE2SESSION(hSession, sessp, rv); in C_Sign() 139 C_SignUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen) in C_SignUpdate() argument 146 return (fast_funcs->C_SignUpdate(hSession, pPart, ulPartLen)); in C_SignUpdate() 154 HANDLE2SESSION(hSession, sessp, rv); in C_SignUpdate() 178 C_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_SignFinal() argument [all …]
|
H A D | pkcs11Verify.c | 43 C_VerifyInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in C_VerifyInit() argument 56 return (fast_funcs->C_VerifyInit(hSession, pMechanism, hKey)); in C_VerifyInit() 64 HANDLE2SESSION(hSession, sessp, rv); in C_VerifyInit() 95 C_Verify(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, in C_Verify() argument 103 return (fast_funcs->C_Verify(hSession, pData, ulDataLen, in C_Verify() 112 HANDLE2SESSION(hSession, sessp, rv); in C_Verify() 136 C_VerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_VerifyUpdate() argument 144 return (fast_funcs->C_VerifyUpdate(hSession, pPart, in C_VerifyUpdate() 153 HANDLE2SESSION(hSession, sessp, rv); in C_VerifyUpdate() 176 C_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyFinal() argument [all …]
|
H A D | pkcs11Digest.c | 43 C_DigestInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism) in C_DigestInit() argument 56 return (fast_funcs->C_DigestInit(hSession, pMechanism)); in C_DigestInit() 64 HANDLE2SESSION(hSession, sessp, rv); in C_DigestInit() 94 C_Digest(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, in C_Digest() argument 103 return (fast_funcs->C_Digest(hSession, pData, ulDataLen, in C_Digest() 112 HANDLE2SESSION(hSession, sessp, rv); in C_Digest() 136 C_DigestUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_DigestUpdate() argument 144 return (fast_funcs->C_DigestUpdate(hSession, pPart, in C_DigestUpdate() 153 HANDLE2SESSION(hSession, sessp, rv); in C_DigestUpdate() 176 C_DigestKey(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hKey) in C_DigestKey() argument [all …]
|
H A D | metaGlobal.h | 244 CK_SESSION_HANDLE hSession; member 622 CK_RV meta_handle2session(CK_SESSION_HANDLE hSession, 713 CK_RV meta_InitPIN(CK_SESSION_HANDLE hSession, CK_UTF8CHAR_PTR pPin, 715 CK_RV meta_SetPIN(CK_SESSION_HANDLE hSession, CK_UTF8CHAR_PTR pOldPin, 720 CK_RV meta_CloseSession(CK_SESSION_HANDLE hSession); 722 CK_RV meta_GetSessionInfo(CK_SESSION_HANDLE hSession, 724 CK_RV meta_GetOperationState(CK_SESSION_HANDLE hSession, 726 CK_RV meta_SetOperationState(CK_SESSION_HANDLE hSession, 729 CK_RV meta_Login(CK_SESSION_HANDLE hSession, CK_USER_TYPE userType, 731 CK_RV meta_Logout(CK_SESSION_HANDLE hSession); [all …]
|
H A D | pkcs11DualCrypt.c | 42 C_DigestEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_DigestEncryptUpdate() argument 51 return (fast_funcs->C_DigestEncryptUpdate(hSession, pPart, in C_DigestEncryptUpdate() 60 HANDLE2SESSION(hSession, sessp, rv); in C_DigestEncryptUpdate() 88 C_DecryptDigestUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, in C_DecryptDigestUpdate() argument 96 return (fast_funcs->C_DecryptDigestUpdate(hSession, in C_DecryptDigestUpdate() 106 HANDLE2SESSION(hSession, sessp, rv); in C_DecryptDigestUpdate() 133 C_SignEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_SignEncryptUpdate() argument 142 return (fast_funcs->C_SignEncryptUpdate(hSession, pPart, in C_SignEncryptUpdate() 151 HANDLE2SESSION(hSession, sessp, rv); in C_SignEncryptUpdate() 178 C_DecryptVerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, in C_DecryptVerifyUpdate() argument [all …]
|
H A D | pkcs11Session.c | 118 C_CloseSession(CK_SESSION_HANDLE hSession) in C_CloseSession() argument 125 return (fast_funcs->C_CloseSession(hSession)); in C_CloseSession() 133 HANDLE2SESSION(hSession, sessp, rv); in C_CloseSession() 247 C_GetSessionInfo(CK_SESSION_HANDLE hSession, CK_SESSION_INFO_PTR pInfo) in C_GetSessionInfo() argument 256 rv = fast_funcs->C_GetSessionInfo(hSession, pInfo); in C_GetSessionInfo() 276 HANDLE2SESSION(hSession, sessp, rv); in C_GetSessionInfo() 305 C_GetOperationState(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pOperationState, in C_GetOperationState() argument 314 return (fast_funcs->C_GetOperationState(hSession, in C_GetOperationState() 323 HANDLE2SESSION(hSession, sessp, rv); in C_GetOperationState() 347 C_SetOperationState(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pOperationState, in C_SetOperationState() argument [all …]
|
H A D | metaCrypt.c | 41 meta_EncryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in meta_EncryptInit() argument 51 rv = meta_handle2session(hSession, &session); in meta_EncryptInit() 75 meta_Encrypt(CK_SESSION_HANDLE hSession, in meta_Encrypt() argument 82 rv = meta_handle2session(hSession, &session); in meta_Encrypt() 106 meta_EncryptUpdate(CK_SESSION_HANDLE hSession, in meta_EncryptUpdate() argument 113 rv = meta_handle2session(hSession, &session); in meta_EncryptUpdate() 137 meta_EncryptFinal(CK_SESSION_HANDLE hSession, in meta_EncryptFinal() argument 143 rv = meta_handle2session(hSession, &session); in meta_EncryptFinal() 167 meta_DecryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in meta_DecryptInit() argument 177 rv = meta_handle2session(hSession, &session); in meta_DecryptInit() [all …]
|
H A D | pkcs11Keys.c | 42 C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in C_GenerateKey() argument 55 return (fast_funcs->C_GenerateKey(hSession, pMechanism, in C_GenerateKey() 64 HANDLE2SESSION(hSession, sessp, rv); in C_GenerateKey() 97 C_GenerateKeyPair(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in C_GenerateKeyPair() argument 113 return (fast_funcs->C_GenerateKeyPair(hSession, pMechanism, in C_GenerateKeyPair() 124 HANDLE2SESSION(hSession, sessp, rv); in C_GenerateKeyPair() 158 C_WrapKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in C_WrapKey() argument 172 return (fast_funcs->C_WrapKey(hSession, pMechanism, in C_WrapKey() 182 HANDLE2SESSION(hSession, sessp, rv); in C_WrapKey() 214 C_UnwrapKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in C_UnwrapKey() argument [all …]
|
H A D | metaDigest.c | 41 meta_DigestInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism) in meta_DigestInit() argument 49 rv = meta_handle2session(hSession, &session); in meta_DigestInit() 66 meta_Digest(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, in meta_Digest() argument 76 rv = meta_handle2session(hSession, &session); in meta_Digest() 94 meta_DigestUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in meta_DigestUpdate() argument 104 rv = meta_handle2session(hSession, &session); in meta_DigestUpdate() 128 meta_DigestKey(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hKey) in meta_DigestKey() argument 134 rv = meta_handle2session(hSession, &session); in meta_DigestKey() 160 meta_DigestFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pDigest, in meta_DigestFinal() argument 169 rv = meta_handle2session(hSession, &session); in meta_DigestFinal()
|
H A D | metaSign.c | 41 meta_SignInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in meta_SignInit() argument 51 rv = meta_handle2session(hSession, &session); in meta_SignInit() 75 meta_Sign(CK_SESSION_HANDLE hSession, in meta_Sign() argument 82 rv = meta_handle2session(hSession, &session); in meta_Sign() 106 meta_SignUpdate(CK_SESSION_HANDLE hSession, in meta_SignUpdate() argument 112 rv = meta_handle2session(hSession, &session); in meta_SignUpdate() 136 meta_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_SignFinal() argument 142 rv = meta_handle2session(hSession, &session); in meta_SignFinal() 165 meta_SignRecoverInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in meta_SignRecoverInit() argument 175 rv = meta_handle2session(hSession, &session); in meta_SignRecoverInit() [all …]
|
H A D | metaVerify.c | 41 meta_VerifyInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in meta_VerifyInit() argument 51 rv = meta_handle2session(hSession, &session); in meta_VerifyInit() 75 meta_Verify(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, in meta_Verify() argument 81 rv = meta_handle2session(hSession, &session); in meta_Verify() 106 meta_VerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in meta_VerifyUpdate() argument 112 rv = meta_handle2session(hSession, &session); in meta_VerifyUpdate() 136 meta_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in meta_VerifyFinal() argument 142 rv = meta_handle2session(hSession, &session); in meta_VerifyFinal() 170 meta_VerifyRecoverInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in meta_VerifyRecoverInit() argument 180 rv = meta_handle2session(hSession, &session); in meta_VerifyRecoverInit() [all …]
|
H A D | pkcs11SUNWExtensions.c | 125 void *args, CK_SESSION_HANDLE_PTR hSession) in pkcs11_GetCriteriaSession() argument 133 if (hSession == NULL || criteria == NULL) { in pkcs11_GetCriteriaSession() 183 NULL, hSession); in pkcs11_GetCriteriaSession() 199 SUNW_C_GetMechSession(CK_MECHANISM_TYPE mech, CK_SESSION_HANDLE_PTR hSession) in SUNW_C_GetMechSession() argument 215 if (hSession == NULL) { in SUNW_C_GetMechSession() 266 NULL, hSession); in SUNW_C_GetMechSession() 277 SUNW_C_KeyToObject(CK_SESSION_HANDLE hSession, CK_MECHANISM_TYPE mech, in SUNW_C_KeyToObject() argument 292 if ((hSession == NULL) || (obj == NULL) || in SUNW_C_KeyToObject() 309 rv = C_GetSessionInfo(hSession, &session_info); in SUNW_C_KeyToObject() 364 rv = C_CreateObject(hSession, template, i, obj); in SUNW_C_KeyToObject() [all …]
|
H A D | metaSession.c | 106 meta_CloseSession(CK_SESSION_HANDLE hSession) in meta_CloseSession() argument 112 rv = meta_handle2session(hSession, &session); in meta_CloseSession() 180 meta_GetSessionInfo(CK_SESSION_HANDLE hSession, CK_SESSION_INFO_PTR pInfo) in meta_GetSessionInfo() argument 188 rv = meta_handle2session(hSession, &session); in meta_GetSessionInfo() 227 slot_session->hSession, NULL, &length); in meta_getopstatelen() 239 meta_GetOperationState(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pOperationState, in meta_GetOperationState() argument 250 rv = meta_handle2session(hSession, &session); in meta_GetOperationState() 317 slot_session->hSession, in meta_GetOperationState() 382 slot_session->hSession, databuf, state->op_state_len, in meta_set_opstate() 390 slot_session->hSession, databuf, state->op_state_len, in meta_set_opstate() [all …]
|
/titanic_44/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | api_interface.c | 383 C_CancelFunction(CK_SESSION_HANDLE hSession) in C_CancelFunction() argument 449 C_CloseSession(CK_SESSION_HANDLE hSession) in C_CloseSession() argument 459 if (! Valid_Session((Session_Struct_t *)hSession, &rSession)) { in C_CloseSession() 468 sessp = (Session_Struct_t *)hSession; in C_CloseSession() 479 CK_SESSION_HANDLE hSession, in C_CopyObject() argument 491 if (!Valid_Session((Session_Struct_t *)hSession, &rSession)) { in C_CopyObject() 516 CK_SESSION_HANDLE hSession, in C_CreateObject() argument 527 if (! Valid_Session((Session_Struct_t *)hSession, &rSession)) { in C_CreateObject() 550 C_Decrypt(CK_SESSION_HANDLE hSession, in C_Decrypt() argument 562 if (!Valid_Session((Session_Struct_t *)hSession, &rSession)) { in C_Decrypt() [all …]
|
H A D | tpmtok_int.h | 1302 (ST_SESSION_T hSession, CK_CHAR_PTR pPin, 1306 (ST_SESSION_T hSession, CK_CHAR_PTR pOldPin, 1317 (ST_SESSION_T hSession); 1323 (ST_SESSION_T hSession, CK_SESSION_INFO_PTR pInfo); 1326 (ST_SESSION_T hSession, CK_BYTE_PTR pOperationState, 1330 (ST_SESSION_T hSession, CK_BYTE_PTR pOperationState, 1335 (CK_PTR ST_C_Login)(ST_SESSION_T hSession, 1339 (CK_PTR ST_C_Logout)(ST_SESSION_T hSession); 1342 (ST_SESSION_T hSession, CK_ATTRIBUTE_PTR pTemplate, 1347 (ST_SESSION_T hSession, CK_OBJECT_HANDLE hObject, [all …]
|
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softDualCrypt.c | 36 C_DigestEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_DigestEncryptUpdate() argument 47 rv = C_EncryptUpdate(hSession, pPart, ulPartLen, in C_DigestEncryptUpdate() 60 return (C_DigestUpdate(hSession, pPart, ulPartLen)); in C_DigestEncryptUpdate() 65 C_DecryptDigestUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, in C_DecryptDigestUpdate() argument 75 rv = C_DecryptUpdate(hSession, pEncryptedPart, ulEncryptedPartLen, in C_DecryptDigestUpdate() 88 return (C_DigestUpdate(hSession, pPart, *pulPartLen)); in C_DecryptDigestUpdate() 93 C_SignEncryptUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_SignEncryptUpdate() argument 104 rv = C_EncryptUpdate(hSession, pPart, ulPartLen, in C_SignEncryptUpdate() 117 return (C_SignUpdate(hSession, pPart, ulPartLen)); in C_SignEncryptUpdate() 122 C_DecryptVerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, in C_DecryptVerifyUpdate() argument [all …]
|
H A D | softSession.c | 71 C_CloseSession(CK_SESSION_HANDLE hSession) in C_CloseSession() argument 86 rv = handle2session(hSession, &session_p); in C_CloseSession() 182 C_GetSessionInfo(CK_SESSION_HANDLE hSession, CK_SESSION_INFO_PTR pInfo) in C_GetSessionInfo() argument 196 rv = handle2session(hSession, &session_p); in C_GetSessionInfo() 227 C_GetOperationState(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pOperationState, in C_GetOperationState() argument 241 rv = handle2session(hSession, &session_p); in C_GetOperationState() 267 C_SetOperationState(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pOperationState, in C_SetOperationState() argument 282 rv = handle2session(hSession, &session_p); in C_SetOperationState() 301 C_Login(CK_SESSION_HANDLE hSession, CK_USER_TYPE userType, CK_UTF8CHAR_PTR pPin, in C_Login() argument 316 rv = handle2session(hSession, &session_p); in C_Login() [all …]
|
H A D | softVerify.c | 35 C_VerifyInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in C_VerifyInit() argument 48 rv = handle2session(hSession, &session_p); in C_VerifyInit() 104 C_Verify(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, in C_Verify() argument 116 rv = handle2session(hSession, &session_p); in C_Verify() 163 C_VerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, in C_VerifyUpdate() argument 175 rv = handle2session(hSession, &session_p); in C_VerifyUpdate() 222 C_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, in C_VerifyFinal() argument 234 rv = handle2session(hSession, &session_p); in C_VerifyFinal() 263 C_VerifyRecoverInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, in C_VerifyRecoverInit() argument 276 rv = handle2session(hSession, &session_p); in C_VerifyRecoverInit() [all …]
|
/titanic_44/usr/src/lib/libsmbfs/smb/ |
H A D | crypt.c | 64 CK_SESSION_HANDLE hSession; in smb_encrypt_DES() local 95 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession); in smb_encrypt_DES() 105 rv = SUNW_C_KeyToObject(hSession, mechanism.mechanism, in smb_encrypt_DES() 112 rv = C_EncryptInit(hSession, &mechanism, hKey); in smb_encrypt_DES() 120 rv = C_EncryptUpdate(hSession, in smb_encrypt_DES() 129 (void) C_DestroyObject(hSession, hKey); in smb_encrypt_DES() 134 (void) C_DestroyObject(hSession, hKey); in smb_encrypt_DES() 136 (void) C_CloseSession(hSession); in smb_encrypt_DES() 174 CK_SESSION_HANDLE hSession; in smb_encrypt_RC4() local 186 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession); in smb_encrypt_RC4() [all …]
|
/titanic_44/usr/src/cmd/cmd-crypto/digest/ |
H A D | digest.c | 125 static CK_RV do_mac(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pmech, 128 static CK_RV do_digest(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pmech, 279 get_token_key(CK_SESSION_HANDLE hSession, CK_KEY_TYPE keytype, in get_token_key() argument 293 rv = C_Login(hSession, CKU_USER, (CK_UTF8CHAR_PTR)password, in get_token_key() 327 rv = C_FindObjectsInit(hSession, pTmpl, i); in get_token_key() 332 rv = C_FindObjects(hSession, keyobj, 1, &key_obj_count); in get_token_key() 333 (void) C_FindObjectsFinal(hSession); in get_token_key() 371 CK_SESSION_HANDLE hSession = CK_INVALID_HANDLE; in execute_cmd() local 593 NULL_PTR, NULL, &hSession); in execute_cmd() 647 rv = C_CreateObject(hSession, template, nattr, &key); in execute_cmd() [all …]
|