xref: /third_party/mbedtls/programs/psa/psa_hash_demo.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/mbedtls/programs/psa/
1a8e1175bSopenharmony_ci#!/bin/sh
2a8e1175bSopenharmony_ci#
3a8e1175bSopenharmony_ci# Copyright The Mbed TLS Contributors
4a8e1175bSopenharmony_ci# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
5a8e1175bSopenharmony_ci
6a8e1175bSopenharmony_ci. "${0%/*}/../demo_common.sh"
7a8e1175bSopenharmony_ci
8a8e1175bSopenharmony_cimsg <<'EOF'
9a8e1175bSopenharmony_ciThis program demonstrates the use of the PSA cryptography interface to
10a8e1175bSopenharmony_cicompute a SHA-256 hash of a test string using the one-shot API call
11a8e1175bSopenharmony_ciand also using the multi-part operation API.
12a8e1175bSopenharmony_ciEOF
13a8e1175bSopenharmony_ci
14a8e1175bSopenharmony_cidepends_on MBEDTLS_PSA_CRYPTO_C PSA_WANT_ALG_SHA_256
15a8e1175bSopenharmony_ci
16a8e1175bSopenharmony_ciprogram="${0%/*}"/psa_hash
17a8e1175bSopenharmony_ci
18a8e1175bSopenharmony_ci"$program"
19a8e1175bSopenharmony_ci
20a8e1175bSopenharmony_cicleanup
21

Indexes created Thu Nov 07 10:32:03 CST 2024