| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final long[][] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final long[][] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final long[][] | |
| private static final byte[] | |
| private static final long[][][] | |
| private static final byte[] | |
| private static final byte[][] | |
| private static final long[][] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| private static long | des_cipher(long in, int salt, int num_iter, long[] KS)
Returns the DES encrypted code of the given word with the specified environment. |
| private static long[] | |
| private static void | init_perm(long[][] perm, byte[] p, int chars_out)
Initializes the given permutation table with the mapping table. |
| public static void | |
| private static long | perm3264(int c, long[][] p)
Returns the permutation of the given 32-bit code with the specified permutataion table. |
| private static long | perm6464(long c, long[][] p)
Returns the permutation of the given 64-bit code with the specified permutataion table. |
| private static int | to_six_bit(int num)
Returns the transposed and split code of a 24-bit code into a 4-byte code, each having 6 bits. |
| private static long | to_six_bit(long num)
Returns the transposed and split code of two 24-bit code into two 4-byte code, each having 6 bits. |
| A64TOI | back to summary |
|---|---|
| private static final byte[] A64TOI | |
| CF6464 | back to summary |
|---|---|
| private static final long[][] CF6464 | |
| CIFP | back to summary |
|---|---|
| private static final byte[] CIFP | |
| ExpandTr | back to summary |
|---|---|
| private static final byte[] ExpandTr | |
| IE3264 | back to summary |
|---|---|
| private static final long[][] IE3264 | |
| IP | back to summary |
|---|---|
| private static final byte[] IP | |
| ITOA64 | back to summary |
|---|---|
| private static final byte[] ITOA64 | |
| P32Tr | back to summary |
|---|---|
| private static final byte[] P32Tr | |
| PC1 | back to summary |
|---|---|
| private static final byte[] PC1 | |
| PC1ROT | back to summary |
|---|---|
| private static final long[][] PC1ROT | |
| PC2 | back to summary |
|---|---|
| private static final byte[] PC2 | |
| PC2ROT | back to summary |
|---|---|
| private static final long[][][] PC2ROT | |
| Rotates | back to summary |
|---|---|
| private static final byte[] Rotates | |
| S | back to summary |
|---|---|
| private static final byte[][] S | |
| SPE | back to summary |
|---|---|
| private static final long[][] SPE | |
| UnixCrypt | back to summary |
|---|---|
| private UnixCrypt() You can't call the constructer. | |
| crypt | back to summary |
|---|---|
| public static String crypt(String key, String setting) Encrypts String into crypt (Unix) code. | |
| des_cipher | back to summary |
|---|---|
| private static long des_cipher(long in, int salt, int num_iter, long[] KS) Returns the DES encrypted code of the given word with the specified environment. | |
| des_setkey | back to summary |
|---|---|
| private static long[] des_setkey(long keyword) Returns the key schedule for the given key. | |
| init_perm | back to summary |
|---|---|
| private static void init_perm(long[][] perm, byte[] p, int chars_out) Initializes the given permutation table with the mapping table. | |
| main | back to summary |
|---|---|
| public static void main(String[] arg) | |
| perm3264 | back to summary |
|---|---|
| private static long perm3264(int c, long[][] p) Returns the permutation of the given 32-bit code with the specified permutataion table. | |
| perm6464 | back to summary |
|---|---|
| private static long perm6464(long c, long[][] p) Returns the permutation of the given 64-bit code with the specified permutataion table. | |
| to_six_bit | back to summary |
|---|---|
| private static int to_six_bit(int num) Returns the transposed and split code of a 24-bit code into a 4-byte code, each having 6 bits. | |
| to_six_bit | back to summary |
|---|---|
| private static long to_six_bit(long num) Returns the transposed and split code of two 24-bit code into two 4-byte code, each having 6 bits. | |