cthWrapper wraps any hash.Hash that implements ConstantTimeSum, and replaces with that all calls to Sum. It's used to obtain a ConstantTimeSum-based HMAC.
| 575 | // cthWrapper wraps any hash.Hash that implements ConstantTimeSum, and replaces |
| 576 | // with that all calls to Sum. It's used to obtain a ConstantTimeSum-based HMAC. |
| 577 | type cthWrapper struct { |
| 578 | h constantTimeHash |
| 579 | } |
| 580 | |
| 581 | func (c *cthWrapper) Size() int { return c.h.Size() } |
| 582 | func (c *cthWrapper) BlockSize() int { return c.h.BlockSize() } |
nothing calls this directly
no outgoing calls
no test coverage detected