|
|
před 5 roky | |
|---|---|---|
| src | před 5 roky | |
| .gitignore | před 5 roky | |
| Cargo.toml | před 5 roky | |
| LICENSE | před 5 roky | |
| README.md | před 5 roky | |
| justfile | před 5 roky | |
I don’t know whether or not this is a super practical way of doing things but i’m lazy and it seems to work so gonna roll with it lol
| segment size | usage |
|---|---|
| 1 byte | u8 packet kind |
| 1 byte | u8 encrypt kind |
| 8 byte | u64 length of the packet contents |
| 4 byte | CRC32 packet contents checksum |
| 32 byte | SHA256 packet contents integrity check |
u64::MAX |
packet contents |