Lines Matching refs:hmacsha256
51 server->secmech.hmacsha256 = crypto_alloc_shash("hmac(sha256)", 0, 0); in smb2_crypto_shash_allocate()
52 if (IS_ERR(server->secmech.hmacsha256)) { in smb2_crypto_shash_allocate()
54 rc = PTR_ERR(server->secmech.hmacsha256); in smb2_crypto_shash_allocate()
55 server->secmech.hmacsha256 = NULL; in smb2_crypto_shash_allocate()
60 crypto_shash_descsize(server->secmech.hmacsha256); in smb2_crypto_shash_allocate()
63 crypto_free_shash(server->secmech.hmacsha256); in smb2_crypto_shash_allocate()
64 server->secmech.hmacsha256 = NULL; in smb2_crypto_shash_allocate()
67 server->secmech.sdeschmacsha256->shash.tfm = server->secmech.hmacsha256; in smb2_crypto_shash_allocate()
91 crypto_free_shash(server->secmech.hmacsha256); in smb3_crypto_shash_allocate()
92 server->secmech.hmacsha256 = NULL; in smb3_crypto_shash_allocate()
105 crypto_free_shash(server->secmech.hmacsha256); in smb3_crypto_shash_allocate()
107 server->secmech.hmacsha256 = NULL; in smb3_crypto_shash_allocate()
161 rc = crypto_shash_setkey(server->secmech.hmacsha256, in smb2_calc_signature()
244 rc = crypto_shash_setkey(ses->server->secmech.hmacsha256, in generate_smb3signingkey()