summaryrefslogtreecommitdiff
path: root/include/openssl/rc2.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-11-10 18:36:08 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-11-10 18:36:08 +0300
commitd34a80f41a4bdae108d5f77e3397bc893fbacf6e (patch)
treea7e3500c16d2867c6ac657952fb11286606f8913 /include/openssl/rc2.h
parent75b344c4c8b4148602279b51bc2cc5d45b03c324 (diff)
update to openssl headers from version 1.0.2m
Diffstat (limited to 'include/openssl/rc2.h')
-rw-r--r--include/openssl/rc2.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/include/openssl/rc2.h b/include/openssl/rc2.h
index 72c944d8f9..ab6424a068 100644
--- a/include/openssl/rc2.h
+++ b/include/openssl/rc2.h
@@ -57,44 +57,44 @@
*/
#ifndef HEADER_RC2_H
-#define HEADER_RC2_H
+# define HEADER_RC2_H
-#include <openssl/opensslconf.h> /* OPENSSL_NO_RC2, RC2_INT */
-#ifdef OPENSSL_NO_RC2
-#error RC2 is disabled.
-#endif
+# include <openssl/opensslconf.h>/* OPENSSL_NO_RC2, RC2_INT */
+# ifdef OPENSSL_NO_RC2
+# error RC2 is disabled.
+# endif
-#define RC2_ENCRYPT 1
-#define RC2_DECRYPT 0
+# define RC2_ENCRYPT 1
+# define RC2_DECRYPT 0
-#define RC2_BLOCK 8
-#define RC2_KEY_LENGTH 16
+# define RC2_BLOCK 8
+# define RC2_KEY_LENGTH 16
#ifdef __cplusplus
extern "C" {
#endif
-typedef struct rc2_key_st
- {
- RC2_INT data[64];
- } RC2_KEY;
+typedef struct rc2_key_st {
+ RC2_INT data[64];
+} RC2_KEY;
-#ifdef OPENSSL_FIPS
-void private_RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bits);
-#endif
-void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,int bits);
-void RC2_ecb_encrypt(const unsigned char *in,unsigned char *out,RC2_KEY *key,
- int enc);
-void RC2_encrypt(unsigned long *data,RC2_KEY *key);
-void RC2_decrypt(unsigned long *data,RC2_KEY *key);
+# ifdef OPENSSL_FIPS
+void private_RC2_set_key(RC2_KEY *key, int len, const unsigned char *data,
+ int bits);
+# endif
+void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits);
+void RC2_ecb_encrypt(const unsigned char *in, unsigned char *out,
+ RC2_KEY *key, int enc);
+void RC2_encrypt(unsigned long *data, RC2_KEY *key);
+void RC2_decrypt(unsigned long *data, RC2_KEY *key);
void RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
- RC2_KEY *ks, unsigned char *iv, int enc);
+ RC2_KEY *ks, unsigned char *iv, int enc);
void RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out,
- long length, RC2_KEY *schedule, unsigned char *ivec,
- int *num, int enc);
+ long length, RC2_KEY *schedule, unsigned char *ivec,
+ int *num, int enc);
void RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out,
- long length, RC2_KEY *schedule, unsigned char *ivec,
- int *num);
+ long length, RC2_KEY *schedule, unsigned char *ivec,
+ int *num);
#ifdef __cplusplus
}