From d453a0a8ba486d9953ffd7867d9dc655bced6750 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 19 Feb 2026 19:40:16 -0500 Subject: [PATCH] tests: Properly fill-out data structure for stricter marshalling to work Properly fill out the TPMS_SIG_SCHEME_RSAPSS structure, especially the hashAlg that's found in TPMS_SCHEME_HASH, so that stricter marshalling implementations do not refuse to marshal the structure. Signed-off-by: Stefan Berger --- tests/object_size.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/object_size.c b/tests/object_size.c index c0248ab65..6cc80077e 100644 --- a/tests/object_size.c +++ b/tests/object_size.c @@ -27,7 +27,14 @@ int main(void) .keyBits = 256, .mode = TPM_ALG_ECB, }, - .scheme = TPM_ALG_RSAPSS, + .scheme = { + .scheme = TPM_ALG_RSAPSS, + .details = { + .rsapss = { + .hashAlg = TPM_ALG_SHA256, + }, + }, + }, .keyBits = MAX_RSA_KEY_BITS, .exponent = 0x10001, },