提交 318e5313 编写于 作者: H Herbert Xu

crypto: hash - Add missing top-level functions

The top-level functions init/update/final were missing for ahash.
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 dbaaba1d
...@@ -101,6 +101,24 @@ static inline int crypto_ahash_digest(struct ahash_request *req) ...@@ -101,6 +101,24 @@ static inline int crypto_ahash_digest(struct ahash_request *req)
return crt->digest(req); return crt->digest(req);
} }
static inline int crypto_ahash_init(struct ahash_request *req)
{
struct ahash_tfm *crt = crypto_ahash_crt(crypto_ahash_reqtfm(req));
return crt->init(req);
}
static inline int crypto_ahash_update(struct ahash_request *req)
{
struct ahash_tfm *crt = crypto_ahash_crt(crypto_ahash_reqtfm(req));
return crt->update(req);
}
static inline int crypto_ahash_final(struct ahash_request *req)
{
struct ahash_tfm *crt = crypto_ahash_crt(crypto_ahash_reqtfm(req));
return crt->final(req);
}
static inline void ahash_request_set_tfm(struct ahash_request *req, static inline void ahash_request_set_tfm(struct ahash_request *req,
struct crypto_ahash *tfm) struct crypto_ahash *tfm)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册