EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElAuthenticodeSigner.AddSignature

TElAuthenticodeSigner     See also    


 

Signs file digest.

 
 

Declaration

[C#]
    int AddSignature(string Description, string URL, TSBAuthenticodeDigestAlgorithm Algorithm, TElX509Certificate Signer, bool AddSigner, bool AddTimestamp /* = false */);

[VB.NET]
    Function AddSignature(ByVal Description As String, ByVal URL As String, ByVal Algorithm As TSBAuthenticodeDigestAlgorithm, ByVal Signer As TElX509Certificate, ByVal AddSigner As Boolean, ByVal AddTimestamp As Boolean = False) As Integer

[Pascal]
    function AddSignature(Description: WideString; URL: string; Algorithm: TSBAuthenticodeDigestAlgorithm; Signer: TElX509Certificate; AddSigner: Boolean; AddTimestamp : boolean = false): Integer;

[VB6]
    not implemented;

[ActiveX]
    not implemented;

[DLL]
    not implemented
 
 

Parameters

  • Description - string that describes signature (optional)
  • URL - optional parameter, allows to add URL.
  • Algorithm - algorithm to calculate digest from digest.
  • Signer - certificate used for file signing. Must contain private key.
  • AddSigner - if True signer's certificate (public key) will be added to the file.
  • AddTimestamp - specifies if current date/time should be added to the signature.
 
 

Digest Algorithms:

[.NET] [Pascal] Description
acMD5 = 0 acMD5 MD5 digest algorithm
acSHA1 = 1 acSHA1 SHA1 digest algorithm
Declared in
[.NET] [Pascal]
Namespace: SBAuthenticode
Assembly: SecureBlackbox.PKI
Unit: SBAuthenticode

 
 

Return value

    Error code

 
 

Description

    This method signs digest calculated by AddAuthenticode method with the certificate passed via Signer parameter.
    One file can be signed many times and all signatures are independent and don't affect each other.

 
 

See also:     AddAuthenticode     AddCertificate     Clear    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation