diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2015-03-17 12:53:11 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-19 07:46:22 +0100 |
commit | 7aeb9650b6c57a81c0cf903a3977e6d6fbb2808c (patch) | |
tree | 21490f2e829ad93f622b09d5c3bb7d322dc43a39 /crypto/internal.h | |
parent | ec4f9699718054f2b4e49ed441f3420c257f5f26 (diff) | |
download | barebox-7aeb9650b6c57a81c0cf903a3977e6d6fbb2808c.tar.gz barebox-7aeb9650b6c57a81c0cf903a3977e6d6fbb2808c.tar.xz |
digest: add digest callback
Combination of @init and @update and @final. This function
effectively behaves as the entire chain of operations, @init,
@update and @final issued in sequence. This is added for hardware
which cannot do even the @finup, but can only do the whole
transformation in one run.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r-- | crypto/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/internal.h b/crypto/internal.h index f482654f63..c6f5908ea0 100644 --- a/crypto/internal.h +++ b/crypto/internal.h @@ -15,3 +15,5 @@ static inline int digest_hmac_register(struct digest_algo *algo, #endif int digest_generic_verify(struct digest *d, const unsigned char *md); +int digest_generic_digest(struct digest *d, const void *data, + unsigned int len, u8 *out); |