Lines Matching refs:shash
223 struct shash_desc *shash = NULL; in smb2_calc_signature() local
236 rc = cifs_alloc_hash("hmac(sha256)", &shash); in smb2_calc_signature()
243 shash = server->secmech.hmacsha256; in smb2_calc_signature()
246 rc = crypto_shash_setkey(shash->tfm, ses->auth_key.response, in smb2_calc_signature()
255 rc = crypto_shash_init(shash); in smb2_calc_signature()
270 rc = crypto_shash_update(shash, iov[0].iov_base, in smb2_calc_signature()
282 rc = __cifs_calc_signature(&drqst, server, sigptr, shash); in smb2_calc_signature()
288 cifs_free_hash(&shash); in smb2_calc_signature()
543 struct shash_desc *shash = NULL; in smb3_calc_signature() local
554 rc = cifs_alloc_hash("cmac(aes)", &shash); in smb3_calc_signature()
558 shash = server->secmech.aes_cmac; in smb3_calc_signature()
564 rc = crypto_shash_setkey(shash->tfm, key, SMB2_CMACAES_SIZE); in smb3_calc_signature()
575 rc = crypto_shash_init(shash); in smb3_calc_signature()
590 rc = crypto_shash_update(shash, iov[0].iov_base, in smb3_calc_signature()
601 rc = __cifs_calc_signature(&drqst, server, sigptr, shash); in smb3_calc_signature()
607 cifs_free_hash(&shash); in smb3_calc_signature()