From b295a138f5badfc81dcfa7a8c2ad90862b062003 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 6 Feb 2025 13:53:42 +0100 Subject: [PATCH] Newer interruptible operations don't have driver support yet Fix the build against development. Signed-off-by: Gilles Peskine --- tests/src/psa_crypto_helpers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/psa_crypto_helpers.c b/tests/src/psa_crypto_helpers.c index e9ada92da..9de2861e9 100644 --- a/tests/src/psa_crypto_helpers.c +++ b/tests/src/psa_crypto_helpers.c @@ -163,7 +163,7 @@ psa_verify_hash_interruptible_operation_t psa_verify_hash_interruptible_operatio psa_key_agreement_iop_t psa_key_agreement_iop_init_short(void) { psa_key_agreement_iop_t operation = PSA_KEY_AGREEMENT_IOP_INIT; - memset(&operation.ctx, '!', sizeof(operation.ctx)); + /* No driver support, and thus no union, yet, at the time of writing */ return operation; } #endif @@ -172,7 +172,7 @@ psa_key_agreement_iop_t psa_key_agreement_iop_init_short(void) psa_generate_key_iop_t psa_generate_key_iop_init_short(void) { psa_generate_key_iop_t operation = PSA_GENERATE_KEY_IOP_INIT; - memset(&operation.ctx, '!', sizeof(operation.ctx)); + /* No driver support, and thus no union, yet, at the time of writing */ return operation; } #endif @@ -181,7 +181,7 @@ psa_generate_key_iop_t psa_generate_key_iop_init_short(void) psa_export_public_key_iop_t psa_export_public_key_iop_init_short(void) { psa_export_public_key_iop_t operation = PSA_EXPORT_PUBLIC_KEY_IOP_INIT; - memset(&operation.ctx, '!', sizeof(operation.ctx)); + /* No driver support, and thus no union, yet, at the time of writing */ return operation; } #endif