DES_BLOCK_SIZE. Each DES operation has its own key.
DESConstants, DESCipher
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final byte[] | |
| private byte[] | |
| private byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| 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)plainOverrides com. Performs decryption operation. |
| 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)cipherOverrides com. Performs encryption operation. |
| pack-priv void | init(boolean decrypting, String algorithm, byte[] keys)
Overrides com. Initializes the cipher in the specified mode with the given key. |
| private boolean |
| buf1 | back to summary |
|---|---|
| private final byte[] buf1 | |
| buf2 | back to summary |
|---|---|
| private final byte[] buf2 | |
| key1 | back to summary |
|---|---|
| private byte[] key1 | |
| key2 | back to summary |
|---|---|
| private byte[] key2 | |
| key3 | back to summary |
|---|---|
| private byte[] key3 | |
| DESedeCrypt | back to summary |
|---|---|
| pack-priv DESedeCrypt() | |
| decryptBlock | back to summary |
|---|---|
| pack-priv void decryptBlock(byte[] cipher, int cipherOffset, byte[] plain, int plainOffset) Overrides com. Performs decryption operation. The input cipher text
| |
| encryptBlock | back to summary |
|---|---|
| pack-priv void encryptBlock(byte[] plain, int plainOffset, byte[] cipher, int cipherOffset) Overrides com. Performs encryption operation. The input plain text
| |
| init | back to summary |
|---|---|
| pack-priv void init(boolean decrypting, String algorithm, byte[] keys) throws InvalidKeyException Overrides com. Doc from com. Initializes the cipher in the specified mode with the given key.
| |
| keyEquals | back to summary |
|---|---|
| private boolean keyEquals(byte[] key1, int off1, byte[] key2, int off2, int len) | |