Top Fields Constructors Methods
org.bouncycastle.crypto.fpe

pack-priv Class SP80038G

extends Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.crypto.BlockCipher, org.bouncycastle.crypto.util.RadixConverter, org.bouncycastle.util.Arrays, .BigIntegers, .Bytes, .Integers, .Pack

Field Summary

Modifier and TypeField and Description
protected static final int
pack-priv static final String
pack-priv static final String
protected static final double
protected static final double

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected static int
calculateB_FF1(int radix, int v)

protected static BigInteger[]
calculateModUV(BigInteger bigRadix, int u, int v)

protected static byte[]
calculateP_FF1(int radix, byte uLow, int n, int t)

protected static byte[]
calculateTweak64_FF3_1(byte[] tweak56)

protected static BigInteger
calculateY_FF1(BlockCipher cipher, byte[] T, int b, int d, int round, byte[] P, short[] AB, RadixConverter radixConverter)

protected static BigInteger
calculateY_FF3(BlockCipher cipher, byte[] T, int wOff, int round, short[] AB, RadixConverter radixConverter)

protected static void
checkArgs(BlockCipher cipher, boolean isFF1, int radix, short[] buf, int off, int len)

protected static void
checkArgs(BlockCipher cipher, boolean isFF1, int radix, byte[] buf, int off, int len)

protected static void
protected static void
checkData(boolean isFF1, int radix, short[] buf, int off, int len)

protected static void
checkData(boolean isFF1, int radix, byte[] buf, int off, int len)

private static void
checkLength(boolean isFF1, int radix, int len)

pack-priv static short[]
decFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] T, int n, int u, int v, short[] A, short[] B)

private static short[]
decFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] T, int n, int v, int u, short[] A, short[] B)

pack-priv static byte[]
decryptFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, byte[] buf, int off, int len)

pack-priv static short[]
decryptFF1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, short[] buf, int off, int len)

pack-priv static byte[]
decryptFF3(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, byte[] buf, int off, int len)

pack-priv static byte[]
decryptFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, byte[] buf, int off, int len)

pack-priv static short[]
decryptFF3_1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, short[] buf, int off, int len)

private static short[]
encFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] T, int n, int u, int v, short[] A, short[] B)

private static short[]
encFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] t, int n, int v, int u, short[] a, short[] b)

pack-priv static byte[]
encryptFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, byte[] buf, int off, int len)

pack-priv static short[]
encryptFF1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, short[] buf, int off, int len)

pack-priv static byte[]
encryptFF3(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, byte[] buf, int off, int len)

pack-priv static byte[]
encryptFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, byte[] buf, int off, int len)

pack-priv static short[]
encryptFF3_1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, short[] buf, int off, int len)

pack-priv static short[]
encryptFF3w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, short[] buf, int off, int len)

protected static byte[]
implDecryptFF3(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, byte[] buf, int off, int len)

protected static short[]
implDecryptFF3w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, short[] buf, int off, int len)

protected static byte[]
implEncryptFF3(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, byte[] buf, int off, int len)

protected static short[]
implEncryptFF3w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, short[] buf, int off, int len)

protected static BigInteger
num(byte[] buf, int off, int len)

protected static byte[]
prf(BlockCipher c, byte[] x)

private static byte[]
toByte(short[] buf)

private static short[]
toShort(byte[] buf, int off, int len)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BLOCK_SIZEback to summary
protected static final int BLOCK_SIZE
FF1_DISABLEDback to summary
pack-priv static final String FF1_DISABLED
FPE_DISABLEDback to summary
pack-priv static final String FPE_DISABLED
LOG2back to summary
protected static final double LOG2
TWO_TO_96back to summary
protected static final double TWO_TO_96

Constructor Detail

SP80038Gback to summary
pack-priv SP80038G()

Method Detail

calculateB_FF1back to summary
protected static int calculateB_FF1(int radix, int v)
calculateModUVback to summary
protected static BigInteger[] calculateModUV(BigInteger bigRadix, int u, int v)
calculateP_FF1back to summary
protected static byte[] calculateP_FF1(int radix, byte uLow, int n, int t)
calculateTweak64_FF3_1back to summary
protected static byte[] calculateTweak64_FF3_1(byte[] tweak56)
calculateY_FF1back to summary
protected static BigInteger calculateY_FF1(BlockCipher cipher, byte[] T, int b, int d, int round, byte[] P, short[] AB, RadixConverter radixConverter)
calculateY_FF3back to summary
protected static BigInteger calculateY_FF3(BlockCipher cipher, byte[] T, int wOff, int round, short[] AB, RadixConverter radixConverter)
checkArgsback to summary
protected static void checkArgs(BlockCipher cipher, boolean isFF1, int radix, short[] buf, int off, int len)
checkArgsback to summary
protected static void checkArgs(BlockCipher cipher, boolean isFF1, int radix, byte[] buf, int off, int len)
checkCipherback to summary
protected static void checkCipher(BlockCipher cipher)
checkDataback to summary
protected static void checkData(boolean isFF1, int radix, short[] buf, int off, int len)
checkDataback to summary
protected static void checkData(boolean isFF1, int radix, byte[] buf, int off, int len)
checkLengthback to summary
private static void checkLength(boolean isFF1, int radix, int len)
decFF1back to summary
pack-priv static short[] decFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] T, int n, int u, int v, short[] A, short[] B)
decFF3_1back to summary
private static short[] decFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] T, int n, int v, int u, short[] A, short[] B)
decryptFF1back to summary
pack-priv static byte[] decryptFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, byte[] buf, int off, int len)
decryptFF1wback to summary
pack-priv static short[] decryptFF1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, short[] buf, int off, int len)
decryptFF3back to summary
pack-priv static byte[] decryptFF3(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, byte[] buf, int off, int len)
decryptFF3_1back to summary
pack-priv static byte[] decryptFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, byte[] buf, int off, int len)
decryptFF3_1wback to summary
pack-priv static short[] decryptFF3_1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, short[] buf, int off, int len)
encFF1back to summary
private static short[] encFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] T, int n, int u, int v, short[] A, short[] B)
encFF3_1back to summary
private static short[] encFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] t, int n, int v, int u, short[] a, short[] b)
encryptFF1back to summary
pack-priv static byte[] encryptFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, byte[] buf, int off, int len)
encryptFF1wback to summary
pack-priv static short[] encryptFF1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, short[] buf, int off, int len)
encryptFF3back to summary
pack-priv static byte[] encryptFF3(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, byte[] buf, int off, int len)
encryptFF3_1back to summary
pack-priv static byte[] encryptFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, byte[] buf, int off, int len)
encryptFF3_1wback to summary
pack-priv static short[] encryptFF3_1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, short[] buf, int off, int len)
encryptFF3wback to summary
pack-priv static short[] encryptFF3w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, short[] buf, int off, int len)
implDecryptFF3back to summary
protected static byte[] implDecryptFF3(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, byte[] buf, int off, int len)
implDecryptFF3wback to summary
protected static short[] implDecryptFF3w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, short[] buf, int off, int len)
implEncryptFF3back to summary
protected static byte[] implEncryptFF3(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, byte[] buf, int off, int len)
implEncryptFF3wback to summary
protected static short[] implEncryptFF3w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, short[] buf, int off, int len)
numback to summary
protected static BigInteger num(byte[] buf, int off, int len)
prfback to summary
protected static byte[] prf(BlockCipher c, byte[] x)
toByteback to summary
private static byte[] toByte(short[] buf)
toShortback to summary
private static short[] toShort(byte[] buf, int off, int len)