Class SP80038G

java.lang.Object
org.bouncycastle.crypto.internal.fpe.SP80038G

public class SP80038G extends Object
  • 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

      protected static BigInteger[] calculateModUV(BigInteger bigRadix, int u, int v)
    • 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

      protected static void checkCipher(BlockCipher cipher)
    • 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

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

      protected static byte[] prf(BlockCipher c, byte[] x)
    • 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)