Hello, > I have ported OPENSSL on VxWorks (host is HP-UX and target is VxWorks) > I want to use SHA-512, When I compile I am getting the following > warnings > > h/openssl/sha.h:179: warning: ANSI C does not support `long long' > h/openssl/sha.h:180: warning: ANSI C does not support `long long' > h/openssl/sha.h:180: warning: ANSI C does not support `long long' > h/openssl/sha.h:182: warning: ANSI C does not support `long long' > > Warning are in > > typedef struct SHA512state_st > { > SHA_LONG64 h[8]; > SHA_LONG64 Nl,Nh; > union { > SHA_LONG64 d[SHA_LBLOCK]; > unsigned char p[SHA512_CBLOCK]; > } u; > unsigned int num,md_len; > } SHA512_CTX; > > I tried considering SHA_LONG64 as unsigned long and #define U64(C) C##UL > Then I started getting lot of warnings in file sha512.c > > Warning are of type: > sha512.c:61: warning: large integer implicitly truncated to unsigned > type > sha512.c:114: warning: right shift count >= width of type OpenSSL implementation of SHA384/SHA512 requires that SHA_LONG64 must be defined as 64-bit type (sizeof(SHA_LONG64) must be 8). You should find such type in compiler to get this work. For example you may use uint64_t (if such type is defined).
Best regards, -- Marek Marcola <[EMAIL PROTECTED]> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]