PROTOCOL | 12 ++++++------ cmd/init/main.go | 2 +- cmd/resp/main.go | 2 +- crypto.go | 2 +- go.mod | 2 +- diff --git a/PROTOCOL b/PROTOCOL index fe2574f031bcac3fc5b1312e0f5bcc40402fa407511de0f458995d49f5ead22d..45179a1d6b4161c270dd39eb87cf1da55b91c5960ec4cb694f18103b88144fa5 100644 --- a/PROTOCOL +++ b/PROTOCOL @@ -1,12 +1,12 @@ After TLS 1.3 handshake is finished, 512-bit keying material is exported. Various 256-bit keys are derived from it: - InitEncKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.ru/udpobfs/v2 init enc") - InitMACKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.ru/udpobfs/v2 init mac") - InitObfsKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.ru/udpobfs/v2 init obfs") - RespEncKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.ru/udpobfs/v2 resp enc") - RespMACKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.ru/udpobfs/v2 resp mac") - RespObfsKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.ru/udpobfs/v2 resp obfs") + InitEncKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.su/udpobfs/v2 init enc") + InitMACKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.su/udpobfs/v2 init mac") + InitObfsKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.su/udpobfs/v2 init obfs") + RespEncKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.su/udpobfs/v2 resp enc") + RespMACKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.su/udpobfs/v2 resp mac") + RespObfsKey = BLAKE3-DeriveKey(seed, "go.cypherpunks.su/udpobfs/v2 resp obfs") Each peer has 64-bit packet sequence counter. It is fed to BLAKE3(len=256, key=*EncKey) and then its XOF output is XORed with diff --git a/cmd/init/main.go b/cmd/init/main.go index e72599326aae61592a668ecd6136621fc38d30f3a9d5eba75f0484e0366151fc..d18a311212cfb4c674a63eeeabf0f149141b35e7e1dbf04aec2fe7336283c3ce 100644 --- a/cmd/init/main.go +++ b/cmd/init/main.go @@ -32,7 +32,7 @@ "os" "sync" "time" - "go.cypherpunks.ru/udpobfs/v2" + "go.cypherpunks.su/udpobfs/v2" "lukechampine.com/blake3" ) diff --git a/cmd/resp/main.go b/cmd/resp/main.go index 7e4556ddd696bb82512beae47fe6b8e781efb88f0eac5a2dd6880ea23443961b..9a6af9687e0252a3ec48b7339cb13abbebdadcf2cd478b153f1afcdaedfc4289 100644 --- a/cmd/resp/main.go +++ b/cmd/resp/main.go @@ -26,7 +26,7 @@ "os" "sync" "time" - "go.cypherpunks.ru/udpobfs/v2" + "go.cypherpunks.su/udpobfs/v2" ) var ( diff --git a/crypto.go b/crypto.go index 54d369c4e80876cda70f6d5c056105ed8a57db7db6bd9fa2499035c4f6296794..d440bb54aea9e25684c1fdfb5d154bbd203ac533882e3935ca5454930f55c6f1 100644 --- a/crypto.go +++ b/crypto.go @@ -25,7 +25,7 @@ "lukechampine.com/blake3" ) const ( - App = "go.cypherpunks.ru/udpobfs/v2" + App = "go.cypherpunks.su/udpobfs/v2" MACLen = 6 SeqLen = 8 SeedLen = 64 diff --git a/go.mod b/go.mod index 65fd70d2c3a1a12ac028b62ce2645cd1ffb8953a004eaf48b7a3ca257184012b..2723fbc85f8ad29b12166208e660f5eb3b7e5234e3899f48f3cf93bd0b19eeec 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.cypherpunks.ru/udpobfs/v2 +module go.cypherpunks.su/udpobfs/v2 go 1.21