unit Chilkat.XmlDSigGen;

{
  Pascal wrapper for Chilkat XmlDSigGen.
  Auto-generated by PascalWrapperGenerator -- do not edit manually.
}

{$IFDEF FPC}
  {$MODE DELPHI}
{$ENDIF}

interface

uses
  SysUtils,
  Chilkat.Base;

type

  { TXmlDSigGen wraps CkXmlDSigGen via the C bridge layer. }
  TXmlDSigGen = class(TChilkatBase)
  private
    FOnAbortCheck: TChilkatAbortCheckEvent;
    FOnPercentDone: TChilkatPercentDoneEvent;
    FOnProgressInfo: TChilkatProgressInfoEvent;
    function  GetLastErrorHtml: string;
    function  GetLastErrorText: string;
    function  GetLastErrorXml: string;
    function  GetVersion: string;
    function  GetDebugLogFilePath: string;
    procedure SetDebugLogFilePath(AValue: string);
    function  GetVerboseLogging: Boolean;
    procedure SetVerboseLogging(AValue: Boolean);
    function  GetLastMethodSuccess: Boolean;
    procedure SetLastMethodSuccess(AValue: Boolean);
    function  GetSigLocation: string;
    procedure SetSigLocation(AValue: string);
    function  GetSigNamespaceUri: string;
    procedure SetSigNamespaceUri(AValue: string);
    function  GetSigNamespacePrefix: string;
    procedure SetSigNamespacePrefix(AValue: string);
    function  GetSigningAlg: string;
    procedure SetSigningAlg(AValue: string);
    function  GetSignedInfoCanonAlg: string;
    procedure SetSignedInfoCanonAlg(AValue: string);
    function  GetSignedInfoPrefixList: string;
    procedure SetSignedInfoPrefixList(AValue: string);
    function  GetSignedInfoDigestMethod: string;
    procedure SetSignedInfoDigestMethod(AValue: string);
    function  GetKeyInfoType: string;
    procedure SetKeyInfoType(AValue: string);
    function  GetX509Type: string;
    procedure SetX509Type(AValue: string);
    function  GetCustomKeyInfoXml: string;
    procedure SetCustomKeyInfoXml(AValue: string);
    function  GetSigId: string;
    procedure SetSigId(AValue: string);
    function  GetKeyInfoKeyName: string;
    procedure SetKeyInfoKeyName(AValue: string);
    function  GetIncNamespacePrefix: string;
    procedure SetIncNamespacePrefix(AValue: string);
    function  GetIncNamespaceUri: string;
    procedure SetIncNamespaceUri(AValue: string);
    function  GetBehaviors: string;
    procedure SetBehaviors(AValue: string);
    function  GetKeyInfoId: string;
    procedure SetKeyInfoId(AValue: string);
    function  GetSignedInfoId: string;
    procedure SetSignedInfoId(AValue: string);
    function  GetSigValueId: string;
    procedure SetSigValueId(AValue: string);
    function  GetSigLocationMod: Integer;
    procedure SetSigLocationMod(AValue: Integer);
    function  GetUncommonOptions: string;
    procedure SetUncommonOptions(AValue: string);
    function  GetSigLocationIdx: Integer;
    procedure SetSigLocationIdx(AValue: Integer);
    procedure SetOnAbortCheck(AValue: TChilkatAbortCheckEvent);
    procedure SetOnPercentDone(AValue: TChilkatPercentDoneEvent);
    procedure SetOnProgressInfo(AValue: TChilkatProgressInfoEvent);
  public
    constructor Create;
    destructor  Destroy; override;

    property LastErrorHtml: string read GetLastErrorHtml;
    property LastErrorText: string read GetLastErrorText;
    property LastErrorXml: string read GetLastErrorXml;
    property Version: string read GetVersion;
    property DebugLogFilePath: string read GetDebugLogFilePath write SetDebugLogFilePath;
    property VerboseLogging: Boolean read GetVerboseLogging write SetVerboseLogging;
    property LastMethodSuccess: Boolean read GetLastMethodSuccess write SetLastMethodSuccess;
    property SigLocation: string read GetSigLocation write SetSigLocation;
    property SigNamespaceUri: string read GetSigNamespaceUri write SetSigNamespaceUri;
    property SigNamespacePrefix: string read GetSigNamespacePrefix write SetSigNamespacePrefix;
    property SigningAlg: string read GetSigningAlg write SetSigningAlg;
    property SignedInfoCanonAlg: string read GetSignedInfoCanonAlg write SetSignedInfoCanonAlg;
    property SignedInfoPrefixList: string read GetSignedInfoPrefixList write SetSignedInfoPrefixList;
    property SignedInfoDigestMethod: string read GetSignedInfoDigestMethod write SetSignedInfoDigestMethod;
    property KeyInfoType: string read GetKeyInfoType write SetKeyInfoType;
    property X509Type: string read GetX509Type write SetX509Type;
    property CustomKeyInfoXml: string read GetCustomKeyInfoXml write SetCustomKeyInfoXml;
    property SigId: string read GetSigId write SetSigId;
    property KeyInfoKeyName: string read GetKeyInfoKeyName write SetKeyInfoKeyName;
    property IncNamespacePrefix: string read GetIncNamespacePrefix write SetIncNamespacePrefix;
    property IncNamespaceUri: string read GetIncNamespaceUri write SetIncNamespaceUri;
    property Behaviors: string read GetBehaviors write SetBehaviors;
    property KeyInfoId: string read GetKeyInfoId write SetKeyInfoId;
    property SignedInfoId: string read GetSignedInfoId write SetSignedInfoId;
    property SigValueId: string read GetSigValueId write SetSigValueId;
    property SigLocationMod: Integer read GetSigLocationMod write SetSigLocationMod;
    property UncommonOptions: string read GetUncommonOptions write SetUncommonOptions;
    property SigLocationIdx: Integer read GetSigLocationIdx write SetSigLocationIdx;

    { Event callbacks.  Return True from OnAbortCheck / OnPercentDone
      to abort the running method.  Callbacks are invoked on the
      thread that called the Chilkat method.  The HeartbeatMs
      property controls the AbortCheck frequency. }
    property OnAbortCheck: TChilkatAbortCheckEvent read FOnAbortCheck write SetOnAbortCheck;
    property OnPercentDone: TChilkatPercentDoneEvent read FOnPercentDone write SetOnPercentDone;
    property OnProgressInfo: TChilkatProgressInfoEvent read FOnProgressInfo write SetOnProgressInfo;

    function  AddEnvelopedRef(const id: string; content: TChilkatBase; const digestMethod: string; const canonMethod: string; const refType: string): Boolean;
    function  AddSameDocRef(const id: string; const digestMethod: string; const canonMethod: string; const prefixList: string; const refType: string): Boolean;
    function  SetPrivateKey(privKey: TChilkatBase): Boolean;
    function  CreateXmlDSig(const inXml: string): string;
    function  SetX509Cert(cert: TChilkatBase; usePrivateKey: Boolean): Boolean;
    function  SetHmacKey(const key: string; const encoding: string): Boolean;
    function  AddExternalFileRef(const uri: string; const localFilePath: string; const digestMethod: string; const refType: string): Boolean;
    function  AddExternalBinaryRef(const uri: string; content: TChilkatBase; const digestMethod: string; const refType: string): Boolean;
    function  AddExternalTextRef(const uri: string; content: TChilkatBase; const charset: string; includeBom: Boolean; const digestMethod: string; const refType: string): Boolean;
    function  AddExternalXmlRef(const uri: string; content: TChilkatBase; const digestMethod: string; const canonMethod: string; const refType: string): Boolean;
    function  CreateXmlDSigSb(sbXml: TChilkatBase): Boolean;
    function  ConstructSignedInfo(sbXml: TChilkatBase): string;
    function  SetRefIdAttr(const uri_or_id: string; const value: string): Boolean;
    function  AddObject(const id: string; const content: string; const mimeType: string; const encoding: string): Boolean;
    function  AddObjectRef(const id: string; const digestMethod: string; const canonMethod: string; const prefixList: string; const refType: string): Boolean;
    function  AddSignatureNamespace(const nsPrefix: string; const nsUri: string): Boolean;
    procedure SetHttpObj(http: TChilkatBase);
    function  AddSameDocRef2(const id: string; const digestMethod: string; transforms: TChilkatBase; const refType: string): Boolean;
    function  AddObjectRef2(const id: string; const digestMethod: string; transforms: TChilkatBase; const refType: string): Boolean;
    function  SetTsa(json: TChilkatBase): Boolean;
  end;

