| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] | |
| private boolean | |
| private byte[] | |
| private static byte[] | |
| private static Hashtable | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private int | |
| private int[] | |
| public String | getAlgorithmName()
Implements org. |
| public int | getBlockSize()
Implements org. |
| public static byte[] | |
| private int | |
| private void | |
| public void | init(boolean
whether or not we are for encryption. forEncryption, CipherParameters the parameters required to set up the cipher. params)Implements org. |
| private void | |
| public 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. |
| public void |
| BLOCK_SIZE | back to summary |
|---|---|
| protected static final int BLOCK_SIZE | |
| DSbox_A | back to summary |
|---|---|
| private static byte[] DSbox_A | |
| DSbox_Test | back to summary |
|---|---|
| private static byte[] DSbox_Test | |
| ESbox_A | back to summary |
|---|---|
| private static byte[] ESbox_A | |
| ESbox_B | back to summary |
|---|---|
| private static byte[] ESbox_B | |
| ESbox_C | back to summary |
|---|---|
| private static byte[] ESbox_C | |
| ESbox_D | back to summary |
|---|---|
| private static byte[] ESbox_D | |
| ESbox_Test | back to summary |
|---|---|
| private static byte[] ESbox_Test | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| S | back to summary |
|---|---|
| private byte[] S | |
| Sbox_Default | back to summary |
|---|---|
| private static byte[] Sbox_Default | |
| sBoxes | back to summary |
|---|---|
| private static Hashtable<K, V> sBoxes | |
| workingKey | back to summary |
|---|---|
| private int[] workingKey | |
| GOST28147Engine | back to summary |
|---|---|
| public GOST28147Engine() standard constructor. | |
| addSBox | back to summary |
|---|---|
| private static void addSBox(String sBoxName, byte[] sBox) | |
| bytesToint | back to summary |
|---|---|
| private int bytesToint(byte[] in, int inOff) | |
| generateWorkingKey | back to summary |
|---|---|
| private int[] generateWorkingKey(boolean forEncryption, byte[] userKey) | |
| 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).
| |
| getSBox | back to summary |
|---|---|
| public static byte[] getSBox(String sBoxName) Return the S-Box associated with SBoxName
| |
| GOST28147_mainStep | back to summary |
|---|---|
| private int GOST28147_mainStep(int n1, int key) | |
| GOST28147Func | back to summary |
|---|---|
| private void GOST28147Func(int[] workingKey, byte[] in, int inOff, byte[] out, int outOff) | |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) Implements org. initialise an GOST28147 cipher.
| |
| intTobytes | back to summary |
|---|---|
| private void intTobytes(int num, byte[] out, int outOff) | |
| processBlock | back to summary |
|---|---|
| public 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.
| |
| 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). | |