Update documentation

Add further information about PSA hashing to the
comment at the beginning of the code.

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney 2023-10-10 16:50:49 +01:00
parent a68ef95394
commit 86f9795b00

View File

@ -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