public static class RatchetPayload.NextKeyBlock extends RatchetPayload.Block
| Constructor and Description |
|---|
NextKeyBlock(NextSessionKey nextKey)Next session key carried by this block. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Data length of the block. |
(package private) void | setNext(NextSessionKey nextKey)Set the next session key, for reuse. |
int | writeData(byte[] tgt,
int off)Writes the block to the output buffer at the given offset. |
getTotalLength, toString, writepublic NextKeyBlock(NextSessionKey nextKey)
nextKey - the next session keypublic int getDataLength()
getDataLength in class RatchetPayload.Blockvoid setNext(NextSessionKey nextKey)
nextKey - the next session keypublic int writeData(byte[] tgt,
int off)writeData in class RatchetPayload.Blocktgt - the target bufferoff - the offset