diff options
author | nagendra modadugu <ngm@google.com> | 2016-12-08 14:31:45 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-12-12 23:28:20 -0800 |
commit | 0bb18fbaac32344a424d09642bd5dd3089a0292e (patch) | |
tree | 80659f751127ae9b6882c267d887506f2f50d3ed /board/cr50/build.mk | |
parent | 995c6b69853d319797dec2d5f0fc74309a3ef96e (diff) | |
download | chrome-ec-0bb18fbaac32344a424d09642bd5dd3089a0292e.tar.gz |
CR50: add support for SHA-384 & 512
This change adds the plumbing for SHA-384 & 512.
The actual hash implementation is software only,
and a part of the third_party/cryptoc library.
BRANCH=none
BUG=none
CQ-DEPEND=CL:418263
TEST=TCG tests pass
Change-Id: Iba7e6d420fd7fa0bce4ad9061e00f9275ecf4d72
Signed-off-by: nagendra modadugu <ngm@google.com>
Reviewed-on: https://chromium-review.googlesource.com/417888
Commit-Ready: Nagendra Modadugu <ngm@google.com>
Tested-by: Nagendra Modadugu <ngm@google.com>
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'board/cr50/build.mk')
-rw-r--r-- | board/cr50/build.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/cr50/build.mk b/board/cr50/build.mk index 48fb0c2a92..d2194c39e4 100644 --- a/board/cr50/build.mk +++ b/board/cr50/build.mk @@ -64,13 +64,13 @@ CPPFLAGS += -I$(abspath .) CPPFLAGS += -I$(abspath $(BDIR)) CPPFLAGS += -I$(abspath ./test) -# Make sure the context of the software sha256 implementation fits. If it ever +# Make sure the context of the software sha512 implementation fits. If it ever # increases, a compile time assert will fire in tpm2/hash.c. -CFLAGS += -DUSER_MIN_HASH_STATE_SIZE=112 +CFLAGS += -DUSER_MIN_HASH_STATE_SIZE=208 # Configure TPM2 headers accordingly. CFLAGS += -DEMBEDDED_MODE=1 # Configure cryptoc headers to handle unaligned accesses. -CFLAGS += -DSUPPORT_UNALIGNED=1 +CFLAGS += -DSUPPORT_UNALIGNED=1 -DSHA512_SUPPORT=1 # Add dependencies on that library $(out)/RW/ec.RW.elf $(out)/RW/ec.RW_B.elf: LDFLAGS_EXTRA += -L$(out)/tpm2 -ltpm2 |