diff options
author | Haoran Wang <elven.wang@nxp.com> | 2017-04-10 13:47:43 +0800 |
---|---|---|
committer | Haoran Wang <elven.wang@nxp.com> | 2017-04-10 14:15:54 +0800 |
commit | 94734eeca56e8d1b9f1baedf67e16cd0397fc178 (patch) | |
tree | fe5bb4b50a4deb0fc4932a76f22052a8de0ea40e /lib/avb/libavb/avb_sha256.c | |
parent | fd6ee4e63dd34c466d2ba1881655f2b6a59add4c (diff) | |
download | u-boot-imx-94734eeca56e8d1b9f1baedf67e16cd0397fc178.zip u-boot-imx-94734eeca56e8d1b9f1baedf67e16cd0397fc178.tar.gz u-boot-imx-94734eeca56e8d1b9f1baedf67e16cd0397fc178.tar.bz2 |
libavb: upgrade avb
Upgrade avb libs to:
AndroidPartnerRepo/brillo/platform/external/avb:
commit 030120cf1c89345deecbd94c9c0d12f61718ba39
Change-Id: I71a84a8b7afa5661a5e008f5a509f8cc790f154f
Signed-off-by: Haoran Wang <elven.wang@nxp.com>
Diffstat (limited to 'lib/avb/libavb/avb_sha256.c')
-rw-r--r-- | lib/avb/libavb/avb_sha256.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/avb/libavb/avb_sha256.c b/lib/avb/libavb/avb_sha256.c index b1748eb..cdd143a 100644 --- a/lib/avb/libavb/avb_sha256.c +++ b/lib/avb/libavb/avb_sha256.c @@ -77,9 +77,14 @@ wv[h] = t1 + t2; \ } -static const uint32_t sha256_h0[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, - 0xa54ff53a, 0x510e527f, 0x9b05688c, - 0x1f83d9ab, 0x5be0cd19}; +static const uint32_t sha256_h0[8] = {0x6a09e667, + 0xbb67ae85, + 0x3c6ef372, + 0xa54ff53a, + 0x510e527f, + 0x9b05688c, + 0x1f83d9ab, + 0x5be0cd19}; static const uint32_t sha256_k[64] = { 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, @@ -116,7 +121,8 @@ void avb_sha256_init(AvbSHA256Ctx* ctx) { ctx->tot_len = 0; } -static void SHA256_transform(AvbSHA256Ctx* ctx, const uint8_t* message, +static void SHA256_transform(AvbSHA256Ctx* ctx, + const uint8_t* message, unsigned int block_nb) { uint32_t w[64]; uint32_t wv[8]; |