xref: /third_party/openssl/util/fips-checksums.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/openssl/util/
1e1051a39Sopenharmony_ci#! /bin/sh
2e1051a39Sopenharmony_ci
3e1051a39Sopenharmony_ciHERE=`dirname $0`
4e1051a39Sopenharmony_ci
5e1051a39Sopenharmony_cifor f in "$@"; do
6e1051a39Sopenharmony_ci    # It's worth nothing that 'openssl sha256 -r' assumes that all input
7e1051a39Sopenharmony_ci    # is binary.  This isn't quite true, and we know better, so we convert
8e1051a39Sopenharmony_ci    # the '*stdin' marker to the filename preceded by a space.  See the
9e1051a39Sopenharmony_ci    # sha1sum manual for a specification of the format.
10e1051a39Sopenharmony_ci    case "$f" in
11e1051a39Sopenharmony_ci        *.c | *.c.in | *.h | *.h.in | *.inc)
12e1051a39Sopenharmony_ci            cat "$f" \
13e1051a39Sopenharmony_ci                | $HERE/lang-compress.pl 'C' \
14e1051a39Sopenharmony_ci                | unifdef -DFIPS_MODULE=1 \
15e1051a39Sopenharmony_ci                | openssl sha256 -r \
16e1051a39Sopenharmony_ci                | sed -e "s| \\*stdin|  $f|"
17e1051a39Sopenharmony_ci            ;;
18e1051a39Sopenharmony_ci        *.pl )
19e1051a39Sopenharmony_ci            cat "$f" \
20e1051a39Sopenharmony_ci                | $HERE/lang-compress.pl 'perl' \
21e1051a39Sopenharmony_ci                | openssl sha256 -r \
22e1051a39Sopenharmony_ci                | sed -e "s| \\*stdin|  $f|"
23e1051a39Sopenharmony_ci            ;;
24e1051a39Sopenharmony_ci        *.S )
25e1051a39Sopenharmony_ci            cat "$f" \
26e1051a39Sopenharmony_ci                | $HERE/lang-compress.pl 'S' \
27e1051a39Sopenharmony_ci                | openssl sha256 -r \
28e1051a39Sopenharmony_ci                | sed -e "s| \\*stdin|  $f|"
29e1051a39Sopenharmony_ci            ;;
30e1051a39Sopenharmony_ci    esac
31e1051a39Sopenharmony_cidone
32

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