BLOWFISH_BLOCK_SIZE.
BlowfishCipher
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final int[] | |
| private static final int[] | |
| private final int[] | |
| private final int[] | |
| private final int[] | |
| private final int[] | |
| private final int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | cipherBlock(byte[] in, int inOffset, byte[] out, int outOffset)
Encrypts, or decrypts, the blocks of data passed in. |
| pack-priv void | decryptBlock(byte[]
the buffer with the input data to be decrypted cipher, int the offset in cipherOffset, byte[] cipherOffsetthe buffer for the result plain, int the offset in plainOffset)plainImplements abstract com. Performs decryption operation. |
| private void | |
| pack-priv void | encryptBlock(byte[]
the buffer with the input data to be encrypted plain, int the offset in plainOffset, byte[] plainthe buffer for the result cipher, int the offset in cipherOffset)cipherImplements abstract com. Performs encryption operation. |
| private void | |
| private int | |
| pack-priv int | Returns: this cipher's block sizeImplements abstract com. Gets this cipher's block size. |
| pack-priv void | init(boolean decrypting, String algorithm, byte[] rawKey)
Implements abstract com. Initializes the cipher in the specified mode with the given key. |
| decrypting | back to summary |
|---|---|
| private boolean decrypting | |
| p | back to summary |
|---|---|
| private final int[] p | |
| pi | back to summary |
|---|---|
| private static final int[] pi | |
| 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 | |
| temp | back to summary |
|---|---|
| private final int[] temp | |
| BlowfishCrypt | back to summary |
|---|---|
| pack-priv BlowfishCrypt() | |
| cipherBlock | back to summary |
|---|---|
| private void cipherBlock(byte[] in, int inOffset, byte[] out, int outOffset) Encrypts, or decrypts, the blocks of data passed in. | |
| decryptBlock | back to summary |
|---|---|
| pack-priv void decryptBlock(byte[] cipher, int cipherOffset, byte[] plain, int plainOffset) Implements abstract com. Performs decryption operation. The input cipher text The subclass that implements Cipher should ensure that
| |
| decryptBlock | back to summary |
|---|---|
| private void decryptBlock(int[] value) Decrypts a single block, in place. | |
| encryptBlock | back to summary |
|---|---|
| pack-priv void encryptBlock(byte[] plain, int plainOffset, byte[] cipher, int cipherOffset) Implements abstract com. Performs encryption operation. The input plain text The subclass that implements Cipher should ensure that
| |
| encryptBlock | back to summary |
|---|---|
| private void encryptBlock(int[] value) Encrypts a single block, in place. | |
| F | back to summary |
|---|---|
| private int F(int v) Calculates the S-Box function F(). This gets used "rounds" times on each encryption/decryption. | |
| getBlockSize | back to summary |
|---|---|
| pack-priv int getBlockSize() Implements abstract com. Gets this cipher's block size.
| |
| init | back to summary |
|---|---|
| pack-priv void init(boolean decrypting, String algorithm, byte[] rawKey) throws InvalidKeyException Implements abstract com. Doc from com. Initializes the cipher in the specified mode with the given key.
| |