@@ -362,7 +362,7 @@ int sha512_256_init(hash_state * md);
362362int sha512_256_done (hash_state * md , unsigned char * out );
363363int sha512_256_test (void );
364364extern const struct ltc_hash_descriptor sha512_256_desc ;
365- #endif
365+ #endif /* LTC_SHA512_256 */
366366
367367#ifdef LTC_SHA512_224
368368#ifndef LTC_SHA512
@@ -373,9 +373,15 @@ int sha512_224_init(hash_state * md);
373373int sha512_224_done (hash_state * md , unsigned char * out );
374374int sha512_224_test (void );
375375extern const struct ltc_hash_descriptor sha512_224_desc ;
376- #endif
376+ #endif /* LTC_SHA512_224 */
377377
378378#ifdef LTC_SHA256
379+ int sha256_init (hash_state * md );
380+ int sha256_process (hash_state * md , const unsigned char * in , unsigned long inlen );
381+ int sha256_done (hash_state * md , unsigned char * out );
382+ int sha256_test (void );
383+ extern const struct ltc_hash_descriptor sha256_desc ;
384+
379385int sha256_c_init (hash_state * md );
380386int sha256_c_process (hash_state * md , const unsigned char * in , unsigned long inlen );
381387int sha256_c_done (hash_state * md , unsigned char * out );
@@ -388,18 +394,19 @@ int sha256_x86_process(hash_state * md, const unsigned char *in, unsigned long i
388394int sha256_x86_done (hash_state * md , unsigned char * out );
389395int sha256_x86_test (void );
390396extern const struct ltc_hash_descriptor sha256_x86_desc ;
391- #endif
392-
393- int sha256_init (hash_state * md );
394- int sha256_process (hash_state * md , const unsigned char * in , unsigned long inlen );
395- int sha256_done (hash_state * md , unsigned char * out );
396- int sha256_test (void );
397- extern const struct ltc_hash_descriptor sha256_desc ;
397+ #endif /* LTC_SHA256_X86 */
398+ #endif /* LTC_SHA256 */
398399
399400#ifdef LTC_SHA224
400401#ifndef LTC_SHA256
401402 #error LTC_SHA256 is required for LTC_SHA224
402403#endif
404+ int sha224_init (hash_state * md );
405+ #define sha224_process sha256_process
406+ int sha224_done (hash_state * md , unsigned char * out );
407+ int sha224_test (void );
408+ extern const struct ltc_hash_descriptor sha224_desc ;
409+
403410int sha224_c_init (hash_state * md );
404411#define sha224_c_process sha256_c_process
405412int sha224_c_done (hash_state * md , unsigned char * out );
@@ -412,15 +419,8 @@ int sha224_x86_init(hash_state * md);
412419int sha224_x86_done (hash_state * md , unsigned char * out );
413420int sha224_x86_test (void );
414421extern const struct ltc_hash_descriptor sha224_x86_desc ;
415- #endif
416-
417- int sha224_init (hash_state * md );
418- #define sha224_process sha256_process
419- int sha224_done (hash_state * md , unsigned char * out );
420- int sha224_test (void );
421- extern const struct ltc_hash_descriptor sha224_desc ;
422- #endif
423- #endif
422+ #endif /* LTC_SHA224_X86 */
423+ #endif /* LTC_SHA224 */
424424
425425#ifdef LTC_SHA1
426426int sha1_init (hash_state * md );
0 commit comments