It says how to do it right in the comments, namely the block of comments
that ends with

 * MD5 example:
 *
 * #define DATA_ORDER_IS_LITTLE_ENDIAN
 *
 * #define HASH_LONG  MD5_LONG
 * #define HASH_LONG_LOG2  MD5_LONG_LOG2
 * #define HASH_CTX  MD5_CTX
 * #define HASH_CBLOCK  MD5_CBLOCK
 * #define HASH_LBLOCK  MD5_LBLOCK
 * #define HASH_UPDATE  MD5_Update
 * #define HASH_TRANSFORM  MD5_Transform
 * #define HASH_FINAL  MD5_Final
 * #define HASH_BLOCK_HOST_ORDER md5_block_host_order
 * #define HASH_BLOCK_DATA_ORDER md5_block_data_order
 *
followed by
#include <md32_common.h>


If you just want to hash some data, have a look at the docs at
(http://www.openssl.org/docs/crypto/EVP_DigestInit.html#)

====================
Greg Stark
[EMAIL PROTECTED]
====================


----- Original Message -----
From: "imran badr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 07, 2001 3:12 PM
Subject: Indirection in Digests


> Hi , I am new to openSSL. I am looking at the code in md32_common.h file
> which has a single method HASH_UPDATE(..) for MD5 and SHA-1 etc. I tried
to
> figure out how does the program knows which digest to use at run time but
> failed? any help would be highly appreciated.
>
> Thanks,
> Imran.
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
>
>
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to