QuickHash Library Type Library

QuickHash Type Library Overview

 

QuickHash Library includes quickhash.tlb file (QuickHash Type Library) with declarations of all functions, constants and types. This allows to use the QuickHash Library in different programming languages which have the possibility to reference a Type Library, such as VB 5.0, VB 6.0, VBA, etc. )

 

All QuickHash Type Library functions are divided in 3 logical groups:

 

A message digest/checksum can be generated in 2 modes:

In this case for any hash/checksum algorithm you have to call the same functions indicating the selected algorithm by providing its ID as the parameter. For example, if you have to generate MD5 and SHA-1 message digests for a file you can use QHASH_FileDigest or QHASH_FileHexDigest in both cases. For MD5 message digest you pass MD5_ALGID as the algorithm ID parameter, and for SHA-1 you pass SHA1_ALGID.

In this case for every hash/checksum algorithm you have to call functions specific for the selected algorithm. For example, if you have to generate MD5 message digest you have to use only the functions which names begin with MD5: MD5_Calculate, MD5_Init, etc.; for SHA-1 calculations you have to call functions which names begin with SHA1: SHA1_Calculate, SHA1_Init, etc.

Note. The algorithm-specific functions for any algorithm are similar to API functions for that algorithm and the rules of using those functions in Type Library are similar to those in API.

Note. The easiest way to generate a message digest/checksum is by using the appropriate General Function. If, by any reason, General Functions don't satisfy your requirements use Algorithm-Specific Functions For Message Digest/Checksum Calculation.

An HMAC can be generated in 2 modes:

In this case for HMAC calculation based on any hash algorithm you have to call the same functions indicating the selected algorithm by providing its ID as the parameter. For example, if you have to generate MD5-HMAC and SHA1-HMAC for a file, you can use QHASH_FileHMAC or QHASH_FileHexHMAC in both cases. For MD5-HMAC you pass MD5_ALGID as the algorithm ID parameter, and for SHA1-HMAC you pass SHA1_ALGID.

In this case for HMAC calculation you have to call functions which names begin with HMAC: HMAC_Calculate, HMAC_Init, etc

Note. The HMAC-specific functions are similar to API functions for HMAC calculation and the rules of using those functions in Type Library are similar to those in API.

Note. The easiest way to generate an HMAC is by using the appropriate General Function. If, by any reason, General Functions don't satisfy your requirements use HMAC-Specific Functions.

Type Library Functions   |   Samples   |   Type Library Constants   |   Type Library Types   |   Useful Links   |   HashCalc


 

 

Send Feedback to SlavaSoft Inc. Tell a friend about QuickHash Library