libtpmtss: TSS can optionally return signature schemes supported by a key
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Oct 2018 11:16:06 +0000 (13:16 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 26 Oct 2018 07:03:26 +0000 (09:03 +0200)
src/libtpmtss/tpm_tss.h

index 11e4a7c..a239e4d 100644 (file)
@@ -1,4 +1,5 @@
 /*
+ * Copyright (C) 2018 Tobias Brunner
  * Copyright (C) 2016 Andreas Steffen
  * HSR Hochschule fuer Technik Rapperswil
  *
@@ -80,6 +81,15 @@ struct tpm_tss_t {
        chunk_t (*get_public)(tpm_tss_t *this, uint32_t handle);
 
        /**
+        * Return signature schemes supported by the given key (TPM 2.0 only)
+        *
+        * @param handle                key object handle
+        * @return                              enumerator over signature_params_t*
+        */
+       enumerator_t *(*supported_signature_schemes)(tpm_tss_t *this,
+                                                                                                uint32_t handle);
+
+       /**
         * Retrieve the current value of a PCR register in a given PCR bank
         *
         * @param pcr_num               PCR number