~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to crypto/md32_common.h

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
 *                                      <appro@fy.chalmers.se>
129
129
 */
130
130
 
 
131
#include <openssl/crypto.h>
 
132
#include <openssl/fips.h>
 
133
#include <openssl/err.h>
 
134
 
131
135
#if !defined(DATA_ORDER_IS_BIG_ENDIAN) && !defined(DATA_ORDER_IS_LITTLE_ENDIAN)
132
136
#error "DATA_ORDER must be defined!"
133
137
#endif
555
559
        static const unsigned char end[4]={0x80,0x00,0x00,0x00};
556
560
        const unsigned char *cp=end;
557
561
 
 
562
#ifdef OPENSSL_FIPS
 
563
        if(FIPS_mode() && !FIPS_md5_allowed())
 
564
            {
 
565
            FIPSerr(FIPS_F_HASH_FINAL,FIPS_R_NON_FIPS_METHOD);
 
566
            return 0;
 
567
            }
 
568
#endif
 
569
 
558
570
        /* c->num should definitly have room for at least one more byte. */
559
571
        p=c->data;
560
572
        i=c->num>>2;