~ubuntu-branches/ubuntu/lucid/openssl/lucid-proposed

« back to all changes in this revision

Viewing changes to crypto/rc5/rc5_skey.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-06-13 18:15:46 UTC
  • mto: (11.1.5 squeeze)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20090613181546-vbfntai3b009dl1u
Tags: upstream-0.9.8k
ImportĀ upstreamĀ versionĀ 0.9.8k

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 * [including the GNU Public Licence.]
57
57
 */
58
58
 
 
59
#include <openssl/crypto.h>
59
60
#include <openssl/rc5.h>
 
61
#ifdef OPENSSL_FIPS
 
62
#include <openssl/fips.h>
 
63
#endif
 
64
 
60
65
#include "rc5_locl.h"
61
66
 
62
 
void RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data,
63
 
                    int rounds)
 
67
#ifdef OPENSSL_FIPS
 
68
void RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data,
 
69
                    int rounds)
 
70
        {
 
71
        if (FIPS_mode())
 
72
                FIPS_BAD_ABORT(RC5)
 
73
        private_RC5_32_set_key(key, len, data, rounds);
 
74
        }
 
75
void private_RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data,
 
76
                    int rounds)
 
77
#else
 
78
void RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data,
 
79
                    int rounds)
 
80
#endif
64
81
        {
65
82
        RC5_32_INT L[64],l,ll,A,B,*S,k;
66
83
        int i,j,m,c,t,ii,jj;