psa_hash_demo.sh (464B)
1 #!/bin/sh 2 # 3 # Copyright The Mbed TLS Contributors 4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 5 6 . "${0%/*}/../../framework/scripts/demo_common.sh" 7 8 msg <<'EOF' 9 This program demonstrates the use of the PSA cryptography interface to 10 compute a SHA-256 hash of a test string using the one-shot API call 11 and also using the multi-part operation API. 12 EOF 13 14 depends_on MBEDTLS_PSA_CRYPTO_C PSA_WANT_ALG_SHA_256 15 16 program="${0%/*}"/psa_hash 17 18 "$program" 19 20 cleanup