EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElAuthenticodeVerifier.VerifySignature

TElAuthenticodeVerifier     See also    


 

Verifies signature by its index.

 
 

Declaration

[C#]
    int VerifySignature(int Index);

[VB.NET]
    Function VerifySignature(ByVal Index As Integer) As Integer

[Pascal]
    function VerifySignature(Index: Integer): Integer;

[VB6]
    not implemented;

[ActiveX]
    not implemented;

[DLL]
    not implemented
 
 

Parameters

  • Index - index of the signature to be verified
 
 

Return value

    Error code

 
 

Values:

[Pascal] Value Description
SB_AUTHENTICODE_ERROR_SUCCESS 0 (0x0000)
  • OpenFile: File is opened successfully and further actions can be performed.
  • AddSignature: signature has been added successfully.
  • CloseFile: file was signed and closed succesfully. Next file can be signed.
  • VerifySignature: the verification was successful and the signature is correct. You should verify the certificate used for signing yourself.
  • RemoveAuthenticode: the signature was removed successfully. CloseFile method is called authomatically in this case.
  • SB_AUTHENTICODE_ERROR_UNKNOWN 9217 (0x2401) Any unforeseen error.
    SB_AUTHENTICODE_ERROR_CANNOT_OPEN_FILE 9218 (0x2402)
  • OpenFile: File opening error. (File does not exists or it's impossible to open file in required mode.)
  • SB_AUTHENTICODE_ERROR_FILE_TOO_SMALL 9219 (0x2403)
  • OpenFile: File size is too small, so it is not correct EXE-file
  • SB_AUTHENTICODE_ERROR_CANNOT_READ_FILE 9220 (0x2404)
  • OpenFile: Error during file reading by any reason
  • RemoveAuthenticode: Error during file reading by any reason
  • SB_AUTHENTICODE_ERROR_CANNOT_WRITE_FILE 9221 (0x2405)
  • RemoveAuthenticode: Error during file writing by any reason
  • SB_AUTHENTICODE_ERROR_INVALID_EXECUTABLE 9222 (0x2406)
  • OpenFile: EXE-file is not correct. The execution file signature is corrupted.
  • SB_AUTHENTICODE_ERROR_INVALID_PE_FORMAT 9223 (0x2407)
  • OpenFile: The wrong format of the PE-file.
  • SB_AUTHENTICODE_ERROR_FILE_NOT_SIGNED 9224 (0x2408)
  • TElAuthenticodeVerifier.OpenFile: file is not signed
  • RemoveAuthenticode: file is not signed so nothing can be deleted
  • SB_AUTHENTICODE_ERROR_SIGNATURE_CORRUPTED 9225 (0x2409)
  • OpenFile: File signature is corrupted: either file is signed wrong or fields corresponding to the signature contain trash.
  • VerifySignature: the wrong signature format: it either does not contain information necessary for verification or this information is damaged
  • SB_AUTHENTICODE_ERROR_INVALID_ALGORITHM 9226 (0x240A)
  • AddSignature: certificate specifies unknown key algorithm
  • VerifySignature: signature specifies unknown or signature algorithm
  • SB_AUTHENTICODE_ERROR_INVALID_DIGEST_SIZE 9227 (0x240B)
    SB_AUTHENTICODE_ERROR_INVALID_INDEX 9228 (0x240C)
  • VerifySignature: invalid index was passed
  • SB_AUTHENTICODE_ERROR_NO_SIGNER_CERTIFICATE 9229 (0x240D)
  • VerifySignature: certificate used for signature creation has not been found
  • SB_AUTHENTICODE_ERROR_INVALID_SIGNATURE 9230 (0x240E)
  • VerifySignature: the file was changed after signing
  • SB_AUTHENTICODE_ERROR_INVALID_CERTIFICATE 9231 (0x240F)
  • AddSignature: specified certificate does not contain private key.
  • SB_AUTHENTICODE_ERROR_FILE_ALREADY_SIGNED 9232 (0x2410)
  • TElAutehnticodeSigner.OpenFile: The file is already signed.
  • SB_AUTHENTICODE_ERROR_INVALID_ARGUMENT 9233 (0x2411)
  • AddSignature: signer's certificate is not specified.
  • SB_AUTHENTICODE_ERROR_INVALID_DATA 9234 (0x2412)
  • AddSignature: wrong order of methods calling. AddAuthenticode method has to be called first.
  • CloseFile: no data (AddAuthenticode method has not be called or returned error)
  • SB_AUTHENTICODE_ERROR_NO_SIGNATURES 9235 (0x2413)
  • CloseFile: no signatures (AddSignature method has not been called or returned error)
  • SB_AUTHENTICODE_ERROR_NO_COUNTERSIGNATURES 9236 (0x2414)
    SB_AUTHENTICODE_ERROR_FILE_NOT_OPEN 9237 (0x2415)
  • RemoveAuthenticode: file is not open, OpenFile method was not called
  • SB_AUTHENTICODE_ERROR_SIGNATURE_NOT_LAST 9238 (0x2416)
  • RemoveAuthenticode: the signature is not last block of file so it can not be deleted
  • SB_AUTHENTICODE_ERROR_INVALID_AUTHENTICODE 9239 (0x2417)
  • VerifySignature: wrong authenticode
  • SB_AUTHENTICODE_ERROR_NO_TIMESTAMP 9240 (0x2418)
  • AddSignature: unable to get a timestamp while signing
  • Declared in
    [Pascal]
    Unit: SBAuthenticode

     
     

    Description

        Use this method to verify the signature.
        Note that this method searches for a certificate in the file first, and in the storage specified in CertStorage property then. If the certificate was not found SB_AUTHENTICODE_ERROR_NO_SIGNER_CERTIFICATE error returned.

     
     

    See also:     GetSignatureInfo CertStorage

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