Jump to content
SubSpace Forum Network

Recommended Posts

Posted

How do I encrypt a reliable packet? :angry:

"packet" contains the UNENCRYPTED packet which should be sent reliable

"reliableheader" contains the "0x0003 + ACKID"

"encrypt(packet)" is a pseudo-function which gives the encrypted value of "packet" back

 

reliableheader + packet
--- OR ---
encrypt(reliableheader) + packet
--- OR ---
encrypt(reliableheader + packet)
--- OR ---
reliableheader + encrypt(packet)
--- OR ---
encrypt(reliableheader + encrypt(packet))

Posted

You encrypt it just like any other packet.

From memory, you would leave the type byte (0x00) unencrypted and encrypt the rest.

 

You really should be looking at other source code to find this for yourself...

Posted
00 03 Rest Encrypted

 

-nintendo64

:D

So it's

encrypt(reliableheader + packet)

not

encrypt(reliableheader + encrypt(packet))

?

PS: Reliableheader is 00 03 + ACKID; encrypt() function lets first byte unencrypted if game and first two bytes if core.

Guest
This topic is now closed to further replies.
×
×
  • Create New...