crypto: shash - Move null setkey check to registration time