On Wed, Jul 29, 2009 at 06:51:13PM +0530, joshi chandran wrote:

> FIPS_NON_FIPS_MD_Init(MD5)
>       {
>       c->A=INIT_DATA_A;
>       c->B=INIT_DATA_B;
>       c->C=INIT_DATA_C;
>       c->D=INIT_DATA_D;
>       c->Nl=0;
>       c->Nh=0;
>       c->num=0;
>       return 1;
>       }
> 
> I cannot see any MD_Init function there .So how is MD_Init function is
> generated ?

In crypto/crypto.h, there's the macro definition for
FIPS_NON_FIPS_MD_Init

#define FIPS_NON_FIPS_MD_Init(alg) \                                        
        int alg##_Init(alg##_CTX *c)                                        

So in case of MD5, it expands to MD5_Init(MD5_CTX *c) for the function
you found.

   Martin
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to