Lines Matching refs:mechanism
62 CK_MECHANISM mechanism; in smb_encrypt_DES() local
92 mechanism.mechanism = CKM_DES_ECB; in smb_encrypt_DES()
93 mechanism.pParameter = NULL; in smb_encrypt_DES()
94 mechanism.ulParameterLen = 0; in smb_encrypt_DES()
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()
172 CK_MECHANISM mechanism; in smb_encrypt_RC4() local
183 mechanism.mechanism = CKM_RC4; in smb_encrypt_RC4()
184 mechanism.pParameter = NULL; in smb_encrypt_RC4()
185 mechanism.ulParameterLen = 0; in smb_encrypt_RC4()
186 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession); in smb_encrypt_RC4()
191 rv = SUNW_C_KeyToObject(hSession, mechanism.mechanism, in smb_encrypt_RC4()
197 rv = C_EncryptInit(hSession, &mechanism, hKey); in smb_encrypt_RC4()