Lines Matching refs:hSession

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()
118 rv = C_SignFinal(hSession, (CK_BYTE_PTR)digest, &diglen); in smb_auth_hmac_md5()
120 (void) C_DestroyObject(hSession, hKey); in smb_auth_hmac_md5()
121 (void) C_CloseSession(hSession); in smb_auth_hmac_md5()
124 (void) C_DestroyObject(hSession, hKey); in smb_auth_hmac_md5()
125 (void) C_CloseSession(hSession); in smb_auth_hmac_md5()
140 CK_SESSION_HANDLE hSession; in smb_auth_DES() local
171 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession); in smb_auth_DES()
181 rv = SUNW_C_KeyToObject(hSession, mechanism.mechanism, in smb_auth_DES()
188 rv = C_EncryptInit(hSession, &mechanism, hKey); in smb_auth_DES()
196 rv = C_EncryptUpdate(hSession, in smb_auth_DES()
205 (void) C_DestroyObject(hSession, hKey); in smb_auth_DES()
210 (void) C_DestroyObject(hSession, hKey); in smb_auth_DES()
212 (void) C_CloseSession(hSession); in smb_auth_DES()
252 CK_SESSION_HANDLE hSession; in smb_auth_RC4() local
264 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession); in smb_auth_RC4()
269 rv = SUNW_C_KeyToObject(hSession, mechanism.mechanism, in smb_auth_RC4()
275 rv = C_EncryptInit(hSession, &mechanism, hKey); in smb_auth_RC4()
280 rv = C_EncryptUpdate(hSession, in smb_auth_RC4()
287 (void) C_DestroyObject(hSession, hKey); in smb_auth_RC4()
289 (void) C_CloseSession(hSession); in smb_auth_RC4()