Thomas Daubney | dd2a09a | 2023-11-15 18:18:03 +0000 | [diff] [blame] | 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%/*}/../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 |