Class KGCMUtil_128


  • public class KGCMUtil_128
    extends java.lang.Object
    Utilities for the GF(2^m) field with corresponding extension polynomial: GF (2^128) -> x^128 + x^7 + x^2 + x + 1 The representation is little-endian arrays of 64-bit words
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int SIZE  
    • Constructor Summary

      Constructors 
      Constructor Description
      KGCMUtil_128()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void add​(long[] x, long[] y, long[] z)  
      static void copy​(long[] x, long[] z)  
      static boolean equal​(long[] x, long[] y)  
      static void multiply​(long[] x, long[] y, long[] z)  
      static void multiplyX​(long[] x, long[] z)  
      static void multiplyX8​(long[] x, long[] z)  
      static void one​(long[] z)  
      static void square​(long[] x, long[] z)  
      static void x​(long[] z)  
      static void zero​(long[] z)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KGCMUtil_128

        public KGCMUtil_128()
    • Method Detail

      • add

        public static void add​(long[] x,
                               long[] y,
                               long[] z)
      • copy

        public static void copy​(long[] x,
                                long[] z)
      • equal

        public static boolean equal​(long[] x,
                                    long[] y)
      • multiply

        public static void multiply​(long[] x,
                                    long[] y,
                                    long[] z)
      • multiplyX

        public static void multiplyX​(long[] x,
                                     long[] z)
      • multiplyX8

        public static void multiplyX8​(long[] x,
                                      long[] z)
      • one

        public static void one​(long[] z)
      • square

        public static void square​(long[] x,
                                  long[] z)
      • x

        public static void x​(long[] z)
      • zero

        public static void zero​(long[] z)