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