I'm trying to implement a protocol and currently have problems with this step:
The big-endian binary representation of the sequence number SHALL be placed in a 16-octet buffer and padded (on the left) with zeros.
The sequence number is an int
.
I think the correct way to create the 16-octet buffer is like this:
buf := make([]byte, 16)
However, I'm not sure how to place the sequence number in the buffer so it follows the requirements above?