| Modifier and Type | Field and Description |
|---|---|
| protected byte | |
| protected byte[] | |
| protected byte | |
| protected byte[] | |
| protected byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithmName()
Implements org. Return the name of the algorithm the cipher implements. |
| public void | init(boolean
whether or not we are for encryption. forEncryption, CipherParameters the parameters required to set up the cipher. params)Implements org. initialise a VMPC cipher. |
| protected void | |
| public int | processBytes(byte[]
the input byte array. in, int the offset into the in array where the data to be processed starts. inOff, int the number of bytes to be processed. len, byte[] the output buffer the processed bytes go into. out, int the offset into the output byte array the processed data starts at. outOff)Implements org. process a block of bytes from in putting the result into out. |
| public void | |
| public byte | returnByte(byte
the byte to be processed. in)Implements org. encrypt/decrypt a single byte returning the result. |
| n | back to summary |
|---|---|
| protected byte n | |
| P | back to summary |
|---|---|
| protected byte[] P | |
| s | back to summary |
|---|---|
| protected byte s | |
| workingIV | back to summary |
|---|---|
| protected byte[] workingIV | |
| workingKey | back to summary |
|---|---|
| protected byte[] workingKey | |
| VMPCEngine | back to summary |
|---|---|
| public VMPCEngine() | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) Implements org. initialise a VMPC cipher.
| |
| initKey | back to summary |
|---|---|
| protected void initKey(byte[] keyBytes, byte[] ivBytes) | |
| processBytes | back to summary |
|---|---|
| public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) Implements org. Doc from org. process a block of bytes from in putting the result into out.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. reset the cipher. This leaves it in the same state it was at after the last init (if there was one). | |
| returnByte | back to summary |
|---|---|
| public byte returnByte(byte in) Implements org. Doc from org. encrypt/decrypt a single byte returning the result.
| |