File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed 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
46
46
./mp.pl mp.S
47
47
48
48
if ICA_FIPS
49
+ FIPSHMAC ?= ${top_srcdir}/openssl-fipshmac
49
50
hmac-file-lnk : hmac-file
50
51
$(AM_V_GEN ) cd ${top_builddir} /src/.libs && ln -sf .libica.so.$(VERSION1 ) .hmac .libica.so.$(MAJOR ) .hmac
51
52
$(AM_V_GEN ) cd ${top_builddir} /src/.libs && ln -sf .libica-cex.so.$(VERSION1 ) .hmac .libica-cex.so.$(MAJOR ) .hmac
52
53
53
54
hmac-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 )
56
56
57
57
hmac_files = hmac-file hmac-file-lnk
58
58
You can’t perform that action at this time.
0 commit comments