Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcwallet
  Commit: 4d9c43593ddd3162364adc8a4f57cc471708742c
      
https://github.com/btcsuite/btcwallet/commit/4d9c43593ddd3162364adc8a4f57cc471708742c
  Author: Josh Rickmar <[email protected]>
  Date:   2015-03-05 (Thu, 05 Mar 2015)

  Changed paths:
    A internal/zero/benchmark_test.go
    A internal/zero/zero.go
    A internal/zero/zero_test.go
    M snacl/snacl.go
    M votingpool/pool.go
    M waddrmgr/address.go
    M waddrmgr/manager.go

  Log Message:
  -----------
  Consolidate and optimize zero functions.

This introduce a new internal package to deal with the explicit
clearing of data (such as private keys) in byte slices, byte arrays
(32 and 64-bytes long), and multi-precision "big" integers.

Benchmarks from a xeon e3 (Xor is the zeroing funcion which Bytes
replaces):

BenchmarkXor32  30000000                52.1 ns/op
BenchmarkXor64  20000000                91.5 ns/op
BenchmarkRange32        50000000                31.8 ns/op
BenchmarkRange64        30000000                49.5 ns/op
BenchmarkBytes32        200000000               10.1 ns/op
BenchmarkBytes64        100000000               15.4 ns/op
BenchmarkBytea32        1000000000               2.24 ns/op
BenchmarkBytea64        300000000                4.46 ns/op

Removes an XXX from the votingpool package.


Reply via email to