Enum Class NativeFeatureSignerID

java.lang.Object
java.lang.Enum<NativeFeatureSignerID>
com.pnfsoftware.jeb.core.units.code.asm.sig.NativeFeatureSignerID
All Implemented Interfaces:
Serializable, Comparable<NativeFeatureSignerID>, Constable

@Ser public enum NativeFeatureSignerID extends Enum<NativeFeatureSignerID>
Identifiers for features' signers, i.e. the algorithms to compute INativeFeature from a signed routine.
  • Enum Constant Details

    • UNKNOWN

      public static final NativeFeatureSignerID UNKNOWN
    • ROUTINE_CODE_HASH

      public static final NativeFeatureSignerID ROUTINE_CODE_HASH
      Signer to extract a custom hash from the routine assembly code.

      The hashing algorithm is intended to be false-positive free: a given hash should match only routines with the exact same code. Nevertheless, the algorithm does not consider the location-specific parts of the assembly instructions, i.e. a same routine mapped at different locations should yield the same hash.

    • CALLED_ROUTINE_NAME

      public static final NativeFeatureSignerID CALLED_ROUTINE_NAME
      Signer to extract the names of the routines called by the signed routine, both internal and external.
    • ROUTINE_SIZE

      public static final NativeFeatureSignerID ROUTINE_SIZE
      Signer to extract the size of the routine (number of instructions).
    • ROUTINE_1B_CTE

      public static final NativeFeatureSignerID ROUTINE_1B_CTE
      Signer to extract 1-byte constants from the routine code.
    • CALLED_ROUTINE_NAME_ONLY_EXTERN

      public static final NativeFeatureSignerID CALLED_ROUTINE_NAME_ONLY_EXTERN
      Signer to extract the names of the external routines called by the signed routine.
  • Method Details

    • values

      public static NativeFeatureSignerID[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NativeFeatureSignerID valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null