getBlock gets a block from the pool of size blockSize
()
| 253 | |
| 254 | // getBlock gets a block from the pool of size blockSize |
| 255 | func (c *Cipher) getBlock() *[blockSize]byte { |
| 256 | return c.buffers.Get().(*[blockSize]byte) |
| 257 | } |
| 258 | |
| 259 | // putBlock returns a block to the pool of size blockSize |
| 260 | func (c *Cipher) putBlock(buf *[blockSize]byte) { |