3 ms·
Fixed-length header + HMAC (or simply a CRC). If the HMAC/CRC doesn't check out, don't process the packet.
by jasonjayr 10y ago
Fixed-length header + HMAC (or simply a CRC).
If the HMAC/CRC doesn't check out, don't process the packet.
- nneonneo 10y agoCRC doesn't protect against malicious activity, and HMAC requires key distribution or exchange (way more overhead than a simple in-house protocol warrants). True, a CRC protects against accidental crap like this service regularly exploding, but in a case like this where the client can't talk to the server properly, letting the client explode is probably a good outcome.