cifs: secmech: use shash_desc directly, remove sdesc
authorEnzo Matsumiya <ematsumiya@suse.de>
Thu, 29 Sep 2022 20:36:50 +0000 (17:36 -0300)
committerSteve French <stfrench@microsoft.com>
Sat, 8 Oct 2022 04:08:39 +0000 (23:08 -0500)
commit1f3d5477b944c8db8d73d7070ea98d8f1a8224c0
treecdd5360f58d945caf02b4091ac4f9291d653c48b
parent8698baa1b768fc5cd4bf73e846680a812678d029
cifs: secmech: use shash_desc directly, remove sdesc

The struct sdesc is just a wrapper around shash_desc, with exact same
memory layout. Replace the hashing TFMs with shash_desc as it's what's
passed to the crypto API anyway.

Also remove the crypto_shash pointers as they can be accessed via
shash_desc->tfm (and are actually only used in the setkey calls).

Adapt cifs_{alloc,free}_hash functions to this change.

Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/link.c
fs/cifs/misc.c
fs/cifs/smb2misc.c
fs/cifs/smb2transport.c