tpm2: update test-tpm2 for tpm2_calculate_seal()
Add testing for tpm2_calculate_seal().
This commit is contained in:
@@ -4335,7 +4335,7 @@ int tpm2_tpm2b_public_from_pem(const void *pem, size_t pem_size, TPM2B_PUBLIC *r
|
||||
* objects are required, while the seed is optional. This is not a (publicly) standard format, this is
|
||||
* specific to how we currently store the sealed object. This 'blob' can be unmarshalled by
|
||||
* tpm2_unmarshal_blob(). */
|
||||
static int tpm2_marshal_blob(
|
||||
int tpm2_marshal_blob(
|
||||
const TPM2B_PUBLIC *public,
|
||||
const TPM2B_PRIVATE *private,
|
||||
const TPM2B_ENCRYPTED_SECRET *seed,
|
||||
@@ -4385,7 +4385,7 @@ static int tpm2_marshal_blob(
|
||||
* in the 'blob', while the seed is optional. This is not a (publicly) standard format, this is specific to
|
||||
* how we currently store the sealed object. This expects the 'blob' to have been created by
|
||||
* tpm2_marshal_blob(). */
|
||||
static int tpm2_unmarshal_blob(
|
||||
int tpm2_unmarshal_blob(
|
||||
const void *blob,
|
||||
size_t blob_size,
|
||||
TPM2B_PUBLIC *ret_public,
|
||||
|
||||
@@ -128,6 +128,8 @@ int tpm2_create_loaded(Tpm2Context *c, const Tpm2Handle *parent, const Tpm2Handl
|
||||
int tpm2_load(Tpm2Context *c, const Tpm2Handle *parent, const Tpm2Handle *session, const TPM2B_PUBLIC *public, const TPM2B_PRIVATE *private, Tpm2Handle **ret_handle);
|
||||
int tpm2_marshal_nv_public(const TPM2B_NV_PUBLIC *nv_public, void **ret, size_t *ret_size);
|
||||
int tpm2_unmarshal_nv_public(const void *data, size_t size, TPM2B_NV_PUBLIC *ret_nv_public);
|
||||
int tpm2_marshal_blob(const TPM2B_PUBLIC *public, const TPM2B_PRIVATE *private, const TPM2B_ENCRYPTED_SECRET *seed, void **ret_blob, size_t *ret_blob_size);
|
||||
int tpm2_unmarshal_blob(const void *blob, size_t blob_size, TPM2B_PUBLIC *ret_public, TPM2B_PRIVATE *ret_private, TPM2B_ENCRYPTED_SECRET *ret_seed);
|
||||
|
||||
bool tpm2_supports_alg(Tpm2Context *c, TPM2_ALG_ID alg);
|
||||
bool tpm2_supports_command(Tpm2Context *c, TPM2_CC command);
|
||||
|
||||
Reference in New Issue
Block a user