]> git.baikalelectronics.ru Git - kernel.git/commit
fscrypt: use sha256() instead of open coding
authorEric Biggers <ebiggers@google.com>
Thu, 17 Sep 2020 04:53:41 +0000 (21:53 -0700)
committerEric Biggers <ebiggers@google.com>
Tue, 22 Sep 2020 13:48:54 +0000 (06:48 -0700)
commite93a2e1be89be91534a6251646b0cda48a48b461
tree56b8d9fffcd165281face08e83a6991ce2d3c5df
parent99ea4797d32389bfcc9018a652d6d298dfcd5812
fscrypt: use sha256() instead of open coding

Now that there's a library function that calculates the SHA-256 digest
of a buffer in one step, use it instead of sha256_init() +
sha256_update() + sha256_final().

Link: https://lore.kernel.org/r/20200917045341.324996-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/fname.c