Skip to content

Commit

Permalink
Merge pull request #196 from bcressey/kernel-hmac-take-two
Browse files Browse the repository at this point in the history
  • Loading branch information
bcressey authored Apr 10, 2024
2 parents add0ebf + 9b6f3d3 commit 6053627
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion twoliter/embedded/rpm2img
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,9 @@ if [ "${UEFI_SECURE_BOOT}" == "yes" ] ; then
fi

# Generate an HMAC for the kernel after signing.
sha512hmac "${vmlinuz}" > ".${vmlinuz}.hmac"
openssl sha512 -hmac FIPS-FTW-RHT2009 -hex "${vmlinuz}" \
| awk -v vmlinuz="${vmlinuz}" '{ print $2 " " vmlinuz }' \
> ".${vmlinuz}.hmac"

popd >/dev/null

Expand Down

0 comments on commit 6053627

Please sign in to comment.