Blame SOURCES/fipshmac-openssl.sh

820ee6
#!/bin/bash
820ee6
820ee6
# Mocks fipshmac using the openssl tool.
820ee6
# Only for use during RPM build.
820ee6
820ee6
[ "$1" = '-d' ] || exit 1
820ee6
820ee6
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP -hex "$3" | cut -f 2 -d ' ' \
820ee6
	>"$2/$(basename "$3").hmac"