From d34a80f41a4bdae108d5f77e3397bc893fbacf6e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Nov 2017 18:36:08 +0300 Subject: update to openssl headers from version 1.0.2m --- include/openssl/rc2.h | 52 +++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'include/openssl/rc2.h') 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_NO_RC2, RC2_INT */ -#ifdef OPENSSL_NO_RC2 -#error RC2 is disabled. -#endif +# include /* 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 } -- cgit v1.2.3