Class NativeSignatureGenerator

java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.sig.NativeSignatureGenerator

public class NativeSignatureGenerator extends Object
Generation of INativeSignature, based on a ISigningStrategy.

This object is a singleton available to all analysis, similar to NativeSignatureDBManager.

  • Method Details

    • getInstance

      public static NativeSignatureGenerator getInstance(ISigningStrategy defaultStrategy)
    • generateSignature

      public INativeSignature generateSignature(INativeCodeAnalyzer<IInstruction> analyzer, INativeMethodItem routine, Set<NativeFeatureSignerID> clientProvidedFeatureSigners, Set<NativeAttributeSignerID> clientProvidedAttributeSigners)
      Generate a new signature for a routine, following the default strategy.
      Parameters:
      analyzer -
      routine -
      clientProvidedFeatureSigners - set of feature signers IDs, if present those feature signers will be used rather than the ones suggested by the strategy. Not implemented for now.
      clientProvidedAttributeSigners - set of attribute signers IDs, if present those attributes will be collected rather than the ones suggested by the strategy. Not implemented for now.
      Returns:
    • setDefaultStrategy

      public void setDefaultStrategy(ISigningStrategy defaultStrategy)