mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
协议密钥动态随机生成
This commit is contained in:
@@ -84,8 +84,6 @@ func (b *KeyBlock) Seed() uint64 {
|
||||
return b.seed
|
||||
}
|
||||
|
||||
func (b *KeyBlock) Xor(data []byte) {
|
||||
for i := 0; i < len(data); i++ {
|
||||
data[i] ^= b.data[i%4096]
|
||||
}
|
||||
func (b *KeyBlock) XorKey() [4096]byte {
|
||||
return b.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user