there is something I am missing in understanding of digital signatures and was hoping someone could clear it up for me.
A digital signature is to verify something has not been modified and came from a person.
So say I somehow intercepted an xml file with a signature on it. I rip the signature out, then make some edits to the file. Then I generate a new signature for this file, and send it to who it was going to. They check the reference and yep it checks out. The file was not tampered with. But it was, only the signature was also tampered with. This must not be possible, so, what gigantic piece am I missing in this puzzle?