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.
| 559 | // cthWrapper wraps any hash.Hash that implements ConstantTimeSum, and replaces |
| 560 | // with that all calls to Sum. It's used to obtain a ConstantTimeSum-based HMAC. |
| 561 | type cthWrapper struct { |
| 562 | h constantTimeHash |
| 563 | } |
| 564 | |
| 565 | func (c *cthWrapper) Size() int { return c.h.Size() } |
| 566 | func (c *cthWrapper) BlockSize() int { return c.h.BlockSize() } |
nothing calls this directly
no outgoing calls
no test coverage detected