As part of my research, I came across a technique in a paper which applies checksumming on a portion of code. I want to implement it. Here is the research paper which talks about the checksumming guard techqniue.
Here is the guard template:
guard: add ebp, -checksum mov eax, client_addr for: cmp eax, client_end jg end mov ebx, dword[eax] add ebp, ebx add eax, 4 jmp for end:
As you can see, here just addition of opcodes is performed. Can someone suggest a stronger method of doing it? Also, someone suggested Message Authentication techniques like MACs, digital signatures, authentic encryption? What would be the best method?