diff options
| author | beck <> | 1999-09-29 04:37:45 +0000 |
|---|---|---|
| committer | beck <> | 1999-09-29 04:37:45 +0000 |
| commit | de8f24ea083384bb66b32ec105dc4743c5663cdf (patch) | |
| tree | 1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/rc2/rc2.h | |
| parent | cb929d29896bcb87c2a97417fbd03e50078fc178 (diff) | |
| download | openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2 openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip | |
OpenSSL 0.9.4 merge
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/rc2/rc2.h (renamed from src/lib/libssl/src/crypto/rc2/rc2.org) | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/src/lib/libssl/src/crypto/rc2/rc2.org b/src/lib/libcrypto/rc2/rc2.h index 37354cfa62..9571efb755 100644 --- a/src/lib/libssl/src/crypto/rc2/rc2.org +++ b/src/lib/libcrypto/rc2/rc2.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* crypto/rc2/rc2.org */ | 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 | * |
| @@ -56,14 +56,6 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | /* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | ||
| 60 | * | ||
| 61 | * Always modify rc2.org since rc2.h is automatically generated from | ||
| 62 | * it during SSLeay configuration. | ||
| 63 | * | ||
| 64 | * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | ||
| 65 | */ | ||
| 66 | |||
| 67 | #ifndef HEADER_RC2_H | 59 | #ifndef HEADER_RC2_H |
| 68 | #define HEADER_RC2_H | 60 | #define HEADER_RC2_H |
| 69 | 61 | ||
| @@ -71,12 +63,14 @@ | |||
| 71 | extern "C" { | 63 | extern "C" { |
| 72 | #endif | 64 | #endif |
| 73 | 65 | ||
| 66 | #ifdef NO_RC2 | ||
| 67 | #error RC2 is disabled. | ||
| 68 | #endif | ||
| 69 | |||
| 74 | #define RC2_ENCRYPT 1 | 70 | #define RC2_ENCRYPT 1 |
| 75 | #define RC2_DECRYPT 0 | 71 | #define RC2_DECRYPT 0 |
| 76 | 72 | ||
| 77 | /* I need to put in a mod for the alpha - eay */ | 73 | #include <openssl/opensslconf.h> /* RC2_INT */ |
| 78 | #define RC2_INT unsigned short | ||
| 79 | |||
| 80 | #define RC2_BLOCK 8 | 74 | #define RC2_BLOCK 8 |
| 81 | #define RC2_KEY_LENGTH 16 | 75 | #define RC2_KEY_LENGTH 16 |
| 82 | 76 | ||
| @@ -85,7 +79,6 @@ typedef struct rc2_key_st | |||
| 85 | RC2_INT data[64]; | 79 | RC2_INT data[64]; |
| 86 | } RC2_KEY; | 80 | } RC2_KEY; |
| 87 | 81 | ||
| 88 | #ifndef NOPROTO | ||
| 89 | 82 | ||
| 90 | void RC2_set_key(RC2_KEY *key, int len, unsigned char *data,int bits); | 83 | void RC2_set_key(RC2_KEY *key, int len, unsigned char *data,int bits); |
| 91 | void RC2_ecb_encrypt(unsigned char *in,unsigned char *out,RC2_KEY *key, | 84 | void RC2_ecb_encrypt(unsigned char *in,unsigned char *out,RC2_KEY *key, |
| @@ -99,18 +92,6 @@ void RC2_cfb64_encrypt(unsigned char *in, unsigned char *out, long length, | |||
| 99 | void RC2_ofb64_encrypt(unsigned char *in, unsigned char *out, long length, | 92 | void RC2_ofb64_encrypt(unsigned char *in, unsigned char *out, long length, |
| 100 | RC2_KEY *schedule, unsigned char *ivec, int *num); | 93 | RC2_KEY *schedule, unsigned char *ivec, int *num); |
| 101 | 94 | ||
| 102 | #else | ||
| 103 | |||
| 104 | void RC2_set_key(); | ||
| 105 | void RC2_ecb_encrypt(); | ||
| 106 | void RC2_encrypt(); | ||
| 107 | void RC2_decrypt(); | ||
| 108 | void RC2_cbc_encrypt(); | ||
| 109 | void RC2_cfb64_encrypt(); | ||
| 110 | void RC2_ofb64_encrypt(); | ||
| 111 | |||
| 112 | #endif | ||
| 113 | |||
| 114 | #ifdef __cplusplus | 95 | #ifdef __cplusplus |
| 115 | } | 96 | } |
| 116 | #endif | 97 | #endif |
