summaryrefslogtreecommitdiffstats
path: root/crypto/md5.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2015-03-17 12:53:11 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-19 07:46:22 +0100
commit7aeb9650b6c57a81c0cf903a3977e6d6fbb2808c (patch)
tree21490f2e829ad93f622b09d5c3bb7d322dc43a39 /crypto/md5.c
parentec4f9699718054f2b4e49ed441f3420c257f5f26 (diff)
downloadbarebox-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/md5.c')
-rw-r--r--crypto/md5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/md5.c b/crypto/md5.c
index 4847b38631..b7ad6f27e9 100644
--- a/crypto/md5.c
+++ b/crypto/md5.c
@@ -294,6 +294,7 @@ static struct digest_algo md5 = {
.init = digest_md5_init,
.update = digest_md5_update,
.final = digest_md5_final,
+ .digest = digest_generic_digest,
.verify = digest_generic_verify,
.length = 16,
.ctx_length = sizeof(struct MD5Context),