提交 f88ad8de 编写于 作者: H Herbert Xu

crypto: shash - Use finup in default digest

This patch simplifies the default digest function by using finup.
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 0390e6ae
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册