Exposing a function for wiping ordinary slices implies that it holds some kind of guarantees. In reality, wiping an ordinary slice is next to useless, since you have no idea about any copies made or what the garbage collector has done.
Instead, to only allow wiping of secure LockedBuffers, we make the WipeBytes function internal and instead expose a Wipe method for LockedBuffers.
Exposing a function for wiping ordinary slices implies that it holds some kind of guarantees. In reality, wiping an ordinary slice is next to useless, since you have no idea about any copies made or what the garbage collector has done.
Instead, to only allow wiping of secure LockedBuffers, we make the WipeBytes function internal and instead expose a Wipe method for LockedBuffers.