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/sha1.c | |
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/sha1.c')
-rw-r--r-- | crypto/sha1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/sha1.c b/crypto/sha1.c index 09dee87321..b108f8ae31 100644 --- a/crypto/sha1.c +++ b/crypto/sha1.c @@ -315,6 +315,7 @@ static struct digest_algo m = { .init = digest_sha1_init, .update = digest_sha1_update, .final = digest_sha1_final, + .digest = digest_generic_digest, .verify = digest_generic_verify, .length = SHA1_SUM_LEN, .ctx_length = sizeof(sha1_context), |