Manufacturer and vendor strings need to be defined by the implementor.

This commit is contained in:
dmattoon 2024-09-09 10:30:58 -07:00
Родитель af2185656b
Коммит 2319a84b1e
2 изменённых файлов: 10 добавлений и 5 удалений

Просмотреть файл

@ -5,6 +5,10 @@ This TPM implementation is based on the [TPM reference implementation](https://g
## Design
### Define Manufacturer and Vendor Strings
Implementors must define `MANUFACTURER` and vendor strings (at least `VENDOR_STRING_1`) in the the following header: `TAs\optee_ta\fTPM\reference\include\VendorString.h`.
### Platform
The TPM reference implementation defines a platform API (`ms-tpm-20-ref/TPMCmd/Platform`) which can be swapped out depending on where the TPM code is running. In the case of the fTPM the OP-TEE API is used to implement this platform.

Просмотреть файл

@ -40,7 +40,8 @@
// for TPM_PT_MANUFACTURER in TPM2_GetCapability.
// The following line should be un-commented and a vendor specific string
// should be provided here.
#define MANUFACTURER "MSFT"
// #define MANUFACTURER "1234"
// The following #if macro may be deleted after a proper MANUFACTURER is provided.
#ifndef MANUFACTURER
@ -56,10 +57,10 @@ manufacturer name.
// The following line should be un-commented and a vendor specific string
// should be provided here.
// The vendor strings 2-4 may also be defined as appropriately.
#define VENDOR_STRING_1 "MSR "
#define VENDOR_STRING_2 "fTPM"
// #define VENDOR_STRING_3
// #define VENDOR_STRING_4
// #define VENDOR_STRING_1 "1234"
// #define VENDOR_STRING_2 "1234"
// #define VENDOR_STRING_3 "1234"
// #define VENDOR_STRING_4 "1234"
// The following #if macro may be deleted after a proper VENDOR_STRING_1
// is provided.