Class F


  • public class F
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      F()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static Data hash​(Data data)
      Cryptographic hash function : SHA256
      protected static Data truncate​(Data data)
      Truncation function : Delete second half of data
      protected static Data truncate​(Data data, int n)
      Truncation function : Retain first n bytes of data
      protected static Data xor​(Data left, Data right)
      XOR function : Compute left xor right, assumes left and right are the same length
      • Methods inherited from class java.lang.Object

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

      • F

        public F()
    • Method Detail

      • hash

        @Nullable
        protected static Data hash​(@NonNull
                                   Data data)
        Cryptographic hash function : SHA256
      • truncate

        @Nullable
        protected static Data truncate​(@NonNull
                                       Data data)
        Truncation function : Delete second half of data
      • truncate

        @Nullable
        protected static Data truncate​(@NonNull
                                       Data data,
                                       int n)
        Truncation function : Retain first n bytes of data
      • xor

        @NonNull
        protected static Data xor​(@NonNull
                                  Data left,
                                  @NonNull
                                  Data right)
        XOR function : Compute left xor right, assumes left and right are the same length