Fix usage of SHA-2 algorithm with OpenPGP cards.