1 Star 0 Fork 0

junqirao/links-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fp_block_encrypt.go 721 Bytes
一键复制 编辑 原始数据 按行查看 历史
junqirao 提交于 2年前 . feat: transmitter
package traffic
import "github.com/xtaci/kcp-go"
//
// BlockEncryptFP
// @Description:
//
type BlockEncryptFP struct {
crypt kcp.BlockCrypt
}
//
// NewBlockEncryptFP
// @Description:
// @param key
// @return fp
// @return err
//
func NewBlockEncryptFP(crypt kcp.BlockCrypt) *BlockEncryptFP {
return &BlockEncryptFP{
crypt: crypt,
}
}
//
// Init
// @Description:
// @receiver e
// @return bool
//
func (e *BlockEncryptFP) Init() bool {
return true
}
//
// Process
// @Description:
// @receiver e
// @param raw
// @return []byte
//
func (e *BlockEncryptFP) Process(raw []byte) []byte {
e.crypt.Encrypt(raw, raw)
return raw
}
//
// Close
// @Description:
// @receiver e
//
func (e *BlockEncryptFP) Close() {
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/jackrabbit872568318/links-core.git
git@gitee.com:jackrabbit872568318/links-core.git
jackrabbit872568318
links-core
links-core
v0.0.6

搜索帮助