From my understanding you need a hash in order to generate a digital signature, so if you change the hash of a EXE or program using a hash changer(not encrypter) of some sort, the digital signature will change?
my head: DATA/SOURCE --> HASH --> SOME KIND OF KEY --> SIGNATURE
correct me if i'm wrong