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
Identifiers for features' signers, i.e. the algorithms to compute
INativeFeature
from a
signed routine.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSigner to extract the names of the routines called by the signed routine, both internal and external.Signer to extract the names of the external routines called by the signed routine.Signer to extract 1-byte constants from the routine code.Signer to extract a custom hash from the routine assembly code.Signer to extract the size of the routine (number of instructions). -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeFeatureSignerID
Returns the enum constant of this class with the specified name.static NativeFeatureSignerID[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
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
Signer to extract the names of the routines called by the signed routine, both internal and external. -
ROUTINE_SIZE
Signer to extract the size of the routine (number of instructions). -
ROUTINE_1B_CTE
Signer to extract 1-byte constants from the routine code. -
CALLED_ROUTINE_NAME_ONLY_EXTERN
Signer to extract the names of the external routines called by the signed routine.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-