aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Pronin <apronin@chromium.org>2016-12-05 23:03:13 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-12-05 23:03:13 +0000
commit2fe751e2554970ea86d60cb124e9d42198c310dc (patch)
treeb972f5365e96d0a5cfc4a502010931a737cb7973
parent7906c74bd6c1caa046b5c4f6e6ba6282d033f669 (diff)
parentd936fce9817f83351bd878207319626528e18f2f (diff)
downloadtpm2-2fe751e2554970ea86d60cb124e9d42198c310dc.tar.gz
tpm2: enable all SHA-xxx hashing algorithms am: f037a5c57c am: 3f545ad4e8 am: da73c11811
am: d936fce981 Change-Id: I22beb227166d3e90196b76f9ac42726cb96df520
-rw-r--r--Implementation.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/Implementation.h b/Implementation.h
index 92d9ecf..755945e 100644
--- a/Implementation.h
+++ b/Implementation.h
@@ -45,12 +45,8 @@
#define ALG_XOR ALG_YES
#define ALG_KEYEDHASH ALG_YES
#define ALG_SHA256 ALG_YES
-#ifdef EMBEDDED_MODE
-#define ALG_SHA384 ALG_NO
-#else
#define ALG_SHA384 ALG_YES
-#endif
-#define ALG_SHA512 ALG_NO
+#define ALG_SHA512 ALG_YES
#define ALG_SM3_256 ALG_NO
#define ALG_SM4 ALG_NO
#define ALG_RSASSA (ALG_YES*ALG_RSA)
@@ -265,7 +261,10 @@
// This must be matched by the package using this library!
#define NV_MEMORY_SIZE 16076
// Versioning NV storage format will allow to smoothly migrate NVRAM contents.
-#define NV_FORMAT_VERSION 1
+// Versions:
+// 1 - full non-serialized objects in NVRAM, max SHA digest is SHA-256
+// 2 - full non-serialized objects in NVRAM, max SHA digest is SHA-512
+#define NV_FORMAT_VERSION 2
#else
#define NV_MEMORY_SIZE 16384
#endif