From b16edbef72caf431f72d395f13d160b7e943ca2f Mon Sep 17 00:00:00 2001 From: Waleed Elmelegy Date: Thu, 31 Oct 2024 16:41:00 +0000 Subject: [PATCH] Improve comments for interuptible key agreement APIs Signed-off-by: Waleed Elmelegy --- tf-psa-crypto/core/psa_crypto.c | 2 +- tf-psa-crypto/include/psa/crypto.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tf-psa-crypto/core/psa_crypto.c b/tf-psa-crypto/core/psa_crypto.c index c110ad2a2..edbcba3c5 100644 --- a/tf-psa-crypto/core/psa_crypto.c +++ b/tf-psa-crypto/core/psa_crypto.c @@ -8144,7 +8144,7 @@ psa_status_t psa_generate_key_iop_setup( operation->num_ops = 0; - /* To be removed later when driver dispatch is added. */ + /* We only support the builtin/Mbed TLS driver for now. */ operation->id = PSA_CRYPTO_MBED_TLS_DRIVER_ID; status = mbedtls_psa_generate_key_iop_setup(&operation->ctx, attributes); diff --git a/tf-psa-crypto/include/psa/crypto.h b/tf-psa-crypto/include/psa/crypto.h index aa58033a0..58b68870f 100644 --- a/tf-psa-crypto/include/psa/crypto.h +++ b/tf-psa-crypto/include/psa/crypto.h @@ -4360,8 +4360,9 @@ typedef struct psa_verify_hash_interruptible_operation_s psa_verify_hash_interru * time. The only guarantee is that lower values * for \p max_ops means functions will block for a * lesser maximum amount of time. The functions - * \c psa_sign_interruptible_get_num_ops() and - * \c psa_verify_interruptible_get_num_ops() are + * \c psa_sign_interruptible_get_num_ops(), + * \c psa_verify_interruptible_get_num_ops() and + * \c psa_generate_key_iop_get_num_ops() are * provided to help with tuning this value. * * \note This value defaults to