协议密钥动态随机生成

This commit is contained in:
huangxiaolei
2022-11-28 23:36:57 +08:00
parent 362ca86130
commit 746435cf3c
22 changed files with 173 additions and 172 deletions

View File

@@ -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
}