Sha-256 has integer and galois field operations, which are not generally differentiable in the numeric sense, although the NSA has a strong differentiable cryptanalysis program where they presumably do magic tricks like approximating these integer functions as real valued, so what you are saying might be possible.