mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-28 00:58:05 +08:00
Merge pull request #8539 from tom-daubney-arm/add_test_script_psa_hash
Add Demo Script for PSA Hash Program
This commit is contained in:
commit
12d8b8eaba
20
programs/psa/psa_hash_demo.sh
Executable file
20
programs/psa/psa_hash_demo.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Copyright The Mbed TLS Contributors
|
||||||
|
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
|
||||||
|
. "${0%/*}/../demo_common.sh"
|
||||||
|
|
||||||
|
msg <<'EOF'
|
||||||
|
This program demonstrates the use of the PSA cryptography interface to
|
||||||
|
compute a SHA-256 hash of a test string using the one-shot API call
|
||||||
|
and also using the multi-part operation API.
|
||||||
|
EOF
|
||||||
|
|
||||||
|
depends_on MBEDTLS_PSA_CRYPTO_C PSA_WANT_ALG_SHA_256
|
||||||
|
|
||||||
|
program="${0%/*}"/psa_hash
|
||||||
|
|
||||||
|
"$program"
|
||||||
|
|
||||||
|
cleanup
|
Loading…
x
Reference in New Issue
Block a user