[coreboot-gerrit] Change in coreboot[master]: mb/prodrive/hermes: Generalise `check_signature` function