Indeed. They're based on the assumption that reversing these functions is inefficient using standard or quantum computing primitives, depending.