| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private byte[] | |
| private int | |
| private boolean | |
| private byte[] | |
| private static final int | |
| private byte[] | |
| private final CryptoServicePurpose | |
| private byte[] | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public int | doFinal(byte[]
the array the MAC is to be output to. out, int the offset into the out buffer the output is to start at. outOff)Implements org. |
| private int[] | |
| public String | getAlgorithmName()
Implements org. |
| public int | getMacSize()
Implements org. |
| private int | |
| private void | |
| public void | init(CipherParameters
the key and other data required by the MAC. params)Implements org. |
| private void | |
| public void | |
| public void | update(byte
the byte to be processed. in)Implements org. |
| public void | update(byte[]
the array containing the input. in, int the index in the array the data begins at. inOff, int the length of the input starting at inOff. len)Implements org. |
| BLOCK_SIZE | back to summary |
|---|---|
| private static final int BLOCK_SIZE | |
| buf | back to summary |
|---|---|
| private byte[] buf | |
| bufOff | back to summary |
|---|---|
| private int bufOff | |
| firstStep | back to summary |
|---|---|
| private boolean firstStep | |
| mac | back to summary |
|---|---|
| private byte[] mac | |
| MAC_SIZE | back to summary |
|---|---|
| private static final int MAC_SIZE | |
| macIV | back to summary |
|---|---|
| private byte[] macIV | |
| purpose | back to summary |
|---|---|
| private final CryptoServicePurpose purpose | |
| S | back to summary |
|---|---|
| private byte[] S | |
| workingKey | back to summary |
|---|---|
| private int[] workingKey | |
| GOST28147Mac | back to summary |
|---|---|
| public GOST28147Mac() | |
| GOST28147Mac | back to summary |
|---|---|
| public GOST28147Mac(CryptoServicePurpose purpose) | |
| CM5func | back to summary |
|---|---|
| private static void CM5func(byte[] buf, int bufOff, byte[] mac, byte[] sum) | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) throws DataLengthException, IllegalStateException Implements org. Doc from org. Compute the final stage of the MAC writing the output to the out parameter. doFinal leaves the MAC in the same state it was after the last init.
| |
| generateWorkingKey | back to summary |
|---|---|
| private int[] generateWorkingKey(byte[] userKey) | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the MAC implements.
| |
| getMacSize | back to summary |
|---|---|
| public int getMacSize() Implements org. Doc from org. Return the block size for this MAC (in bytes).
| |
| gost28147_mainStep | back to summary |
|---|---|
| private int gost28147_mainStep(int n1, int key) | |
| gost28147MacFunc | back to summary |
|---|---|
| private void gost28147MacFunc(int[] workingKey, byte[] in, int inOff, byte[] out, int outOff) | |
| init | back to summary |
|---|---|
| public void init(CipherParameters params) throws IllegalArgumentException Implements org. Doc from org. Initialise the MAC.
| |
| recursiveInit | back to summary |
|---|---|
| private void recursiveInit(CipherParameters params) throws IllegalArgumentException | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the MAC. At the end of resetting the MAC should be in the in the same state it was after the last init (if there was one). | |
| update | back to summary |
|---|---|
| public void update(byte in) throws IllegalStateException Implements org. Doc from org. add a single byte to the mac for processing.
| |
| update | back to summary |
|---|---|
| public void update(byte[] in, int inOff, int len) throws DataLengthException, IllegalStateException Implements org.
| |