Packing and gasket for heat exchanger and pressure vessel