pkcs11-spy: log pParameter buffer for C_EncryptInit & C_DecryptInit

This commit is contained in:
Ludovic Rousseau 2019-04-18 15:22:56 +02:00 committed by Frank Morgner
parent bfa94dc90d
commit 98ec27e768
1 changed files with 2 additions and 0 deletions

View File

@ -784,6 +784,7 @@ C_EncryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT
enter("C_EncryptInit");
spy_dump_ulong_in("hSession", hSession);
fprintf(spy_output, "pMechanism->type=%s\n", lookup_enum(MEC_T, pMechanism->mechanism));
spy_dump_string_in("pParameter[ulParameterLen]", pMechanism->pParameter, pMechanism->ulParameterLen);
spy_dump_ulong_in("hKey", hKey);
rv = po->C_EncryptInit(hSession, pMechanism, hKey);
return retne(rv);
@ -860,6 +861,7 @@ C_DecryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT
}
break;
default:
spy_dump_string_in("pParameter[ulParameterLen]", pMechanism->pParameter, pMechanism->ulParameterLen);
break;
}
spy_dump_ulong_in("hKey", hKey);