summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rc2/rc2.h
diff options
context:
space:
mode:
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 @@
71extern "C" { 63extern "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
90void RC2_set_key(RC2_KEY *key, int len, unsigned char *data,int bits); 83void RC2_set_key(RC2_KEY *key, int len, unsigned char *data,int bits);
91void RC2_ecb_encrypt(unsigned char *in,unsigned char *out,RC2_KEY *key, 84void 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,
99void RC2_ofb64_encrypt(unsigned char *in, unsigned char *out, long length, 92void 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
104void RC2_set_key();
105void RC2_ecb_encrypt();
106void RC2_encrypt();
107void RC2_decrypt();
108void RC2_cbc_encrypt();
109void RC2_cfb64_encrypt();
110void RC2_ofb64_encrypt();
111
112#endif
113
114#ifdef __cplusplus 95#ifdef __cplusplus
115} 96}
116#endif 97#endif