summaryrefslogtreecommitdiff
path: root/lib/avb/libavb/avb_sha.h
diff options
context:
space:
mode:
authorfang hui <hui.fang@nxp.com>2017-04-27 14:50:03 +0800
committerfang hui <hui.fang@nxp.com>2017-04-27 15:16:25 +0800
commit71dc860a61a936eca242c2badaad8815b352905b (patch)
tree32469833d886b05dae2ddee032a74bb8d8081a7b /lib/avb/libavb/avb_sha.h
parent4dc1d71d0da1d07913ef91e60f54338db70caa69 (diff)
downloadu-boot-imx-imx_v2015.04_brillo.zip
u-boot-imx-imx_v2015.04_brillo.tar.gz
u-boot-imx-imx_v2015.04_brillo.tar.bz2
MA-9530-2 [iot] Revet avb in ubootimx_v2015.04_brillo
Revert "libavb: upgrade avb" This reverts commit 94734eeca56e8d1b9f1baedf67e16cd0397fc178. Change-Id: I6eae3fa9579fb43fa6956c450011b230875d0a96
Diffstat (limited to 'lib/avb/libavb/avb_sha.h')
-rw-r--r--lib/avb/libavb/avb_sha.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/avb/libavb/avb_sha.h b/lib/avb/libavb/avb_sha.h
index c5a6a4c..b925bd2 100644
--- a/lib/avb/libavb/avb_sha.h
+++ b/lib/avb/libavb/avb_sha.h
@@ -37,12 +37,16 @@
extern "C" {
#endif
-#include "avb_crypto.h"
#include "avb_sysdeps.h"
+/* Size in bytes of a SHA-256 digest. */
+#define AVB_SHA256_DIGEST_SIZE 32
+
/* Block size in bytes of a SHA-256 digest. */
#define AVB_SHA256_BLOCK_SIZE 64
+/* Size in bytes of a SHA-512 digest. */
+#define AVB_SHA512_DIGEST_SIZE 64
/* Block size in bytes of a SHA-512 digest. */
#define AVB_SHA512_BLOCK_SIZE 128