| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final int[] | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| pack-priv void | decryptBlock(byte[] in, int inOfs, byte[] out, int outOfs)
Implements abstract com. Decrypt one cipher block. |
| pack-priv void | encryptBlock(byte[] in, int inOfs, byte[] out, int outOfs)
Implements abstract com. Encrypt a single block. |
| pack-priv int | getBlockSize()
Implements abstract com. Retrieves this cipher's block size. |
| pack-priv int | |
| pack-priv void | init(boolean decrypting, String algorithm, byte[] key)
Implements abstract com. Initializes the cipher in the specified mode with the given key. |
| pack-priv void |
| effectiveKeyBits | back to summary |
|---|---|
| private int effectiveKeyBits | |
| expandedKey | back to summary |
|---|---|
| private final int[] expandedKey | |
| PI_TABLE | back to summary |
|---|---|
| private static final int[] PI_TABLE | |
| RC2Crypt | back to summary |
|---|---|
| pack-priv RC2Crypt() | |
| checkKey | back to summary |
|---|---|
| pack-priv static void checkKey(String algorithm, int keyLength) throws InvalidKeyException | |
| decryptBlock | back to summary |
|---|---|
| pack-priv void decryptBlock(byte[] in, int inOfs, byte[] out, int outOfs) Implements abstract com. Doc from com. Decrypt one cipher block. The input | |
| encryptBlock | back to summary |
|---|---|
| pack-priv void encryptBlock(byte[] in, int inOfs, byte[] out, int outOfs) Implements abstract com. Encrypt a single block. Note that in a few places we omit a "& 0xffff" and allow variables to become larger than 16 bit. This still works because there is never a 32 bit overflow. | |
| getBlockSize | back to summary |
|---|---|
| pack-priv int getBlockSize() Implements abstract com. Doc from com. Retrieves this cipher's block size. | |
| getEffectiveKeyBits | back to summary |
|---|---|
| pack-priv int getEffectiveKeyBits() | |
| init | back to summary |
|---|---|
| pack-priv void init(boolean decrypting, String algorithm, byte[] key) throws InvalidKeyException Implements abstract com. Doc from com. Initializes the cipher in the specified mode with the given key.
| |
| initEffectiveKeyBits | back to summary |
|---|---|
| pack-priv void initEffectiveKeyBits(int effectiveKeyBits) Initializes the effective key bit size. This method is a hook to allow RC2Cipher to initialize the effective key size. | |