SkippingStreamCipherChaCha7539Engine, ChaChaEngine, Salsa20Engine, SICBlockCipher, XSalsa20Enginepublic interface SkippingCipher
| Modifier and Type | Method | Description |
|---|---|---|
long |
getPosition() |
Return the current "position" of the cipher
|
long |
seekTo(long position) |
Reset the cipher and then skip forward to a given position.
|
long |
skip(long numberOfBytes) |
Skip numberOfBytes forwards, or backwards.
|
long skip(long numberOfBytes)
numberOfBytes - the number of bytes to skip (positive forward, negative backwards).java.lang.IllegalArgumentException - if numberOfBytes is an invalid value.long seekTo(long position)
position - the number of bytes in to set the cipher state to.long getPosition()