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/sha4.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/sha4.c')
-rw-r--r-- | crypto/sha4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/sha4.c b/crypto/sha4.c index 5c3097db4a..1b91e7fcc3 100644 --- a/crypto/sha4.c +++ b/crypto/sha4.c @@ -342,6 +342,7 @@ static struct digest_algo m512 = { .init = digest_sha512_init, .update = digest_sha4_update, .final = digest_sha4_final, + .digest = digest_generic_digest, .verify = digest_generic_verify, .length = SHA512_SUM_LEN, .ctx_length = sizeof(sha4_context), |