github.com/mad-day/Yawning-crypto@v0.0.0-20190711051033-5a5f8cca32ec/morus/burn_safe.go (about) 1 // burn_safe.go - burn (unsafe not available) 2 // 3 // To the extent possible under law, Yawning Angel has waived all copyright 4 // and related or neighboring rights to the software, using the Creative 5 // Commons "CC0" public domain dedication. See LICENSE or 6 // <http://creativecommons.org/publicdomain/zero/1.0/> for full details. 7 8 // +build noasm appengine 9 10 package morus 11 12 import "unsafe" 13 14 func burnBytes(b []byte) { 15 for i := range b { 16 b[i] = 0 17 } 18 } 19 20 func burnUint64s(b []uint64) { 21 for i := range b { 22 b[i] = 0 23 } 24 }