Contents 

QuickHash Library
QuickHash Library Overview
QuickHash Library Applications
QuickHash Library Installation
Register QuickHash Library
MD2
CMD2 ( C++ Interface )
CMD2 class members
MD2 API ( QuickHash API )
MD2 API Functions
MD2 ( QuickHash Type Library )
MD4
CMD4 ( C++ Interface )
CMD4 class members
MD4 API ( QuickHash API )
MD4 API Functions
MD4 ( QuickHash Type Library )
MD5
CMD5 ( C++ Interface )
CMD5 class members
MD5 API ( QuickHash API )
MD5 API Functions
MD5 ( QuickHash Type Library )
SHA-1
CSHA1 ( C++ Interface )
CSHA1 class members
SHA1 API ( QuickHash API )
SHA1 API Functions
SHA1 ( QuickHash Type Library )
SHA-2 (256)
CSHA256 ( C++ Interface )
CSHA256 class members
SHA256 API ( QuickHash API )
SHA256 API Functions
SHA256 ( QuickHash Type Library )
SHA-2 (384)
CSHA384 ( C++ Interface )
CSHA384 class members
SHA384 API ( QuickHash API )
SHA384 API Functions
SHA384 ( QuickHash Type Library )
SHA-2 (512)
CSHA512 ( C++ Interface )
CSHA512 class members
SHA512 API ( QuickHash API )
SHA512 API Functions
SHA512 ( QuickHash Type Library )
RIPEMD-128
CRIPEMD128 ( C++ Interface )
CRIPEMD128 ( C++ Interface )
RIPEMD128 API ( QuickHash API )
RIPEMD128 API Functions
RIPEMD128 ( QuickHash Type Library )
RIPEMD-160
CRIPEMD160 ( C++ Interface )
CRIPEMD160 ( C++ Interface )
RIPEMD160 API ( QuickHash API )
RIPEMD160 API Functions
RIPEMD160 ( QuickHash Type Library )
RIPEMD-256
CRIPEMD256 ( C++ Interface )
CRIPEMD256 ( C++ Interface )
RIPEMD256 API ( QuickHash API )
RIPEMD256 API Functions
RIPEMD256 ( QuickHash Type Library )
RIPEMD-320
CRIPEMD320 ( C++ Interface )
CRIPEMD320 ( C++ Interface )
RIPEMD320 API ( QuickHash API )
RIPEMD320 API Functions
RIPEMD320 ( QuickHash Type Library )
PANAMA
CPanama ( C++ Interface )
CPanama class members
PANAMA API ( QuickHash API )
PANAMA API Functions
PANAMA ( QuickHash Type Library )
TIGER
CTiger
CTiger class members
TIGER API ( QuickHash API )
TIGER API Functions
TIGER ( QuickHash Type Library )
CRC16
CCRC16 ( C++ Interface )
CCRC16 class members
CRC16 API ( QuickHash API )
CRC16 API Functions
CRC16 ( QuickHash Type Library )
CRC16C
CCRC16C ( C++ Interface )
CCRC16C class members
CRC16C API ( QuickHash API )
CRC16C API Functions
CRC16C ( QuickHash Type Library )
CRC32
CCRC32 ( C++ Interface )
CCRC32 class members
CRC32 API ( QuickHash API )
CRC32 API Functions
CRC32 ( QuickHash Type Library )
ADLER32
CAdler32 ( C++ Interface )
CAdler32 class members
ADLER32 API ( QuickHash API )
ADLER32 API Functions
ADLER32 ( QuickHash Type Library )
HMAC
CHMAC ( C++ Interface )
CHMAC class members
HMAC API ( QuickHash API )
HMAC API Functions
HMAC ( QuickHash Type Library )
QuickHash Type Library
Type Library Overview
Type Library Functions
Type Library Constants
Type Library Types
Type Library Error Codes
QuickHash Library Run-Time Dynamic Linking
Function Indicies in QuickHash.dll
License Agreement
Samples

SlavaSoft QuickHash Library Online Help

Prev Page Next Page
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:

  • General Functions;

  • Algorithm-Specific Functions For Message Digest/Checksum Calculation;

  • HMAC-Specific Functions.

 

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

  • By using General Functions.

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.

  • By using Algorithm-Specific Functions For Message Digest/Checksum Calculation.

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:

  • By using General Functions.

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.

  • By using HMAC-Specific Functions.

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