de.schlichtherle.crypto
Interface SeekableBlockCipher

All Superinterfaces:
BlockCipher
All Known Implementing Classes:
SICSeekableBlockCipher

public interface SeekableBlockCipher
extends BlockCipher

Extends a BlockCipher in order to support random access to the blocks in a plain or cipher text.

Since:
TrueZIP 3.1
Version:
TrueZIP 6.7
Author:
Christian Schlichtherle

Method Summary
 long getBlockCounter()
          Returns the index of the block, starting at 0, which will be processed next when BlockCipher.processBlock(byte[], int, byte[], int) is called.
 void setBlockCounter(long block)
          Sets the counter so that the block with the given index, starting at 0, can be processed next.
 
Methods inherited from interface org.bouncycastle.crypto.BlockCipher
getAlgorithmName, getBlockSize, init, processBlock, reset
 

Method Detail

setBlockCounter

void setBlockCounter(long block)
Sets the counter so that the block with the given index, starting at 0, can be processed next.

Parameters:
block - The index of the block, starting at 0, which will be processed next when BlockCipher.processBlock(byte[], int, byte[], int) is called.

getBlockCounter

long getBlockCounter()
Returns the index of the block, starting at 0, which will be processed next when BlockCipher.processBlock(byte[], int, byte[], int) is called.