// MaxBytesPerKey is maximal amount of bytes transferred with single key (4 GiB)
MaxBytesPerKey uint64 = 1 << 32
// Heartbeat rate, relative to Timeout
// MaxBytesPerKey is maximal amount of bytes transferred with single key (4 GiB)
MaxBytesPerKey uint64 = 1 << 32
// Heartbeat rate, relative to Timeout
- copy(p.bufT[chacha20InternalBlockSize:], data)
- p.bufT[chacha20InternalBlockSize+lenData] = padByte
+ copy(p.bufT[CC20IBS:], data)
+ p.bufT[CC20IBS+lenData] = padByte
- p.bufT[:chacha20InternalBlockSize+len(p.frameT)-NonceSize],
- p.bufT[:chacha20InternalBlockSize+len(p.frameT)-NonceSize],
+ p.bufT[:CC20IBS+len(p.frameT)-NonceSize],
+ p.bufT[:CC20IBS+len(p.frameT)-NonceSize],
- p.bufR[:chacha20InternalBlockSize+lenData-tagSize-NonceSize],
- p.bufR[:chacha20InternalBlockSize+lenData-tagSize-NonceSize],
+ p.bufR[:CC20IBS+lenData-tagSize-NonceSize],
+ p.bufR[:CC20IBS+lenData-tagSize-NonceSize],