This might be interesting: https://www.phoronix.com/scan.php?page=news_item&px=GRUB-Verifiers-Framework