| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private boolean | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | |
| private static final int[] | |
| private final int[] | |
| private static final int | |
| private static final int | |
| private final int[] | |
| private final int[] | |
| private final int[] | |
| private final int[] | |
| private static final int | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private int | |
| private void | decryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex)
Decrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset. |
| private void | encryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex)
Encrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset. |
| private int | |
| public String | getAlgorithmName()
Implements org. |
| public int | getBlockSize()
Implements org. |
| public void | init(boolean
whether or not we are for encryption. encrypting, CipherParameters the parameters required to set up the cipher. params)Implements org. |
| public final int | processBlock(byte[]
the array containing the input data. in, int offset into the in array the data starts at. inOff, byte[] the array the output data will be copied into. out, int the offset into the out array the output will start at. outOff)Implements org. |
| private void | processTable(int xl, int xr, int[] table)
apply the encryption cycle to each value pair in the table. |
| public void | |
| private void |
| BLOCK_SIZE | back to summary |
|---|---|
| private static final int BLOCK_SIZE | |
| encrypting | back to summary |
|---|---|
| private boolean encrypting | |
| KP | back to summary |
|---|---|
| private static final int[] KP | |
| KS0 | back to summary |
|---|---|
| private static final int[] KS0 | |
| KS1 | back to summary |
|---|---|
| private static final int[] KS1 | |
| KS2 | back to summary |
|---|---|
| private static final int[] KS2 | |
| KS3 | back to summary |
|---|---|
| private static final int[] KS3 | |
| P | back to summary |
|---|---|
| private final int[] P | |
| P_SZ | back to summary |
|---|---|
| private static final int P_SZ | |
| ROUNDS | back to summary |
|---|---|
| private static final int ROUNDS | |
| S0 | back to summary |
|---|---|
| private final int[] S0 | |
| S1 | back to summary |
|---|---|
| private final int[] S1 | |
| S2 | back to summary |
|---|---|
| private final int[] S2 | |
| S3 | back to summary |
|---|---|
| private final int[] S3 | |
| SBOX_SK | back to summary |
|---|---|
| private static final int SBOX_SK | |
| workingKey | back to summary |
|---|---|
| private byte[] workingKey | |
| BlowfishEngine | back to summary |
|---|---|
| public BlowfishEngine() | |
| Bits32ToBytes | back to summary |
|---|---|
| private void Bits32ToBytes(int in, byte[] b, int offset) | |
| BytesTo32bits | back to summary |
|---|---|
| private int BytesTo32bits(byte[] b, int i) | |
| decryptBlock | back to summary |
|---|---|
| private void decryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex) Decrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset. The input will be an exact multiple of our blocksize. | |
| encryptBlock | back to summary |
|---|---|
| private void encryptBlock(byte[] src, int srcIndex, byte[] dst, int dstIndex) Encrypt the given input starting at the given offset and place the result in the provided buffer starting at the given offset. The input will be an exact multiple of our blocksize. | |
| F | back to summary |
|---|---|
| private int F(int x) | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Implements org. Doc from org. Return the block size for this cipher (in bytes).
| |
| init | back to summary |
|---|---|
| public void init(boolean encrypting, CipherParameters params) Implements org. initialise a Blowfish cipher.
| |
| processBlock | back to summary |
|---|---|
| public final int processBlock(byte[] in, int inOff, byte[] out, int outOff) Implements org. Doc from org. Process one block of input from the array in and write it to the out array.
| |
| processTable | back to summary |
|---|---|
| private void processTable(int xl, int xr, int[] table) apply the encryption cycle to each value pair in the table. | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one). | |
| setKey | back to summary |
|---|---|
| private void setKey(byte[] key) | |