implementation

uses
  CkDllLoader,
  Chilkat.Utils;

{ ---- C bridge function pointer types ---- }
type
  TCkXmlDSigGen_Create  = function(): Pointer; cdecl;
  TCkXmlDSigGen_Dispose = procedure(handle: Pointer); cdecl;
  TCkBridgeAbortCheckCb   = function(userData: Pointer): Integer; cdecl;
  TCkBridgePercentDoneCb  = function(pctDone: Integer; userData: Pointer): Integer; cdecl;
  TCkBridgeProgressInfoCb = procedure(name: PAnsiChar; value: PAnsiChar; userData: Pointer); cdecl;
  TCkXmlDSigGen_SetAbortCheckCallback   = procedure(handle: Pointer; cb: TCkBridgeAbortCheckCb; userData: Pointer); cdecl;
  TCkXmlDSigGen_SetPercentDoneCallback  = procedure(handle: Pointer; cb: TCkBridgePercentDoneCb; userData: Pointer); cdecl;
  TCkXmlDSigGen_SetProgressInfoCallback = procedure(handle: Pointer; cb: TCkBridgeProgressInfoCb; userData: Pointer); cdecl;
  TCkXmlDSigGen_get_LastErrorHtml = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_get_LastErrorText = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_get_LastErrorXml = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_get_Version = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_get_DebugLogFilePath = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_DebugLogFilePath = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_VerboseLogging = function(handle: Pointer): LongBool; cdecl;
  TCkXmlDSigGen_put_VerboseLogging = procedure(handle: Pointer; value: LongBool); cdecl;
  TCkXmlDSigGen_get_LastMethodSuccess = function(handle: Pointer): LongBool; cdecl;
  TCkXmlDSigGen_put_LastMethodSuccess = procedure(handle: Pointer; value: LongBool); cdecl;
  TCkXmlDSigGen_get_SigLocation = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_SigLocation = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SigNamespaceUri = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_SigNamespaceUri = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SigNamespacePrefix = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_SigNamespacePrefix = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SigningAlg = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_SigningAlg = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SignedInfoCanonAlg = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_SignedInfoCanonAlg = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SignedInfoPrefixList = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_SignedInfoPrefixList = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SignedInfoDigestMethod = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_SignedInfoDigestMethod = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_KeyInfoType = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_KeyInfoType = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_X509Type = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_X509Type = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_CustomKeyInfoXml = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_CustomKeyInfoXml = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SigId = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_SigId = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_KeyInfoKeyName = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_KeyInfoKeyName = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_IncNamespacePrefix = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_IncNamespacePrefix = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_IncNamespaceUri = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_IncNamespaceUri = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_Behaviors = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_Behaviors = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_KeyInfoId = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_KeyInfoId = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SignedInfoId = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_SignedInfoId = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SigValueId = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_SigValueId = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SigLocationMod = function(handle: Pointer): Integer; cdecl;
  TCkXmlDSigGen_put_SigLocationMod = procedure(handle: Pointer; value: Integer); cdecl;
  TCkXmlDSigGen_get_UncommonOptions = function(handle: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_put_UncommonOptions = procedure(handle: Pointer; value: PAnsiChar); cdecl;
  TCkXmlDSigGen_get_SigLocationIdx = function(handle: Pointer): Integer; cdecl;
  TCkXmlDSigGen_put_SigLocationIdx = procedure(handle: Pointer; value: Integer); cdecl;
  TCkXmlDSigGen_AddEnvelopedRef = function(handle: Pointer; id: PAnsiChar; content: Pointer; digestMethod: PAnsiChar; canonMethod: PAnsiChar; refType: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_AddSameDocRef = function(handle: Pointer; id: PAnsiChar; digestMethod: PAnsiChar; canonMethod: PAnsiChar; prefixList: PAnsiChar; refType: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_SetPrivateKey = function(handle: Pointer; privKey: Pointer): LongBool; cdecl;
  TCkXmlDSigGen_CreateXmlDSig = function(handle: Pointer; inXml: PAnsiChar): PAnsiChar; cdecl;
  TCkXmlDSigGen_SetX509Cert = function(handle: Pointer; cert: Pointer; usePrivateKey: LongBool): LongBool; cdecl;
  TCkXmlDSigGen_SetHmacKey = function(handle: Pointer; key: PAnsiChar; encoding: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_AddExternalFileRef = function(handle: Pointer; uri: PAnsiChar; localFilePath: PAnsiChar; digestMethod: PAnsiChar; refType: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_AddExternalBinaryRef = function(handle: Pointer; uri: PAnsiChar; content: Pointer; digestMethod: PAnsiChar; refType: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_AddExternalTextRef = function(handle: Pointer; uri: PAnsiChar; content: Pointer; charset: PAnsiChar; includeBom: LongBool; digestMethod: PAnsiChar; refType: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_AddExternalXmlRef = function(handle: Pointer; uri: PAnsiChar; content: Pointer; digestMethod: PAnsiChar; canonMethod: PAnsiChar; refType: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_CreateXmlDSigSb = function(handle: Pointer; sbXml: Pointer): LongBool; cdecl;
  TCkXmlDSigGen_ConstructSignedInfo = function(handle: Pointer; sbXml: Pointer): PAnsiChar; cdecl;
  TCkXmlDSigGen_SetRefIdAttr = function(handle: Pointer; uri_or_id: PAnsiChar; value: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_AddObject = function(handle: Pointer; id: PAnsiChar; content: PAnsiChar; mimeType: PAnsiChar; encoding: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_AddObjectRef = function(handle: Pointer; id: PAnsiChar; digestMethod: PAnsiChar; canonMethod: PAnsiChar; prefixList: PAnsiChar; refType: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_AddSignatureNamespace = function(handle: Pointer; nsPrefix: PAnsiChar; nsUri: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_SetHttpObj = procedure(handle: Pointer; http: Pointer); cdecl;
  TCkXmlDSigGen_AddSameDocRef2 = function(handle: Pointer; id: PAnsiChar; digestMethod: PAnsiChar; transforms: Pointer; refType: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_AddObjectRef2 = function(handle: Pointer; id: PAnsiChar; digestMethod: PAnsiChar; transforms: Pointer; refType: PAnsiChar): LongBool; cdecl;
  TCkXmlDSigGen_SetTsa = function(handle: Pointer; json: Pointer): LongBool; cdecl;

{ ---- C bridge function pointer variables ---- }
var
  CkXmlDSigGen_Create:  TCkXmlDSigGen_Create  = nil;
  CkXmlDSigGen_Dispose: TCkXmlDSigGen_Dispose = nil;
  CkXmlDSigGen_SetAbortCheckCallback:   TCkXmlDSigGen_SetAbortCheckCallback   = nil;
  CkXmlDSigGen_SetPercentDoneCallback:  TCkXmlDSigGen_SetPercentDoneCallback  = nil;
  CkXmlDSigGen_SetProgressInfoCallback: TCkXmlDSigGen_SetProgressInfoCallback = nil;
  CkXmlDSigGen_get_LastErrorHtml: TCkXmlDSigGen_get_LastErrorHtml = nil;
  CkXmlDSigGen_get_LastErrorText: TCkXmlDSigGen_get_LastErrorText = nil;
  CkXmlDSigGen_get_LastErrorXml: TCkXmlDSigGen_get_LastErrorXml = nil;
  CkXmlDSigGen_get_Version: TCkXmlDSigGen_get_Version = nil;
  CkXmlDSigGen_get_DebugLogFilePath: TCkXmlDSigGen_get_DebugLogFilePath = nil;
  CkXmlDSigGen_put_DebugLogFilePath: TCkXmlDSigGen_put_DebugLogFilePath = nil;
  CkXmlDSigGen_get_VerboseLogging: TCkXmlDSigGen_get_VerboseLogging = nil;
  CkXmlDSigGen_put_VerboseLogging: TCkXmlDSigGen_put_VerboseLogging = nil;
  CkXmlDSigGen_get_LastMethodSuccess: TCkXmlDSigGen_get_LastMethodSuccess = nil;
  CkXmlDSigGen_put_LastMethodSuccess: TCkXmlDSigGen_put_LastMethodSuccess = nil;
  CkXmlDSigGen_get_SigLocation: TCkXmlDSigGen_get_SigLocation = nil;
  CkXmlDSigGen_put_SigLocation: TCkXmlDSigGen_put_SigLocation = nil;
  CkXmlDSigGen_get_SigNamespaceUri: TCkXmlDSigGen_get_SigNamespaceUri = nil;
  CkXmlDSigGen_put_SigNamespaceUri: TCkXmlDSigGen_put_SigNamespaceUri = nil;
  CkXmlDSigGen_get_SigNamespacePrefix: TCkXmlDSigGen_get_SigNamespacePrefix = nil;
  CkXmlDSigGen_put_SigNamespacePrefix: TCkXmlDSigGen_put_SigNamespacePrefix = nil;
  CkXmlDSigGen_get_SigningAlg: TCkXmlDSigGen_get_SigningAlg = nil;
  CkXmlDSigGen_put_SigningAlg: TCkXmlDSigGen_put_SigningAlg = nil;
  CkXmlDSigGen_get_SignedInfoCanonAlg: TCkXmlDSigGen_get_SignedInfoCanonAlg = nil;
  CkXmlDSigGen_put_SignedInfoCanonAlg: TCkXmlDSigGen_put_SignedInfoCanonAlg = nil;
  CkXmlDSigGen_get_SignedInfoPrefixList: TCkXmlDSigGen_get_SignedInfoPrefixList = nil;
  CkXmlDSigGen_put_SignedInfoPrefixList: TCkXmlDSigGen_put_SignedInfoPrefixList = nil;
  CkXmlDSigGen_get_SignedInfoDigestMethod: TCkXmlDSigGen_get_SignedInfoDigestMethod = nil;
  CkXmlDSigGen_put_SignedInfoDigestMethod: TCkXmlDSigGen_put_SignedInfoDigestMethod = nil;
  CkXmlDSigGen_get_KeyInfoType: TCkXmlDSigGen_get_KeyInfoType = nil;
  CkXmlDSigGen_put_KeyInfoType: TCkXmlDSigGen_put_KeyInfoType = nil;
  CkXmlDSigGen_get_X509Type: TCkXmlDSigGen_get_X509Type = nil;
  CkXmlDSigGen_put_X509Type: TCkXmlDSigGen_put_X509Type = nil;
  CkXmlDSigGen_get_CustomKeyInfoXml: TCkXmlDSigGen_get_CustomKeyInfoXml = nil;
  CkXmlDSigGen_put_CustomKeyInfoXml: TCkXmlDSigGen_put_CustomKeyInfoXml = nil;
  CkXmlDSigGen_get_SigId: TCkXmlDSigGen_get_SigId = nil;
  CkXmlDSigGen_put_SigId: TCkXmlDSigGen_put_SigId = nil;
  CkXmlDSigGen_get_KeyInfoKeyName: TCkXmlDSigGen_get_KeyInfoKeyName = nil;
  CkXmlDSigGen_put_KeyInfoKeyName: TCkXmlDSigGen_put_KeyInfoKeyName = nil;
  CkXmlDSigGen_get_IncNamespacePrefix: TCkXmlDSigGen_get_IncNamespacePrefix = nil;
  CkXmlDSigGen_put_IncNamespacePrefix: TCkXmlDSigGen_put_IncNamespacePrefix = nil;
  CkXmlDSigGen_get_IncNamespaceUri: TCkXmlDSigGen_get_IncNamespaceUri = nil;
  CkXmlDSigGen_put_IncNamespaceUri: TCkXmlDSigGen_put_IncNamespaceUri = nil;
  CkXmlDSigGen_get_Behaviors: TCkXmlDSigGen_get_Behaviors = nil;
  CkXmlDSigGen_put_Behaviors: TCkXmlDSigGen_put_Behaviors = nil;
  CkXmlDSigGen_get_KeyInfoId: TCkXmlDSigGen_get_KeyInfoId = nil;
  CkXmlDSigGen_put_KeyInfoId: TCkXmlDSigGen_put_KeyInfoId = nil;
  CkXmlDSigGen_get_SignedInfoId: TCkXmlDSigGen_get_SignedInfoId = nil;
  CkXmlDSigGen_put_SignedInfoId: TCkXmlDSigGen_put_SignedInfoId = nil;
  CkXmlDSigGen_get_SigValueId: TCkXmlDSigGen_get_SigValueId = nil;
  CkXmlDSigGen_put_SigValueId: TCkXmlDSigGen_put_SigValueId = nil;
  CkXmlDSigGen_get_SigLocationMod: TCkXmlDSigGen_get_SigLocationMod = nil;
  CkXmlDSigGen_put_SigLocationMod: TCkXmlDSigGen_put_SigLocationMod = nil;
  CkXmlDSigGen_get_UncommonOptions: TCkXmlDSigGen_get_UncommonOptions = nil;
  CkXmlDSigGen_put_UncommonOptions: TCkXmlDSigGen_put_UncommonOptions = nil;
  CkXmlDSigGen_get_SigLocationIdx: TCkXmlDSigGen_get_SigLocationIdx = nil;
  CkXmlDSigGen_put_SigLocationIdx: TCkXmlDSigGen_put_SigLocationIdx = nil;
  CkXmlDSigGen_AddEnvelopedRef: TCkXmlDSigGen_AddEnvelopedRef = nil;
  CkXmlDSigGen_AddSameDocRef: TCkXmlDSigGen_AddSameDocRef = nil;
  CkXmlDSigGen_SetPrivateKey: TCkXmlDSigGen_SetPrivateKey = nil;
  CkXmlDSigGen_CreateXmlDSig: TCkXmlDSigGen_CreateXmlDSig = nil;
  CkXmlDSigGen_SetX509Cert: TCkXmlDSigGen_SetX509Cert = nil;
  CkXmlDSigGen_SetHmacKey: TCkXmlDSigGen_SetHmacKey = nil;
  CkXmlDSigGen_AddExternalFileRef: TCkXmlDSigGen_AddExternalFileRef = nil;
  CkXmlDSigGen_AddExternalBinaryRef: TCkXmlDSigGen_AddExternalBinaryRef = nil;
  CkXmlDSigGen_AddExternalTextRef: TCkXmlDSigGen_AddExternalTextRef = nil;
  CkXmlDSigGen_AddExternalXmlRef: TCkXmlDSigGen_AddExternalXmlRef = nil;
  CkXmlDSigGen_CreateXmlDSigSb: TCkXmlDSigGen_CreateXmlDSigSb = nil;
  CkXmlDSigGen_ConstructSignedInfo: TCkXmlDSigGen_ConstructSignedInfo = nil;
  CkXmlDSigGen_SetRefIdAttr: TCkXmlDSigGen_SetRefIdAttr = nil;
  CkXmlDSigGen_AddObject: TCkXmlDSigGen_AddObject = nil;
  CkXmlDSigGen_AddObjectRef: TCkXmlDSigGen_AddObjectRef = nil;
  CkXmlDSigGen_AddSignatureNamespace: TCkXmlDSigGen_AddSignatureNamespace = nil;
  CkXmlDSigGen_SetHttpObj: TCkXmlDSigGen_SetHttpObj = nil;
  CkXmlDSigGen_AddSameDocRef2: TCkXmlDSigGen_AddSameDocRef2 = nil;
  CkXmlDSigGen_AddObjectRef2: TCkXmlDSigGen_AddObjectRef2 = nil;
  CkXmlDSigGen_SetTsa: TCkXmlDSigGen_SetTsa = nil;

constructor TXmlDSigGen.Create;
begin
  inherited Create;
  FHandle := CkXmlDSigGen_Create();
end;

destructor TXmlDSigGen.Destroy;
begin
  if FHandle <> nil then
    CkXmlDSigGen_Dispose(FHandle);
  FHandle := nil;
  inherited;
end;

{ ---- Event callback thunks ---- }
{ Standalone cdecl functions registered with the C bridge.  The bridge
  passes back the userData pointer, which carries the Pascal object
  instance.  A non-zero return value aborts the running method. }

function TXmlDSigGen_AbortCheckThunk(userData: Pointer): Integer; cdecl;
var
  obj: TXmlDSigGen;
begin
  Result := 0;
  obj := TXmlDSigGen(userData);
  if Assigned(obj) and Assigned(obj.FOnAbortCheck) then
    if obj.FOnAbortCheck(obj) then Result := 1;
end;

function TXmlDSigGen_PercentDoneThunk(pctDone: Integer; userData: Pointer): Integer; cdecl;
var
  obj: TXmlDSigGen;
begin
  Result := 0;
  obj := TXmlDSigGen(userData);
  if Assigned(obj) and Assigned(obj.FOnPercentDone) then
    if obj.FOnPercentDone(obj, pctDone) then Result := 1;
end;

procedure TXmlDSigGen_ProgressInfoThunk(name: PAnsiChar; value: PAnsiChar; userData: Pointer); cdecl;
var
  obj: TXmlDSigGen;
begin
  obj := TXmlDSigGen(userData);
  if Assigned(obj) and Assigned(obj.FOnProgressInfo) then
    obj.FOnProgressInfo(obj, CkToStr(name), CkToStr(value));
end;

procedure TXmlDSigGen.SetOnAbortCheck(AValue: TChilkatAbortCheckEvent);
begin
  FOnAbortCheck := AValue;
  if Assigned(AValue) then
    CkXmlDSigGen_SetAbortCheckCallback(FHandle, @TXmlDSigGen_AbortCheckThunk, Self)
  else
    CkXmlDSigGen_SetAbortCheckCallback(FHandle, nil, nil);
end;

procedure TXmlDSigGen.SetOnPercentDone(AValue: TChilkatPercentDoneEvent);
begin
  FOnPercentDone := AValue;
  if Assigned(AValue) then
    CkXmlDSigGen_SetPercentDoneCallback(FHandle, @TXmlDSigGen_PercentDoneThunk, Self)
  else
    CkXmlDSigGen_SetPercentDoneCallback(FHandle, nil, nil);
end;

procedure TXmlDSigGen.SetOnProgressInfo(AValue: TChilkatProgressInfoEvent);
begin
  FOnProgressInfo := AValue;
  if Assigned(AValue) then
    CkXmlDSigGen_SetProgressInfoCallback(FHandle, @TXmlDSigGen_ProgressInfoThunk, Self)
  else
    CkXmlDSigGen_SetProgressInfoCallback(FHandle, nil, nil);
end;

function TXmlDSigGen.GetLastErrorHtml: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_LastErrorHtml(FHandle));
end;

function TXmlDSigGen.GetLastErrorText: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_LastErrorText(FHandle));
end;

function TXmlDSigGen.GetLastErrorXml: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_LastErrorXml(FHandle));
end;

function TXmlDSigGen.GetVersion: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_Version(FHandle));
end;

function TXmlDSigGen.GetDebugLogFilePath: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_DebugLogFilePath(FHandle));
end;

procedure TXmlDSigGen.SetDebugLogFilePath(AValue: string);
begin
  CkXmlDSigGen_put_DebugLogFilePath(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetVerboseLogging: Boolean;
begin
  Result := Boolean(CkXmlDSigGen_get_VerboseLogging(FHandle));
end;

procedure TXmlDSigGen.SetVerboseLogging(AValue: Boolean);
begin
  CkXmlDSigGen_put_VerboseLogging(FHandle, LongBool(AValue));
end;

function TXmlDSigGen.GetLastMethodSuccess: Boolean;
begin
  Result := Boolean(CkXmlDSigGen_get_LastMethodSuccess(FHandle));
end;

procedure TXmlDSigGen.SetLastMethodSuccess(AValue: Boolean);
begin
  CkXmlDSigGen_put_LastMethodSuccess(FHandle, LongBool(AValue));
end;

function TXmlDSigGen.GetSigLocation: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_SigLocation(FHandle));
end;

procedure TXmlDSigGen.SetSigLocation(AValue: string);
begin
  CkXmlDSigGen_put_SigLocation(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSigNamespaceUri: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_SigNamespaceUri(FHandle));
end;

procedure TXmlDSigGen.SetSigNamespaceUri(AValue: string);
begin
  CkXmlDSigGen_put_SigNamespaceUri(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSigNamespacePrefix: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_SigNamespacePrefix(FHandle));
end;

procedure TXmlDSigGen.SetSigNamespacePrefix(AValue: string);
begin
  CkXmlDSigGen_put_SigNamespacePrefix(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSigningAlg: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_SigningAlg(FHandle));
end;

procedure TXmlDSigGen.SetSigningAlg(AValue: string);
begin
  CkXmlDSigGen_put_SigningAlg(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSignedInfoCanonAlg: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_SignedInfoCanonAlg(FHandle));
end;

procedure TXmlDSigGen.SetSignedInfoCanonAlg(AValue: string);
begin
  CkXmlDSigGen_put_SignedInfoCanonAlg(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSignedInfoPrefixList: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_SignedInfoPrefixList(FHandle));
end;

procedure TXmlDSigGen.SetSignedInfoPrefixList(AValue: string);
begin
  CkXmlDSigGen_put_SignedInfoPrefixList(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSignedInfoDigestMethod: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_SignedInfoDigestMethod(FHandle));
end;

procedure TXmlDSigGen.SetSignedInfoDigestMethod(AValue: string);
begin
  CkXmlDSigGen_put_SignedInfoDigestMethod(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetKeyInfoType: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_KeyInfoType(FHandle));
end;

procedure TXmlDSigGen.SetKeyInfoType(AValue: string);
begin
  CkXmlDSigGen_put_KeyInfoType(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetX509Type: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_X509Type(FHandle));
end;

procedure TXmlDSigGen.SetX509Type(AValue: string);
begin
  CkXmlDSigGen_put_X509Type(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetCustomKeyInfoXml: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_CustomKeyInfoXml(FHandle));
end;

procedure TXmlDSigGen.SetCustomKeyInfoXml(AValue: string);
begin
  CkXmlDSigGen_put_CustomKeyInfoXml(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSigId: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_SigId(FHandle));
end;

procedure TXmlDSigGen.SetSigId(AValue: string);
begin
  CkXmlDSigGen_put_SigId(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetKeyInfoKeyName: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_KeyInfoKeyName(FHandle));
end;

procedure TXmlDSigGen.SetKeyInfoKeyName(AValue: string);
begin
  CkXmlDSigGen_put_KeyInfoKeyName(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetIncNamespacePrefix: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_IncNamespacePrefix(FHandle));
end;

procedure TXmlDSigGen.SetIncNamespacePrefix(AValue: string);
begin
  CkXmlDSigGen_put_IncNamespacePrefix(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetIncNamespaceUri: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_IncNamespaceUri(FHandle));
end;

procedure TXmlDSigGen.SetIncNamespaceUri(AValue: string);
begin
  CkXmlDSigGen_put_IncNamespaceUri(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetBehaviors: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_Behaviors(FHandle));
end;

procedure TXmlDSigGen.SetBehaviors(AValue: string);
begin
  CkXmlDSigGen_put_Behaviors(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetKeyInfoId: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_KeyInfoId(FHandle));
end;

procedure TXmlDSigGen.SetKeyInfoId(AValue: string);
begin
  CkXmlDSigGen_put_KeyInfoId(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSignedInfoId: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_SignedInfoId(FHandle));
end;

procedure TXmlDSigGen.SetSignedInfoId(AValue: string);
begin
  CkXmlDSigGen_put_SignedInfoId(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSigValueId: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_SigValueId(FHandle));
end;

procedure TXmlDSigGen.SetSigValueId(AValue: string);
begin
  CkXmlDSigGen_put_SigValueId(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSigLocationMod: Integer;
begin
  Result := CkXmlDSigGen_get_SigLocationMod(FHandle);
end;

procedure TXmlDSigGen.SetSigLocationMod(AValue: Integer);
begin
  CkXmlDSigGen_put_SigLocationMod(FHandle, AValue);
end;

function TXmlDSigGen.GetUncommonOptions: string;
begin
  Result := CkToStr(CkXmlDSigGen_get_UncommonOptions(FHandle));
end;

procedure TXmlDSigGen.SetUncommonOptions(AValue: string);
begin
  CkXmlDSigGen_put_UncommonOptions(FHandle, PAnsiChar(StrToCk(AValue)));
end;

function TXmlDSigGen.GetSigLocationIdx: Integer;
begin
  Result := CkXmlDSigGen_get_SigLocationIdx(FHandle);
end;

procedure TXmlDSigGen.SetSigLocationIdx(AValue: Integer);
begin
  CkXmlDSigGen_put_SigLocationIdx(FHandle, AValue);
end;

function TXmlDSigGen.AddEnvelopedRef(const id: string; content: TChilkatBase; const digestMethod: string; const canonMethod: string; const refType: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddEnvelopedRef(FHandle, PAnsiChar(StrToCk(id)), content.Handle, PAnsiChar(StrToCk(digestMethod)), PAnsiChar(StrToCk(canonMethod)), PAnsiChar(StrToCk(refType))));
end;

function TXmlDSigGen.AddSameDocRef(const id: string; const digestMethod: string; const canonMethod: string; const prefixList: string; const refType: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddSameDocRef(FHandle, PAnsiChar(StrToCk(id)), PAnsiChar(StrToCk(digestMethod)), PAnsiChar(StrToCk(canonMethod)), PAnsiChar(StrToCk(prefixList)), PAnsiChar(StrToCk(refType))));
end;

function TXmlDSigGen.SetPrivateKey(privKey: TChilkatBase): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_SetPrivateKey(FHandle, privKey.Handle));
end;

function TXmlDSigGen.CreateXmlDSig(const inXml: string): string;
begin
  Result := CkToStr(CkXmlDSigGen_CreateXmlDSig(FHandle, PAnsiChar(StrToCk(inXml))));
end;

function TXmlDSigGen.SetX509Cert(cert: TChilkatBase; usePrivateKey: Boolean): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_SetX509Cert(FHandle, cert.Handle, LongBool(usePrivateKey)));
end;

function TXmlDSigGen.SetHmacKey(const key: string; const encoding: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_SetHmacKey(FHandle, PAnsiChar(StrToCk(key)), PAnsiChar(StrToCk(encoding))));
end;

function TXmlDSigGen.AddExternalFileRef(const uri: string; const localFilePath: string; const digestMethod: string; const refType: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddExternalFileRef(FHandle, PAnsiChar(StrToCk(uri)), PAnsiChar(StrToCk(localFilePath)), PAnsiChar(StrToCk(digestMethod)), PAnsiChar(StrToCk(refType))));
end;

function TXmlDSigGen.AddExternalBinaryRef(const uri: string; content: TChilkatBase; const digestMethod: string; const refType: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddExternalBinaryRef(FHandle, PAnsiChar(StrToCk(uri)), content.Handle, PAnsiChar(StrToCk(digestMethod)), PAnsiChar(StrToCk(refType))));
end;

function TXmlDSigGen.AddExternalTextRef(const uri: string; content: TChilkatBase; const charset: string; includeBom: Boolean; const digestMethod: string; const refType: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddExternalTextRef(FHandle, PAnsiChar(StrToCk(uri)), content.Handle, PAnsiChar(StrToCk(charset)), LongBool(includeBom), PAnsiChar(StrToCk(digestMethod)), PAnsiChar(StrToCk(refType))));
end;

function TXmlDSigGen.AddExternalXmlRef(const uri: string; content: TChilkatBase; const digestMethod: string; const canonMethod: string; const refType: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddExternalXmlRef(FHandle, PAnsiChar(StrToCk(uri)), content.Handle, PAnsiChar(StrToCk(digestMethod)), PAnsiChar(StrToCk(canonMethod)), PAnsiChar(StrToCk(refType))));
end;

function TXmlDSigGen.CreateXmlDSigSb(sbXml: TChilkatBase): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_CreateXmlDSigSb(FHandle, sbXml.Handle));
end;

function TXmlDSigGen.ConstructSignedInfo(sbXml: TChilkatBase): string;
begin
  Result := CkToStr(CkXmlDSigGen_ConstructSignedInfo(FHandle, sbXml.Handle));
end;

function TXmlDSigGen.SetRefIdAttr(const uri_or_id: string; const value: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_SetRefIdAttr(FHandle, PAnsiChar(StrToCk(uri_or_id)), PAnsiChar(StrToCk(value))));
end;

function TXmlDSigGen.AddObject(const id: string; const content: string; const mimeType: string; const encoding: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddObject(FHandle, PAnsiChar(StrToCk(id)), PAnsiChar(StrToCk(content)), PAnsiChar(StrToCk(mimeType)), PAnsiChar(StrToCk(encoding))));
end;

function TXmlDSigGen.AddObjectRef(const id: string; const digestMethod: string; const canonMethod: string; const prefixList: string; const refType: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddObjectRef(FHandle, PAnsiChar(StrToCk(id)), PAnsiChar(StrToCk(digestMethod)), PAnsiChar(StrToCk(canonMethod)), PAnsiChar(StrToCk(prefixList)), PAnsiChar(StrToCk(refType))));
end;

function TXmlDSigGen.AddSignatureNamespace(const nsPrefix: string; const nsUri: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddSignatureNamespace(FHandle, PAnsiChar(StrToCk(nsPrefix)), PAnsiChar(StrToCk(nsUri))));
end;

procedure TXmlDSigGen.SetHttpObj(http: TChilkatBase);
begin
  CkXmlDSigGen_SetHttpObj(FHandle, http.Handle);
end;

function TXmlDSigGen.AddSameDocRef2(const id: string; const digestMethod: string; transforms: TChilkatBase; const refType: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddSameDocRef2(FHandle, PAnsiChar(StrToCk(id)), PAnsiChar(StrToCk(digestMethod)), transforms.Handle, PAnsiChar(StrToCk(refType))));
end;

function TXmlDSigGen.AddObjectRef2(const id: string; const digestMethod: string; transforms: TChilkatBase; const refType: string): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_AddObjectRef2(FHandle, PAnsiChar(StrToCk(id)), PAnsiChar(StrToCk(digestMethod)), transforms.Handle, PAnsiChar(StrToCk(refType))));
end;

function TXmlDSigGen.SetTsa(json: TChilkatBase): Boolean;
begin
  Result := Boolean(CkXmlDSigGen_SetTsa(FHandle, json.Handle));
end;

initialization
  Chilkat_GetProcedureAddress(CkXmlDSigGen_Create,  'CkXmlDSigGen_Create');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_Dispose, 'CkXmlDSigGen_Dispose');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_SetAbortCheckCallback, 'CkXmlDSigGen_SetAbortCheckCallback');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_SetPercentDoneCallback, 'CkXmlDSigGen_SetPercentDoneCallback');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_SetProgressInfoCallback, 'CkXmlDSigGen_SetProgressInfoCallback');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_LastErrorHtml, 'CkXmlDSigGen_get_LastErrorHtml');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_LastErrorText, 'CkXmlDSigGen_get_LastErrorText');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_LastErrorXml, 'CkXmlDSigGen_get_LastErrorXml');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_Version, 'CkXmlDSigGen_get_Version');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_DebugLogFilePath, 'CkXmlDSigGen_get_DebugLogFilePath');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_DebugLogFilePath, 'CkXmlDSigGen_put_DebugLogFilePath');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_VerboseLogging, 'CkXmlDSigGen_get_VerboseLogging');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_VerboseLogging, 'CkXmlDSigGen_put_VerboseLogging');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_LastMethodSuccess, 'CkXmlDSigGen_get_LastMethodSuccess');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_LastMethodSuccess, 'CkXmlDSigGen_put_LastMethodSuccess');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SigLocation, 'CkXmlDSigGen_get_SigLocation');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SigLocation, 'CkXmlDSigGen_put_SigLocation');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SigNamespaceUri, 'CkXmlDSigGen_get_SigNamespaceUri');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SigNamespaceUri, 'CkXmlDSigGen_put_SigNamespaceUri');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SigNamespacePrefix, 'CkXmlDSigGen_get_SigNamespacePrefix');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SigNamespacePrefix, 'CkXmlDSigGen_put_SigNamespacePrefix');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SigningAlg, 'CkXmlDSigGen_get_SigningAlg');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SigningAlg, 'CkXmlDSigGen_put_SigningAlg');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SignedInfoCanonAlg, 'CkXmlDSigGen_get_SignedInfoCanonAlg');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SignedInfoCanonAlg, 'CkXmlDSigGen_put_SignedInfoCanonAlg');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SignedInfoPrefixList, 'CkXmlDSigGen_get_SignedInfoPrefixList');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SignedInfoPrefixList, 'CkXmlDSigGen_put_SignedInfoPrefixList');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SignedInfoDigestMethod, 'CkXmlDSigGen_get_SignedInfoDigestMethod');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SignedInfoDigestMethod, 'CkXmlDSigGen_put_SignedInfoDigestMethod');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_KeyInfoType, 'CkXmlDSigGen_get_KeyInfoType');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_KeyInfoType, 'CkXmlDSigGen_put_KeyInfoType');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_X509Type, 'CkXmlDSigGen_get_X509Type');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_X509Type, 'CkXmlDSigGen_put_X509Type');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_CustomKeyInfoXml, 'CkXmlDSigGen_get_CustomKeyInfoXml');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_CustomKeyInfoXml, 'CkXmlDSigGen_put_CustomKeyInfoXml');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SigId, 'CkXmlDSigGen_get_SigId');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SigId, 'CkXmlDSigGen_put_SigId');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_KeyInfoKeyName, 'CkXmlDSigGen_get_KeyInfoKeyName');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_KeyInfoKeyName, 'CkXmlDSigGen_put_KeyInfoKeyName');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_IncNamespacePrefix, 'CkXmlDSigGen_get_IncNamespacePrefix');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_IncNamespacePrefix, 'CkXmlDSigGen_put_IncNamespacePrefix');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_IncNamespaceUri, 'CkXmlDSigGen_get_IncNamespaceUri');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_IncNamespaceUri, 'CkXmlDSigGen_put_IncNamespaceUri');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_Behaviors, 'CkXmlDSigGen_get_Behaviors');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_Behaviors, 'CkXmlDSigGen_put_Behaviors');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_KeyInfoId, 'CkXmlDSigGen_get_KeyInfoId');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_KeyInfoId, 'CkXmlDSigGen_put_KeyInfoId');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SignedInfoId, 'CkXmlDSigGen_get_SignedInfoId');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SignedInfoId, 'CkXmlDSigGen_put_SignedInfoId');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SigValueId, 'CkXmlDSigGen_get_SigValueId');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SigValueId, 'CkXmlDSigGen_put_SigValueId');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SigLocationMod, 'CkXmlDSigGen_get_SigLocationMod');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SigLocationMod, 'CkXmlDSigGen_put_SigLocationMod');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_UncommonOptions, 'CkXmlDSigGen_get_UncommonOptions');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_UncommonOptions, 'CkXmlDSigGen_put_UncommonOptions');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_get_SigLocationIdx, 'CkXmlDSigGen_get_SigLocationIdx');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_put_SigLocationIdx, 'CkXmlDSigGen_put_SigLocationIdx');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddEnvelopedRef, 'CkXmlDSigGen_AddEnvelopedRef');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddSameDocRef, 'CkXmlDSigGen_AddSameDocRef');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_SetPrivateKey, 'CkXmlDSigGen_SetPrivateKey');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_CreateXmlDSig, 'CkXmlDSigGen_CreateXmlDSig');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_SetX509Cert, 'CkXmlDSigGen_SetX509Cert');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_SetHmacKey, 'CkXmlDSigGen_SetHmacKey');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddExternalFileRef, 'CkXmlDSigGen_AddExternalFileRef');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddExternalBinaryRef, 'CkXmlDSigGen_AddExternalBinaryRef');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddExternalTextRef, 'CkXmlDSigGen_AddExternalTextRef');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddExternalXmlRef, 'CkXmlDSigGen_AddExternalXmlRef');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_CreateXmlDSigSb, 'CkXmlDSigGen_CreateXmlDSigSb');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_ConstructSignedInfo, 'CkXmlDSigGen_ConstructSignedInfo');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_SetRefIdAttr, 'CkXmlDSigGen_SetRefIdAttr');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddObject, 'CkXmlDSigGen_AddObject');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddObjectRef, 'CkXmlDSigGen_AddObjectRef');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddSignatureNamespace, 'CkXmlDSigGen_AddSignatureNamespace');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_SetHttpObj, 'CkXmlDSigGen_SetHttpObj');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddSameDocRef2, 'CkXmlDSigGen_AddSameDocRef2');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_AddObjectRef2, 'CkXmlDSigGen_AddObjectRef2');
  Chilkat_GetProcedureAddress(CkXmlDSigGen_SetTsa, 'CkXmlDSigGen_SetTsa');

end.
