(b []byte, key uint32)
| 12 | ) |
| 13 | |
| 14 | func basicMask(b []byte, key uint32) uint32 { |
| 15 | for i := range b { |
| 16 | b[i] ^= byte(key) |
| 17 | key = bits.RotateLeft32(key, -8) |
| 18 | } |
| 19 | return key |
| 20 | } |
| 21 | |
| 22 | func basicMask2(b []byte, key uint32) uint32 { |
| 23 | keyb := binary.LittleEndian.AppendUint32(nil, key) |
no outgoing calls
no test coverage detected
searching dependent graphs…