OLD | NEW |
1 /* crypto/rc2/rc2.h */ | 1 /* crypto/rc2/rc2.h */ |
2 /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1997 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 #ifdef __cplusplus | 73 #ifdef __cplusplus |
74 extern "C" { | 74 extern "C" { |
75 #endif | 75 #endif |
76 | 76 |
77 typedef struct rc2_key_st | 77 typedef struct rc2_key_st |
78 { | 78 { |
79 RC2_INT data[64]; | 79 RC2_INT data[64]; |
80 } RC2_KEY; | 80 } RC2_KEY; |
81 | 81 |
82 #ifdef OPENSSL_FIPS | 82 |
83 void private_RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bi
ts); | |
84 #endif | |
85 void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bits); | 83 void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bits); |
86 void RC2_ecb_encrypt(const unsigned char *in,unsigned char *out,RC2_KEY *key, | 84 void RC2_ecb_encrypt(const unsigned char *in,unsigned char *out,RC2_KEY *key, |
87 int enc); | 85 int enc); |
88 void RC2_encrypt(unsigned long *data,RC2_KEY *key); | 86 void RC2_encrypt(unsigned long *data,RC2_KEY *key); |
89 void RC2_decrypt(unsigned long *data,RC2_KEY *key); | 87 void RC2_decrypt(unsigned long *data,RC2_KEY *key); |
90 void RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, | 88 void RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, |
91 RC2_KEY *ks, unsigned char *iv, int enc); | 89 RC2_KEY *ks, unsigned char *iv, int enc); |
92 void RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out, | 90 void RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out, |
93 long length, RC2_KEY *schedule, unsigned char *ivec, | 91 long length, RC2_KEY *schedule, unsigned char *ivec, |
94 int *num, int enc); | 92 int *num, int enc); |
95 void RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out, | 93 void RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out, |
96 long length, RC2_KEY *schedule, unsigned char *ivec, | 94 long length, RC2_KEY *schedule, unsigned char *ivec, |
97 int *num); | 95 int *num); |
98 | 96 |
99 #ifdef __cplusplus | 97 #ifdef __cplusplus |
100 } | 98 } |
101 #endif | 99 #endif |
102 | 100 |
103 #endif | 101 #endif |
OLD | NEW |