ibmswtpm2/bits.patch

16 lines
629 B
Diff
Raw Normal View History

diff -ur ibmtpm832/src/Implementation.h ibmswtpm2-832/src/Implementation.h
--- ibmtpm832/src/Implementation.h 2016-11-18 22:42:16.000000000 +0100
+++ ibmswtpm2-832/src/Implementation.h 2017-01-30 17:36:16.279264575 +0100
@@ -301,7 +301,11 @@
/* From Vendor-Specific: Table 7 - Defines for Implementation Values */
#define FIELD_UPGRADE_IMPLEMENTED NO
#ifdef TPM_POSIX
+#if defined(__LP64__) || defined(_LP64)
#define RADIX_BITS 64 /* kgold */
+#else
+#define RADIX_BITS 32 /* kgold */
+#endif
#endif
#ifdef TPM_WINDOWS
#define RADIX_BITS 32 /* kgold */