| Modifier and Type | Field and Description |
|---|---|
| protected final BlockCipher | |
| protected boolean | |
| protected FPEParameters |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract int | |
| protected abstract int | |
| public abstract String | Returns: the name of the algorithm the cipher implements.Return the name of the algorithm the cipher implements. |
| public abstract void | init(boolean
true if initialising for encryption, false otherwise. forEncryption, CipherParameters the key and other parameters to use to set the engine up. parameters)Initialize the FPE engine for encryption/decryption. |
| public int | Returns: number of bytes output.input data. inBuf, int offset in input data to start at. inOff, int number of bytes to process. length, byte[] destination buffer. outBuf, int offset to start writing at in destination buffer. outOff)Process length bytes from inBuf, writing the output to outBuf. |
| protected static byte[] | |
| protected static short[] |
| baseCipher | back to summary |
|---|---|
| protected final BlockCipher baseCipher | |
| forEncryption | back to summary |
|---|---|
| protected boolean forEncryption | |
| fpeParameters | back to summary |
|---|---|
| protected FPEParameters fpeParameters | |
| FPEEngine | back to summary |
|---|---|
| protected FPEEngine(BlockCipher baseCipher) | |
| decryptBlock | back to summary |
|---|---|
| protected abstract int decryptBlock(byte[] inBuf, int inOff, int length, byte[] outBuf, int outOff) | |
| encryptBlock | back to summary |
|---|---|
| protected abstract int encryptBlock(byte[] inBuf, int inOff, int length, byte[] outBuf, int outOff) | |
| getAlgorithmName | back to summary |
|---|---|
| public abstract String getAlgorithmName() Return the name of the algorithm the cipher implements.
| |
| init | back to summary |
|---|---|
| public abstract void init(boolean forEncryption, CipherParameters parameters) Initialize the FPE engine for encryption/decryption.
| |
| processBlock | back to summary |
|---|---|
| public int processBlock(byte[] inBuf, int inOff, int length, byte[] outBuf, int outOff) Process length bytes from inBuf, writing the output to outBuf.
| |
| toByteArray | back to summary |
|---|---|
| protected static byte[] toByteArray(short[] buf) | |
| toShortArray | back to summary |
|---|---|
| protected static short[] toShortArray(byte[] buf) | |