Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.crypto.fpe
Class FPEFF3_1Engine

java.lang.Object
  |
  +--org.bouncycastle.crypto.fpe.FPEEngine
        |
        +--org.bouncycastle.crypto.fpe.FPEFF3_1Engine

public class FPEFF3_1Engine
extends FPEEngine

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


Fields inherited from class org.bouncycastle.crypto.fpe.FPEEngine
baseCipher, forEncryption, fpeParameters
 
Constructor Summary
FPEFF3_1Engine()
          Base constructor - the engine will use AES.
FPEFF3_1Engine(BlockCipher baseCipher)
          Build the engine using the specified 128 bit block cipher.
 
Method Summary
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.
 
Methods inherited from class org.bouncycastle.crypto.fpe.FPEEngine
processBlock, toByteArray, toShortArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FPEFF3_1Engine

public FPEFF3_1Engine()
Base constructor - the engine will use AES.

FPEFF3_1Engine

public FPEFF3_1Engine(BlockCipher baseCipher)
Build the engine using the specified 128 bit block cipher.
Parameters:
baseCipher - cipher to base the FPE algorithm on.
Method Detail

init

public void init(boolean forEncryption,
                 CipherParameters parameters)
Description copied from class: FPEEngine
Initialize the FPE engine for encryption/decryption.
Overrides:
init in class FPEEngine
Following copied from class: org.bouncycastle.crypto.fpe.FPEEngine
Parameters:
forEncryption - true if initialising for encryption, false otherwise.
parameters - the key and other parameters to use to set the engine up.

getAlgorithmName

public java.lang.String getAlgorithmName()
Description copied from class: FPEEngine
Return the name of the algorithm the cipher implements.
Overrides:
getAlgorithmName in class FPEEngine
Following copied from class: org.bouncycastle.crypto.fpe.FPEEngine
Returns:
the name of the algorithm the cipher implements.

encryptBlock

protected int encryptBlock(byte[] inBuf,
                           int inOff,
                           int length,
                           byte[] outBuf,
                           int outOff)
Overrides:
encryptBlock in class FPEEngine

decryptBlock

protected int decryptBlock(byte[] inBuf,
                           int inOff,
                           int length,
                           byte[] outBuf,
                           int outOff)
Overrides:
decryptBlock in class FPEEngine

Bouncy Castle Cryptography Library 1.77.0