"Check the first 4 bytes of" should be banned in crypto code.
Either I want something to match, in which case check it all, or I don't care if it matches, in which case don't check at all.
Why would you ever check 4 bytes?
To me it smells like a way to prevent fuzzers stumbling on a deliberate loophole.