libtpmtss: Remove aik_blob debug output

This commit is contained in:
Andreas Steffen
2020-10-07 16:54:32 +02:00
parent d647a8f91d
commit 56de4dc596
2 changed files with 2 additions and 8 deletions
+1 -4
View File
@@ -514,16 +514,13 @@ METHOD(tpm_tss_t, get_public, chunk_t,
{ {
TPM2B_PUBLIC public = { { 0, } }; TPM2B_PUBLIC public = { { 0, } };
TPM_ALG_ID sig_alg, digest_alg; TPM_ALG_ID sig_alg, digest_alg;
chunk_t aik_blob, aik_pubkey = chunk_empty; chunk_t aik_pubkey = chunk_empty;
if (!read_public(this, handle, &public)) if (!read_public(this, handle, &public))
{ {
return chunk_empty; return chunk_empty;
} }
aik_blob = chunk_create((u_char*)&public, sizeof(public));
DBG3(DBG_LIB, "%s public key blob: %B", LABEL, &aik_blob);
/* convert TSS 2.0 public key blot into PKCS#1 format */ /* convert TSS 2.0 public key blot into PKCS#1 format */
switch (public.t.publicArea.type) switch (public.t.publicArea.type)
{ {
+1 -4
View File
@@ -478,16 +478,13 @@ METHOD(tpm_tss_t, get_public, chunk_t,
{ {
TPM2B_PUBLIC public = { 0, }; TPM2B_PUBLIC public = { 0, };
TPM2_ALG_ID sig_alg, digest_alg; TPM2_ALG_ID sig_alg, digest_alg;
chunk_t aik_blob, aik_pubkey = chunk_empty; chunk_t aik_pubkey = chunk_empty;
if (!read_public(this, handle, &public)) if (!read_public(this, handle, &public))
{ {
return chunk_empty; return chunk_empty;
} }
aik_blob = chunk_create((u_char*)&public, sizeof(public));
DBG3(DBG_LIB, "%s public key blob: %B", LABEL, &aik_blob);
/* convert TSS 2.0 public key blot into PKCS#1 format */ /* convert TSS 2.0 public key blot into PKCS#1 format */
switch (public.publicArea.type) switch (public.publicArea.type)
{ {