From f213998b264e85ed13e10a6007ab980443eefdba Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Thu, 18 Aug 2011 16:24:42 +0200 Subject: [PATCH] Explain PTS measurement algorithm proposal --- src/libimcv/plugins/imv_attestation/imv_attestation.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/libimcv/plugins/imv_attestation/imv_attestation.c b/src/libimcv/plugins/imv_attestation/imv_attestation.c index 09ed64b05..45adfac47 100644 --- a/src/libimcv/plugins/imv_attestation/imv_attestation.c +++ b/src/libimcv/plugins/imv_attestation/imv_attestation.c @@ -106,7 +106,15 @@ TNC_Result TNC_IMV_Initialize(TNC_IMVID imv_id, return TNC_RESULT_NO_COMMON_VERSION; } - /* Specify supported PTS measurement algorithms */ + /** + * Specify supported PTS measurement algorithms + * + * sha1 : PTS_MEAS_ALGO_SHA1 + * sha256: PTS_MEAS_ALGO_SHA1 | PTS_MEAS_ALGO_SHA256 + * sha384: PTS_MEAS_ALGO_SHA1 | PTS_MEAS_ALGO_SHA256 | PTS_MEAS_ALGO_SHA384 + * + * we expect the PTS-IMC to select the strongest supported algorithm + */ hash_alg = lib->settings->get_str(lib->settings, "libimcv.plugins.imv-attestation.hash_algorithm", "sha256"); if (!strcaseeq(hash_alg, "sha384") && !strcaseeq(hash_alg, "sha2_384"))