EldoS
Navigation
Web site
Support
Table Of Contents
View Table Of Contents | Send comments on this topic

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


ElCustomCertStorage.FindByHash

ElCustomCertStorage     See also    


 

Checks whether certificate with a specified hash is present in the storage.

 
 

Declaration

[C#]
    int FindByHashMD5(TMessageDigest128 Digest);
    int FindByHashSHA1(TMessageDigest160 Digest);

[VB.NET]
    Function FindByHashMD5(ByVal Digest As TMessageDigest128) As Integer
    Function FindByHashSHA1(ByVal Digest As TMessageDigest160) As Integer

[Pascal]
    function FindByHash(Digest : TMessageDigest160) : integer;
    function FindByHash(Digest : TMessageDigest128) : integer;

[VB6]
    Function IElCustomCertStorageX4.FindByHashMD5(Hash As Byte()) As Long
    Function IElCustomCertStorageX4.FindByHashSHA1(Hash As Byte()) As Long

[ActiveX]
    HRESULT _stdcall IElCustomCertStorageX4.FindByHashMD5([in] VARIANT Hash, [out, retval] long * Result );
    HRESULT _stdcall IElCustomCertStorageX4.FindByHashSHA1([in] VARIANT Hash, [out, retval] long * Result );

[DLL]
    __stdcall int SBCertStorageFindByHashMD5(HANDLE hStorage, void* pHash);
    __stdcall int SBCertStorageFindByHashSHA1(HANDLE hStorage, void* pHash);
 
 

Parameters

  • [DLL]hStorage - handle to the ElWinCertStorage object that was returned by Constructor
  • Digest (pHash) - Digest of the certificate obtained by GetHashMD5 or GetHashSHA1 routines
 
 

Return value

    Index of certificate with specified hash if such certificate is present in storage.
    -1 if there is no such certificate.

 
 

Description

    Use this method to check whether certificate with specified hash is present in the storage. If the certificate is present, this function returns its index in the list. Otherwise -1 is returned.

 
 

See also:     IsPresent    

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