public class FPEFF1Engine extends FPEEngine
baseCipher, forEncryption, fpeParameters
Constructor and Description |
---|
FPEFF1Engine()
Base constructor - the engine will use AES.
|
FPEFF1Engine(BlockCipher baseCipher)
Build the engine using the specified 128 bit block cipher.
|
Modifier and Type | Method and Description |
---|---|
protected int |
decryptBlock(byte[] inBuf,
int inOff,
int length,
byte[] outBuf,
int outOff) |
protected int |
encryptBlock(byte[] inBuf,
int inOff,
int length,
byte[] outBuf,
int outOff) |
java.lang.String |
getAlgorithmName()
Return the name of the algorithm the cipher implements.
|
void |
init(boolean forEncryption,
CipherParameters parameters)
Initialize the FPE engine for encryption/decryption.
|
processBlock, toByteArray, toShortArray
public FPEFF1Engine()
public FPEFF1Engine(BlockCipher baseCipher)
baseCipher
- cipher to base the FPE algorithm on.public void init(boolean forEncryption, CipherParameters parameters)
FPEEngine
public java.lang.String getAlgorithmName()
FPEEngine
getAlgorithmName
in class FPEEngine
protected int encryptBlock(byte[] inBuf, int inOff, int length, byte[] outBuf, int outOff)
encryptBlock
in class FPEEngine
protected int decryptBlock(byte[] inBuf, int inOff, int length, byte[] outBuf, int outOff)
decryptBlock
in class FPEEngine