against swimmers you could toss grenades and disable them.
humans cannot withstand the shock wave even from a few ounces of Comp B let alone 600lb of Tritonal or RDX
So one depth charge detonation literally less than a meter from the hull of an Iranian mini-sub would what, smash up the systems and incapacitate the crew?