(buf []byte)
| 16 | type zeroReader struct{} |
| 17 | |
| 18 | func (zeroReader) Read(buf []byte) (int, error) { |
| 19 | for i := range buf { |
| 20 | buf[i] = 0 |
| 21 | } |
| 22 | return len(buf), nil |
| 23 | } |
| 24 | |
| 25 | // BenchmarkKeyGeneration benchmarks the given key generation algorithm using |
| 26 | // a dummy reader. |
no outgoing calls