Skip to content

Commit cb5a8d3

Browse files
author
Ben Taylor
committed
Improve handling of programs by demo script
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
1 parent 4c56b60 commit cb5a8d3

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

programs/mldsa/mldsa_demo.sh

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1-
#!/bin/bash
2-
./tf-psa-crypto/programs/mldsa/mldsa_export_public
3-
./tf-psa-crypto/programs/mldsa/mldsa_sign
4-
./tf-psa-crypto/programs/mldsa/mldsa_verify
1+
#!/bin/sh
2+
#
3+
# Copyright The Mbed TLS Contributors
4+
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
55

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 TF_PSA_CRYPTO_PQCP_MLDSA_ENABLED TF_PSA_CRYPTO_PQCP_MLDSA_87_ENABLED MBEDTLS_ASN1_WRITE_C
15+
16+
mldsa_export_public="${0%/*}"/mldsa_export_public
17+
mldsa_sign="${0%/*}"/mldsa_sign
18+
mldsa_verify="${0%/*}"/mldsa_verify
19+
20+
"$mldsa_export_public"
21+
"$mldsa_sign"
22+
"$mldsa_verify"
23+
24+
cleanup

0 commit comments

Comments
 (0)