1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-29 07:10:25 +08:00

fix tea in big endian

This commit is contained in:
源文雨
2022-04-12 19:40:40 +08:00
parent 58f950109f
commit 68b2e8cac5
9 changed files with 46 additions and 41 deletions

View File

@@ -7,6 +7,7 @@ import (
"github.com/fumiama/WireGold/gold/head"
"github.com/fumiama/WireGold/helper"
base14 "github.com/fumiama/go-base16384"
tea "github.com/fumiama/gofastTEA"
)
// Link 是本机到 peer 的连接抽象
@@ -28,7 +29,7 @@ type Link struct {
// 连接的状态,详见下方 const
status int
// 连接所用对称加密密钥
key *[32]byte
key []tea.TEA
// 本机信息
me *Me
}