| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private int | |
| private static final long | |
| private static final long | |
| private static final long | |
| private final long | |
| private final long[] | |
| private final long[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | doFinal(byte[]
the array the block currently being held is copied into. output, int the offset at which the copying starts. outOff)Overrides org. |
| public int | getOutputSize(int
the length of the input. length)Overrides org. |
| protected static long | |
| public int | getUpdateOutputSize(int
the length of the input. len)Overrides org. |
| private static void | |
| public void | init(boolean
if true the cipher is initialised for
encryption, if false for decryption. forEncryption, CipherParameters the key and other data required by the cipher. parameters)Overrides org. |
| private void | |
| public int | processByte(byte
the input byte. in, byte[] the space for any output that might be produced. out, int the offset from which the output will be copied. outOff)Overrides org. |
| public int | processBytes(byte[]
the input byte array. input, int the offset at which the input data starts. inOff, int the number of bytes to be copied out of the input array. len, byte[] the space for any output that might be produced. output, int the offset from which the output will be copied. outOff)Overrides org. |
| public void | reset()
Overrides org. |
| blockSize | back to summary |
|---|---|
| private final int blockSize | |
| counter | back to summary |
|---|---|
| private int counter | |
| RED_POLY_128 | back to summary |
|---|---|
| private static final long RED_POLY_128 | |
| RED_POLY_256 | back to summary |
|---|---|
| private static final long RED_POLY_256 | |
| RED_POLY_512 | back to summary |
|---|---|
| private static final long RED_POLY_512 | |
| reductionPolynomial | back to summary |
|---|---|
| private final long reductionPolynomial | |
| tw_current | back to summary |
|---|---|
| private final long[] tw_current | |
| tw_init | back to summary |
|---|---|
| private final long[] tw_init | |
| KXTSBlockCipher | back to summary |
|---|---|
| public KXTSBlockCipher(BlockCipher cipher) | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] output, int outOff) Overrides org. Doc from org. Process the last block in the buffer.
| |
| getOutputSize | back to summary |
|---|---|
| public int getOutputSize(int length) Overrides org. Doc from org. return the size of the output buffer required for an update plus a doFinal with an input of 'length' bytes.
| |
| getReductionPolynomial | back to summary |
|---|---|
| protected static long getReductionPolynomial(int blockSize) | |
| getUpdateOutputSize | back to summary |
|---|---|
| public int getUpdateOutputSize(int len) Overrides org. Doc from org. return the size of the output buffer required for an update an input of len bytes.
| |
| GF_double | back to summary |
|---|---|
| private static void GF_double(long redPoly, long[] z) | |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters parameters) Overrides org. Doc from org. initialise the cipher.
| |
| processBlocks | back to summary |
|---|---|
| private void processBlocks(byte[] input, int inOff, byte[] output, int outOff) | |
| processByte | back to summary |
|---|---|
| public int processByte(byte in, byte[] out, int outOff) Overrides org. Doc from org. process a single byte, producing an output block if necessary.
| |
| processBytes | back to summary |
|---|---|
| public int processBytes(byte[] input, int inOff, int len, byte[] output, int outOff) Overrides org. Doc from org. process an array of bytes, producing output if necessary.
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides org. Doc from org. Reset the buffer and cipher. After resetting the object is in the same state as it was after the last init (if there was one). | |