Class SP80038G
java.lang.Object
org.bouncycastle.crypto.internal.fpe.SP80038G
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final doubleprotected static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static intcalculateB_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 BigIntegercalculateY_FF1(BlockCipher cipher, byte[] T, int b, int d, int round, byte[] P, short[] AB, RadixConverter radixConverter) protected static BigIntegercalculateY_FF3(BlockCipher cipher, byte[] T, int wOff, int round, short[] AB, RadixConverter radixConverter) protected static voidcheckArgs(BlockCipher cipher, boolean isFF1, int radix, byte[] buf, int off, int len) protected static voidcheckArgs(BlockCipher cipher, boolean isFF1, int radix, short[] buf, int off, int len) protected static voidcheckCipher(BlockCipher cipher) protected static voidcheckData(boolean isFF1, int radix, byte[] buf, int off, int len) protected static voidcheckData(boolean isFF1, int radix, short[] buf, int off, int len) static byte[]decryptFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, byte[] buf, int off, int len) static short[]decryptFF1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, short[] buf, int off, int len) static byte[]decryptFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, byte[] buf, int off, int len) static short[]decryptFF3_1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, short[] buf, int off, int len) static byte[]encryptFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, byte[] buf, int off, int len) static short[]encryptFF1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, short[] buf, int off, int len) static byte[]encryptFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, byte[] buf, int off, int len) static short[]encryptFF3_1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, 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 BigIntegernum(byte[] buf, int off, int len) protected static byte[]prf(BlockCipher c, byte[] x) protected static voidrev(byte[] x) protected static voidrev(short[] x) protected static voidxor(byte[] x, int xOff, byte[] y, int yOff, int len)
-
Field Details
-
BLOCK_SIZE
protected static final int BLOCK_SIZE- See Also:
-
LOG2
protected static final double LOG2 -
TWO_TO_96
protected static final double TWO_TO_96
-
-
Constructor Details
-
SP80038G
public SP80038G()
-
-
Method Details
-
decryptFF1
public static byte[] decryptFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, byte[] buf, int off, int len) -
decryptFF1w
public static short[] decryptFF1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, short[] buf, int off, int len) -
decryptFF3_1
public static byte[] decryptFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, byte[] buf, int off, int len) -
decryptFF3_1w
public static short[] decryptFF3_1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, short[] buf, int off, int len) -
encryptFF1
public static byte[] encryptFF1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, byte[] buf, int off, int len) -
encryptFF1w
public static short[] encryptFF1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak, short[] buf, int off, int len) -
encryptFF3_1w
public static short[] encryptFF3_1w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, short[] buf, int off, int len) -
encryptFF3_1
public static byte[] encryptFF3_1(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak56, byte[] buf, int off, int len) -
calculateModUV
-
calculateB_FF1
protected static int calculateB_FF1(int radix, int v) -
calculateP_FF1
protected static byte[] calculateP_FF1(int radix, byte uLow, int n, int t) -
calculateTweak64_FF3_1
protected static byte[] calculateTweak64_FF3_1(byte[] tweak56) -
calculateY_FF1
protected static BigInteger calculateY_FF1(BlockCipher cipher, byte[] T, int b, int d, int round, byte[] P, short[] AB, RadixConverter radixConverter) -
calculateY_FF3
protected static BigInteger calculateY_FF3(BlockCipher cipher, byte[] T, int wOff, int round, short[] AB, RadixConverter radixConverter) -
checkArgs
protected static void checkArgs(BlockCipher cipher, boolean isFF1, int radix, short[] buf, int off, int len) -
checkArgs
protected static void checkArgs(BlockCipher cipher, boolean isFF1, int radix, byte[] buf, int off, int len) -
checkCipher
-
checkData
protected static void checkData(boolean isFF1, int radix, short[] buf, int off, int len) -
checkData
protected static void checkData(boolean isFF1, int radix, byte[] buf, int off, int len) -
implDecryptFF3
protected static byte[] implDecryptFF3(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, byte[] buf, int off, int len) -
implDecryptFF3w
protected static short[] implDecryptFF3w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, short[] buf, int off, int len) -
implEncryptFF3
protected static byte[] implEncryptFF3(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, byte[] buf, int off, int len) -
implEncryptFF3w
protected static short[] implEncryptFF3w(BlockCipher cipher, RadixConverter radixConverter, byte[] tweak64, short[] buf, int off, int len) -
num
-
prf
-
rev
protected static void rev(byte[] x) -
rev
protected static void rev(short[] x) -
xor
protected static void xor(byte[] x, int xOff, byte[] y, int yOff, int len)
-