git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/crypto/zeroize.go (about)

     1  package crypto
     2  
     3  // Zeroize set all bytes of buffer to 0
     4  func Zeroize(buffer []byte) {
     5  	for i := range buffer {
     6  		buffer[i] = 0
     7  	}
     8  }