From 86f9795b0058c1c81063cbe05a7b6c07e52de6b6 Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Tue, 10 Oct 2023 16:50:49 +0100 Subject: [PATCH] Update documentation Add further information about PSA hashing to the comment at the beginning of the code. Signed-off-by: Thomas Daubney --- programs/psa/psa_hash.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/programs/psa/psa_hash.c b/programs/psa/psa_hash.c index dc698a162..b3f3597f0 100644 --- a/programs/psa/psa_hash.c +++ b/programs/psa/psa_hash.c @@ -33,11 +33,15 @@ #include "mbedtls/build_info.h" #include "mbedtls/platform.h" -/* The algorithm used by this demo is SHA 256. +/* Information about hashing with the PSA API can be + * found here: + * https://arm-software.github.io/psa-api/crypto/1.1/api/ops/hashes.html + * + * The algorithm used by this demo is SHA 256. * Please see include/psa/crypto_values.h to see the other - * algorithms that are supported. If you switch to a different - * algorithm you will need to update the hash data in the - * SAMPLE_HASH_DATA macro below.*/ + * algorithms that are supported by Mbed TLS. + * If you switch to a different algorithm you will need to update + * the hash data in the SAMPLE_HASH_DATA macro below. */ #define HASH_ALG PSA_ALG_SHA_256