1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-04 23:40:26 +08:00

完善注释

This commit is contained in:
fumiama
2021-10-25 19:38:32 +08:00
parent fe6abd3898
commit 34d48859d9

View File

@@ -29,13 +29,13 @@ func SetMyself(privateKey [32]byte, myIP string, myEndpoint string) {
}
}
// Encode 使用 ChaCha20-Poly1305 AEAD 对称加密加密
// Encode 使用 ChaCha20-Poly1305 加密
// https://pkg.go.dev/golang.org/x/crypto/chacha20poly1305
func (l *Link) Encode(b []byte) (eb []byte, err error) {
return b, nil
}
// Encode 使用 ChaCha20-Poly1305 AEAD 对称加密解密
// Decode 使用 ChaCha20-Poly1305 解密
// https://pkg.go.dev/golang.org/x/crypto/chacha20poly1305
func (l *Link) Decode(b []byte) (db []byte, err error) {
return b, nil