projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0390e6a
)
crypto: shash - Use finup in default digest
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 8 Jul 2009 15:32:08 +0000
(23:32 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 8 Jul 2009 15:32:08 +0000
(23:32 +0800)
This patch simplifies the default digest function by using finup.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/shash.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/shash.c
b/crypto/shash.c
index 3d242425d69244c4d5a85c73418d9307dbe2a8d7..783231090005ab489e0585c9882d74839923f5ed 100644
(file)
--- a/
crypto/shash.c
+++ b/
crypto/shash.c
@@
-154,8
+154,7
@@
static int shash_digest_unaligned(struct shash_desc *desc, const u8 *data,
unsigned int len, u8 *out)
{
return crypto_shash_init(desc) ?:
- crypto_shash_update(desc, data, len) ?:
- crypto_shash_final(desc, out);
+ crypto_shash_finup(desc, data, len, out);
}
int crypto_shash_digest(struct shash_desc *desc, const u8 *data,