Isabelle's Lazy Message Protocol
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Isabelle L. 09513e87b9 forgot to remove a comment block oopsie uhoh 5 년 전
src forgot to remove a comment block oopsie uhoh 5 년 전
.gitignore initial commit 5 년 전
Cargo.toml adjusted `initialize_connection` so errors aren't potentially panicking 5 년 전
LICENSE initial commit 5 년 전
README.md removed `PacketKind` enum in favor of just using a u8 5 년 전
justfile added CRC32 checksum and a justfile 5 년 전

README.md

Isabelle’s Lazy Message Protocol

network packet protocol

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 flag
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

packet kind

packet kind has defined values for packets but leaves many open for user defined packets to be added to the protocol

byte packet kind
0x00 message - a simple text packet
0xff agreement - used to help generate an aggreed upon key

encrypt flag

encrypt flag can be 0x00 for no encrypt or 0xff for ring AEAD symmetric encrypt