Top Description Fields Constructors Methods
org.bouncycastle.crypto.fpe

public Class FPEFF3_1Engine

extends FPEEngine
Class Inheritance
Imports
org.bouncycastle.crypto.BlockCipher, .CipherParameters, org.bouncycastle.crypto.engines.AESEngine, org.bouncycastle.crypto.params.FPEParameters, org.bouncycastle.util.Properties

NIST SP 800-38G, FF3-1 format preserving encryption.

Field Summary

Inherited from org.bouncycastle.crypto.fpe.FPEEngine:
baseCipherforEncryptionfpeParameters

Constructor Summary

AccessConstructor and Description
public
FPEFF3_1Engine()

Base constructor - the engine will use AES.

public
FPEFF3_1Engine(BlockCipher
cipher to base the FPE algorithm on.
baseCipher
)

Build the engine using the specified 128 bit block cipher.

Method Summary

Modifier and TypeMethod and Description
protected int
decryptBlock(byte[] inBuf, int inOff, int length, byte[] outBuf, int outOff)

Implements abstract org.bouncycastle.crypto.fpe.FPEEngine.decryptBlock.

protected int
encryptBlock(byte[] inBuf, int inOff, int length, byte[] outBuf, int outOff)

Implements abstract org.bouncycastle.crypto.fpe.FPEEngine.encryptBlock.

public String
getAlgorithmName()

Implements abstract org.bouncycastle.crypto.fpe.FPEEngine.getAlgorithmName.

Return the name of the algorithm the cipher implements.

public 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
)

Implements abstract org.bouncycastle.crypto.fpe.FPEEngine.init.

Initialize the FPE engine for encryption/decryption.

Inherited from org.bouncycastle.crypto.fpe.FPEEngine:
processBlocktoByteArraytoShortArray

Constructor Detail

FPEFF3_1Engineback to summary
public FPEFF3_1Engine()

Base constructor - the engine will use AES.

FPEFF3_1Engineback to summary
public FPEFF3_1Engine(BlockCipher baseCipher)

Build the engine using the specified 128 bit block cipher.

Parameters
baseCipher:BlockCipher

cipher to base the FPE algorithm on.

Method Detail

decryptBlockback to summary
protected int decryptBlock(byte[] inBuf, int inOff, int length, byte[] outBuf, int outOff)

Implements abstract org.bouncycastle.crypto.fpe.FPEEngine.decryptBlock.

encryptBlockback to summary
protected int encryptBlock(byte[] inBuf, int inOff, int length, byte[] outBuf, int outOff)

Implements abstract org.bouncycastle.crypto.fpe.FPEEngine.encryptBlock.

getAlgorithmNameback to summary
public String getAlgorithmName()

Implements abstract org.bouncycastle.crypto.fpe.FPEEngine.getAlgorithmName.

Doc from org.bouncycastle.crypto.fpe.FPEEngine.getAlgorithmName.

Return the name of the algorithm the cipher implements.

Returns:String

the name of the algorithm the cipher implements.

initback to summary
public void init(boolean forEncryption, CipherParameters parameters)

Implements abstract org.bouncycastle.crypto.fpe.FPEEngine.init.

Doc from org.bouncycastle.crypto.fpe.FPEEngine.init.

Initialize the FPE engine for encryption/decryption.

Parameters
forEncryption:boolean

true if initialising for encryption, false otherwise.

parameters:CipherParameters

the key and other parameters to use to set the engine up.