[PATCH 4/6] X.509: fix BUG_ON() when hash algorithm is unsupported