Skip to content

Commit

Permalink
crypto: hash - Add missing top-level functions
Browse files Browse the repository at this point in the history
The top-level functions init/update/final were missing for ahash.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Herbert Xu committed Aug 13, 2008
1 parent dbaaba1 commit 318e531
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions include/crypto/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,24 @@ static inline int crypto_ahash_digest(struct ahash_request *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,
struct crypto_ahash *tfm)
{
Expand Down

0 comments on commit 318e531

Please sign in to comment.