libtpms might need to pull in https://github.com/stefanberger/libtpms/commit/d78a4520ba3157087e1e438b519618f26d85fae3 -- I think without this fix, the following algorithms may not work right:
#define ALG_KDF1_SP800_56A_VALUE 0x0020 #define TPM_ALG_KDF1_SP800_56A (TPM_ALG_ID)(ALG_KDF1_SP800_56A_VALUE) #define ALG_KDF2_VALUE 0x0021 #define TPM_ALG_KDF2 (TPM_ALG_ID)(ALG_KDF2_VALUE) #define ALG_KDF1_SP800_108_VALUE 0x0022 #define TPM_ALG_KDF1_SP800_108 (TPM_ALG_ID)(ALG_KDF1_SP800_108_VALUE) #define ALG_ECC_VALUE 0x0023 #define TPM_ALG_ECC (TPM_ALG_ID)(ALG_ECC_VALUE) #define ALG_SYMCIPHER_VALUE 0x0025 #define TPM_ALG_SYMCIPHER (TPM_ALG_ID)(ALG_SYMCIPHER_VALUE) #define ALG_CAMELLIA_VALUE 0x0026 #define TPM_ALG_CAMELLIA (TPM_ALG_ID)(ALG_CAMELLIA_VALUE) #define ALG_SHA3_256_VALUE 0x0027 #define TPM_ALG_SHA3_256 (TPM_ALG_ID)(ALG_SHA3_256_VALUE) #define ALG_SHA3_384_VALUE 0x0028 #define TPM_ALG_SHA3_384 (TPM_ALG_ID)(ALG_SHA3_384_VALUE) #define ALG_SHA3_512_VALUE 0x0029 #define TPM_ALG_SHA3_512 (TPM_ALG_ID)(ALG_SHA3_512_VALUE) #define ALG_CMAC_VALUE 0x003F #define TPM_ALG_CMAC (TPM_ALG_ID)(ALG_CMAC_VALUE) #define ALG_CTR_VALUE 0x0040 #define TPM_ALG_CTR (TPM_ALG_ID)(ALG_CTR_VALUE) #define ALG_OFB_VALUE 0x0041 #define TPM_ALG_OFB (TPM_ALG_ID)(ALG_OFB_VALUE) #define ALG_CBC_VALUE 0x0042 #define TPM_ALG_CBC (TPM_ALG_ID)(ALG_CBC_VALUE) #define ALG_CFB_VALUE 0x0043 #define TPM_ALG_CFB (TPM_ALG_ID)(ALG_CFB_VALUE) #define ALG_ECB_VALUE 0x0044 #define TPM_ALG_ECB (TPM_ALG_ID)(ALG_ECB_VALUE)
Thanks
libtpms might need to pull in https:/ /github. com/stefanberge r/libtpms/ commit/ d78a4520ba31570 87e1e438b519618 f26d85fae3 -- I think without this fix, the following algorithms may not work right:
#define ALG_KDF1_ SP800_56A_ VALUE 0x0020 KDF1_SP800_ 56A (TPM_ALG_ ID)(ALG_ KDF1_SP800_ 56A_VALUE) ID)(ALG_ KDF2_VALUE) SP800_108_ VALUE 0x0022 KDF1_SP800_ 108 (TPM_ALG_ ID)(ALG_ KDF1_SP800_ 108_VALUE) ID)(ALG_ ECC_VALUE) ID)(ALG_ SYMCIPHER_ VALUE) ID)(ALG_ CAMELLIA_ VALUE) ID)(ALG_ SHA3_256_ VALUE) ID)(ALG_ SHA3_384_ VALUE) ID)(ALG_ SHA3_512_ VALUE) ID)(ALG_ CMAC_VALUE) ID)(ALG_ CTR_VALUE) ID)(ALG_ OFB_VALUE) ID)(ALG_ CBC_VALUE) ID)(ALG_ CFB_VALUE) ID)(ALG_ ECB_VALUE)
#define TPM_ALG_
#define ALG_KDF2_VALUE 0x0021
#define TPM_ALG_KDF2 (TPM_ALG_
#define ALG_KDF1_
#define TPM_ALG_
#define ALG_ECC_VALUE 0x0023
#define TPM_ALG_ECC (TPM_ALG_
#define ALG_SYMCIPHER_VALUE 0x0025
#define TPM_ALG_SYMCIPHER (TPM_ALG_
#define ALG_CAMELLIA_VALUE 0x0026
#define TPM_ALG_CAMELLIA (TPM_ALG_
#define ALG_SHA3_256_VALUE 0x0027
#define TPM_ALG_SHA3_256 (TPM_ALG_
#define ALG_SHA3_384_VALUE 0x0028
#define TPM_ALG_SHA3_384 (TPM_ALG_
#define ALG_SHA3_512_VALUE 0x0029
#define TPM_ALG_SHA3_512 (TPM_ALG_
#define ALG_CMAC_VALUE 0x003F
#define TPM_ALG_CMAC (TPM_ALG_
#define ALG_CTR_VALUE 0x0040
#define TPM_ALG_CTR (TPM_ALG_
#define ALG_OFB_VALUE 0x0041
#define TPM_ALG_OFB (TPM_ALG_
#define ALG_CBC_VALUE 0x0042
#define TPM_ALG_CBC (TPM_ALG_
#define ALG_CFB_VALUE 0x0043
#define TPM_ALG_CFB (TPM_ALG_
#define ALG_ECB_VALUE 0x0044
#define TPM_ALG_ECB (TPM_ALG_
Thanks