From 532cd488e35335a4cf680d054b3d797e405de4f6 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 15 Oct 2018 13:16:06 +0200 Subject: [PATCH] libtpmtss: TSS can optionally return signature schemes supported by a key --- src/libtpmtss/tpm_tss.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libtpmtss/tpm_tss.h b/src/libtpmtss/tpm_tss.h index 11e4a7c15..a239e4dc4 100644 --- a/src/libtpmtss/tpm_tss.h +++ b/src/libtpmtss/tpm_tss.h @@ -1,4 +1,5 @@ /* + * Copyright (C) 2018 Tobias Brunner * Copyright (C) 2016 Andreas Steffen * HSR Hochschule fuer Technik Rapperswil * @@ -79,6 +80,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 *