diff options
author | Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com> | 2019-02-26 08:41:02 -0800 |
---|---|---|
committer | Pramod <pramod.raghavendra.jayathirth@intel.com> | 2019-04-03 22:56:57 +0000 |
commit | 627d269bcc8761058b2d14a9be2a6fe706f065a8 (patch) | |
tree | b0b07f4410d6fff7e50d6013a5d88bb3e2712f98 /tpm-util/duplicate/include/crypto_aux.h | |
parent | 7626b75b3c71173ba62c2f92d22bab8f4291e44a (diff) |
Upgrade Duplicate utility to the latest tss
This patch updates the Duplicate utility to
match with the latest tss stack
Issue-ID: AAF-763
Change-Id: I08a01b193e8cf550fa1cfcbe0781672b3051eb96
Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
Diffstat (limited to 'tpm-util/duplicate/include/crypto_aux.h')
-rw-r--r-- | tpm-util/duplicate/include/crypto_aux.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tpm-util/duplicate/include/crypto_aux.h b/tpm-util/duplicate/include/crypto_aux.h index 272cc39..5774933 100644 --- a/tpm-util/duplicate/include/crypto_aux.h +++ b/tpm-util/duplicate/include/crypto_aux.h @@ -19,10 +19,12 @@ #define CRYPTO_AUX #include <string.h> -#include <sapi/tpm20.h> +#include <tss2/tss2_sys.h> +#include <tss2/tss2_tcti_mssim.h> +#include <tss2/tss2_tpm2_types.h> +#include <tss2/tpm2b.h> #include <openssl/rsa.h> #include <openssl/aes.h> -#include <openssl/rsa.h> #include <openssl/sha.h> #include <openssl/hmac.h> #include <openssl/evp.h> @@ -49,7 +51,7 @@ void AES_128_CFB_enc_dec( -TPM_RC KDFa( TPMI_ALG_HASH hashAlg, TPM2B *key, char *label, +TPM2_RC KDFa( TPMI_ALG_HASH hashAlg, TPM2B *key, char *label, TPM2B *contextU, TPM2B *contextV, UINT16 bits, TPM2B_MAX_BUFFER *resultKey ); UINT32 OpenSslHmac( TPMI_ALG_HASH hashAlg, TPM2B *key,TPM2B **bufferList, TPM2B_DIGEST *result ); |