Searched refs:secmech (Results 1 – 3 of 3) sorted by relevance
43 if (server->secmech.sdescmd5 != NULL) in cifs_crypto_shash_md5_allocate()46 server->secmech.md5 = crypto_alloc_shash("md5", 0, 0); in cifs_crypto_shash_md5_allocate()47 if (IS_ERR(server->secmech.md5)) { in cifs_crypto_shash_md5_allocate()49 rc = PTR_ERR(server->secmech.md5); in cifs_crypto_shash_md5_allocate()50 server->secmech.md5 = NULL; in cifs_crypto_shash_md5_allocate()55 crypto_shash_descsize(server->secmech.md5); in cifs_crypto_shash_md5_allocate()56 server->secmech.sdescmd5 = kmalloc(size, GFP_KERNEL); in cifs_crypto_shash_md5_allocate()57 if (!server->secmech.sdescmd5) { in cifs_crypto_shash_md5_allocate()58 crypto_free_shash(server->secmech.md5); in cifs_crypto_shash_md5_allocate()59 server->secmech.md5 = NULL; in cifs_crypto_shash_md5_allocate()[all …]
48 if (server->secmech.sdeschmacsha256 != NULL) in smb2_crypto_shash_allocate()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()61 server->secmech.sdeschmacsha256 = kmalloc(size, GFP_KERNEL); in smb2_crypto_shash_allocate()62 if (!server->secmech.sdeschmacsha256) { 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()[all …]
591 struct cifs_secmech secmech; /* crypto sec mech functs, descriptors */ member