| OLD | NEW |
| 1 /* crypto/rc5/rc5.h */ | 1 /* crypto/rc5/rc5.h */ |
| 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
| 6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
| 7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
| 8 * | 8 * |
| 9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
| 10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 #define RC5_12_ROUNDS 12 | 87 #define RC5_12_ROUNDS 12 |
| 88 #define RC5_16_ROUNDS 16 | 88 #define RC5_16_ROUNDS 16 |
| 89 | 89 |
| 90 typedef struct rc5_key_st | 90 typedef struct rc5_key_st |
| 91 { | 91 { |
| 92 /* Number of rounds */ | 92 /* Number of rounds */ |
| 93 int rounds; | 93 int rounds; |
| 94 RC5_32_INT data[2*(RC5_16_ROUNDS+1)]; | 94 RC5_32_INT data[2*(RC5_16_ROUNDS+1)]; |
| 95 } RC5_32_KEY; | 95 } RC5_32_KEY; |
| 96 | 96 |
| 97 #ifdef OPENSSL_FIPS | 97 |
| 98 void private_RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data, | |
| 99 » int rounds); | |
| 100 #endif | |
| 101 void RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data, | 98 void RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data, |
| 102 int rounds); | 99 int rounds); |
| 103 void RC5_32_ecb_encrypt(const unsigned char *in,unsigned char *out,RC5_32_KEY *k
ey, | 100 void RC5_32_ecb_encrypt(const unsigned char *in,unsigned char *out,RC5_32_KEY *k
ey, |
| 104 int enc); | 101 int enc); |
| 105 void RC5_32_encrypt(unsigned long *data,RC5_32_KEY *key); | 102 void RC5_32_encrypt(unsigned long *data,RC5_32_KEY *key); |
| 106 void RC5_32_decrypt(unsigned long *data,RC5_32_KEY *key); | 103 void RC5_32_decrypt(unsigned long *data,RC5_32_KEY *key); |
| 107 void RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out, | 104 void RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out, |
| 108 long length, RC5_32_KEY *ks, unsigned char *iv, | 105 long length, RC5_32_KEY *ks, unsigned char *iv, |
| 109 int enc); | 106 int enc); |
| 110 void RC5_32_cfb64_encrypt(const unsigned char *in, unsigned char *out, | 107 void RC5_32_cfb64_encrypt(const unsigned char *in, unsigned char *out, |
| 111 long length, RC5_32_KEY *schedule, | 108 long length, RC5_32_KEY *schedule, |
| 112 unsigned char *ivec, int *num, int enc); | 109 unsigned char *ivec, int *num, int enc); |
| 113 void RC5_32_ofb64_encrypt(const unsigned char *in, unsigned char *out, | 110 void RC5_32_ofb64_encrypt(const unsigned char *in, unsigned char *out, |
| 114 long length, RC5_32_KEY *schedule, | 111 long length, RC5_32_KEY *schedule, |
| 115 unsigned char *ivec, int *num); | 112 unsigned char *ivec, int *num); |
| 116 | 113 |
| 117 #ifdef __cplusplus | 114 #ifdef __cplusplus |
| 118 } | 115 } |
| 119 #endif | 116 #endif |
| 120 | 117 |
| 121 #endif | 118 #endif |
| OLD | NEW |