summaryrefslogtreecommitdiffstats
path: root/TPM2-Plugin/test/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'TPM2-Plugin/test/main.c')
-rw-r--r--TPM2-Plugin/test/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/TPM2-Plugin/test/main.c b/TPM2-Plugin/test/main.c
index 9426529..046b3d7 100644
--- a/TPM2-Plugin/test/main.c
+++ b/TPM2-Plugin/test/main.c
@@ -33,6 +33,9 @@ void main(void)
SSHSM_HW_PLUGIN_ACTIVATE_LOAD_IN_INFO_t *activate_in_info;
activate_in_info = malloc(sizeof(SSHSM_HW_PLUGIN_ACTIVATE_LOAD_IN_INFO_t));
+ SSHSM_HW_PLUGIN_IMPORT_PUBLIC_KEY_INFO_t *importkey_info;
+ importkey_info = malloc(sizeof(SSHSM_HW_PLUGIN_IMPORT_PUBLIC_KEY_INFO_t));
+
SSHSM_HW_PLUGIN_ACTIVATE_LOAD_IN_INFO_t *loadkey_in_info;
loadkey_in_info = malloc(sizeof(SSHSM_HW_PLUGIN_ACTIVATE_LOAD_IN_INFO_t));
loadkey_in_info->num_buffers = 2;
@@ -60,7 +63,7 @@ void main(void)
tpm2_plugin_rsa_sign_init(keyHandle_sign, mechanism, param, len, (void *)hSession);
printf("---------------------------------------------\n");
- tpm2_plugin_load_key(loadkey_in_info, keyHandle);
+ tpm2_plugin_load_key(loadkey_in_info, keyHandle, importkey_info);
printf("---------------------------------------------\n");
tpm2_plugin_rsa_sign(keyHandle_sign, mechanism, msg, msg_len, (void *)hSession, sig, sig_len);