Implement signatures with private keys bound to TPM 2.0

This commit is contained in:
Andreas Steffen
2017-02-21 20:37:32 +01:00
parent 72fcce92d7
commit e8736028e6
3 changed files with 215 additions and 8 deletions
+15
View File
@@ -119,6 +119,21 @@ struct tpm_tss_t {
tpm_quote_mode_t *quote_mode,
tpm_tss_quote_info_t **quote_info, chunk_t *quote_sig);
/**
* Do a signature over a data hash using a TPM key handle (TPM 2.0 only)
*
* @param handle object handle of TPM key to be used for signature
* @param hierarchy hierarchy the TPM key object is attached to
* @param scheme scheme to be used for signature
* @param data data to be hashed and signed
* @param pin PIN code or empty chunk
* @param signature returns signature
* @return TRUE if signature succeeded
*/
bool (*sign)(tpm_tss_t *this, uint32_t hierarchy, uint32_t handle,
signature_scheme_t scheme, chunk_t data, chunk_t pin,
chunk_t *signature);
/**
* Destroy a tpm_tss_t.
*/