]> git.dujemihanovic.xyz Git - u-boot.git/commit
gen: Add progressive hash API
authorHung-ying Tyan <tyanh@chromium.org>
Mon, 3 Mar 2014 11:19:28 +0000 (12:19 +0100)
committerTom Rini <trini@ti.com>
Fri, 21 Mar 2014 20:39:36 +0000 (16:39 -0400)
commitbf007ebb6f4b01af675782d23bacbddd17e1a627
tree4af7e35d65c7332b6b9e8d7e8bec912d7b6e9193
parentdb1b5f3d20666ffd52d649a3bd6141989b596e3f
gen: Add progressive hash API

Add hash_init(), hash_update() and hash_finish() to the
hash_algo struct. Add hash_lookup_algo() to look up the
struct given an algorithm name.

Signed-off-by: Hung-ying Tyan <tyanh@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>
common/hash.c
include/hash.h