rc = PTS_INTERNAL_ERROR;
goto error;
} else if (rc != PTS_SUCCESS) {
+ DEBUG("createTssSignKey() failed\n");
addReason(ctx, -1,
"[PTSC-INIT] Could not create the Key (rc = 0x%x).", rc);
rc = PTS_INTERNAL_ERROR;
*/
int createTssSignKey(
PTS_UUID *uuid,
- int ps_type,
+ int key_storage_type,
char *filename,
int auth_type,
int force,
if (auth_type == OPENPTS_AIK_AUTH_TYPE_COMMON) {
+TODO("auth_type == OPENPTS_AIK_AUTH_TYPE_COMMON");
/* Create New Key object */
result = Tspi_Context_CreateObject(
hContext,
}
} else {
/* Create New Key object */
+TODO("auth_type != OPENPTS_AIK_AUTH_TYPE_COMMON");
result = Tspi_Context_CreateObject(
hContext,
TSS_OBJECT_TYPE_RSAKEY,
}
/* RegisterKey */
- if (ps_type == OPENPTS_AIK_STORAGE_TYPE_BLOB) {
+ if (key_storage_type == OPENPTS_AIK_STORAGE_TYPE_BLOB) {
/* save as blob */
FILE *fp;
regkey:
result = Tspi_Context_RegisterKey(hContext,
hKey,
- ps_type, // TSS_PS_TYPE_SYSTEM,
+ TSS_PS_TYPE_SYSTEM,
tss_uuid,
TSS_PS_TYPE_SYSTEM,
SRK_UUID);
TSS_HKEY hKey;
result =
Tspi_Context_UnregisterKey(hContext,
- ps_type, // TSS_PS_TYPE_SYSTEM,
+ TSS_PS_TYPE_SYSTEM,
tss_uuid,
&hKey);
if (result != TSS_SUCCESS) {
} else {
ERROR("spi_Context_RegisterKey failed rc=0x%x\n",
result);
+ // 0x3003 TEE_E_BAD_PARAMETOR
}
goto close;
} else {