Rsa Encryption, probably bugged
This commit is contained in:
23
internal/common/constants.go
Normal file
23
internal/common/constants.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package common
|
||||
|
||||
const PacketSize = 504
|
||||
|
||||
const (
|
||||
HeaderSize int = 1 + 4
|
||||
SecureHeaderSize int = 24 + 8 + 4
|
||||
)
|
||||
|
||||
const MaxDataSize = PacketSize - HeaderSize - SecureHeaderSize - 16 // AEAD Overhead
|
||||
|
||||
type SessionID [8]byte
|
||||
|
||||
type HeaderFlag uint8
|
||||
|
||||
const (
|
||||
Request HeaderFlag = iota
|
||||
PTE HeaderFlag = iota
|
||||
Ack HeaderFlag = iota
|
||||
File HeaderFlag = iota
|
||||
End HeaderFlag = iota
|
||||
Resend HeaderFlag = iota
|
||||
)
|
||||
Reference in New Issue
Block a user