File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/sh -e
2+
3+ if [ " $# " -eq 0 ] ; then
4+ echo " No library to hash specified." >&2
5+ exit 22
6+ fi
7+
8+ while [ -n " $1 " ] ; do
9+ dgst=" $( openssl dgst -sha256 -mac hmac -macopt hexkey:00000000 " $1 " ) "
10+ echo " $dgst " | sed -e ' s/^.* //' > " $( dirname " $1 " ) /.$( basename " $1 " ) " .hmac
11+ shift
12+ done
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ mp.S : mp.pl
4646 ./mp.pl mp.S
4747
4848if ICA_FIPS
49+ FIPSHMAC ?= ${top_srcdir}/openssl-fipshmac
4950hmac-file-lnk : hmac-file
5051 $(AM_V_GEN ) cd ${top_builddir} /src/.libs && ln -sf .libica.so.$(VERSION1 ) .hmac .libica.so.$(MAJOR ) .hmac
5152 $(AM_V_GEN ) cd ${top_builddir} /src/.libs && ln -sf .libica-cex.so.$(VERSION1 ) .hmac .libica-cex.so.$(MAJOR ) .hmac
5253
5354hmac-file : libica.la libica-cex.la
54- $(AM_V_GEN ) openssl dgst -sha256 -mac hmac -macopt hexkey:00000000 ${top_builddir} /src/.libs/libica.so.$(VERSION1 ) | sed -e ' s/^.* //' > ${top_builddir} /src/.libs/.libica.so.$(VERSION1 ) .hmac
55- $(AM_V_GEN ) openssl dgst -sha256 -mac hmac -macopt hexkey:00000000 ${top_builddir} /src/.libs/libica-cex.so.$(VERSION1 ) | sed -e ' s/^.* //' > ${top_builddir} /src/.libs/.libica-cex.so.$(VERSION1 ) .hmac
55+ $(AM_V_GEN ) $(FIPSHMAC ) ${top_builddir} /src/.libs/libica.so.$(VERSION1 ) ${top_builddir} /src/.libs/libica-cex.so.$(VERSION1 )
5656
5757hmac_files = hmac-file hmac-file-lnk
5858
You can’t perform that action at this time.
0 commit comments