1 // Package zero
2 // Copyright (c) 2015 The btcsuite developers
3 package zero
4 5 // Bytea32 clears the 32-byte array by filling it with the zero value. This is used to explicitly clear private key
6 // material from memory.
7 func Bytea32(b *[32]byte) {
8 *b = [32]byte{}
9 }
10 11 // Bytea64 clears the 64-byte array by filling it with the zero value. This is used to explicitly clear sensitive
12 // material from memory.
13 func Bytea64(b *[64]byte) {
14 *b = [64]byte{}
15 }
16