[PATCH 4.15 11/64] X.509: fix BUG_ON() when hash algorithm is unsupported