(out []byte)
| 123 | } |
| 124 | |
| 125 | func (t *thash) Read(out []byte) (n int, err error) { |
| 126 | n = 0 |
| 127 | if !t.lengthEmitted { |
| 128 | n = t.encodeOutputLength() |
| 129 | t.lengthEmitted = true |
| 130 | } |
| 131 | m, err := t.d.Read(out) |
| 132 | return n + m, err |
| 133 | } |
| 134 | |
| 135 | // Sum applies padding to the hash state and then squeezes out the desired |
| 136 | // number of output bytes. |
no test coverage detected