diff options
author | George Hazan <ghazan@miranda.im> | 2017-11-10 18:36:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-11-10 18:36:08 +0300 |
commit | d34a80f41a4bdae108d5f77e3397bc893fbacf6e (patch) | |
tree | a7e3500c16d2867c6ac657952fb11286606f8913 /include/openssl/cast.h | |
parent | 75b344c4c8b4148602279b51bc2cc5d45b03c324 (diff) |
update to openssl headers from version 1.0.2m
Diffstat (limited to 'include/openssl/cast.h')
-rw-r--r-- | include/openssl/cast.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/include/openssl/cast.h b/include/openssl/cast.h index 9bdbbebabc..5cf694691a 100644 --- a/include/openssl/cast.h +++ b/include/openssl/cast.h @@ -57,48 +57,48 @@ */
#ifndef HEADER_CAST_H
-#define HEADER_CAST_H
+# define HEADER_CAST_H
#ifdef __cplusplus
extern "C" {
#endif
-#include <openssl/opensslconf.h>
+# include <openssl/opensslconf.h>
-#ifdef OPENSSL_NO_CAST
-#error CAST is disabled.
-#endif
+# ifdef OPENSSL_NO_CAST
+# error CAST is disabled.
+# endif
-#define CAST_ENCRYPT 1
-#define CAST_DECRYPT 0
+# define CAST_ENCRYPT 1
+# define CAST_DECRYPT 0
-#define CAST_LONG unsigned int
+# define CAST_LONG unsigned int
-#define CAST_BLOCK 8
-#define CAST_KEY_LENGTH 16
+# define CAST_BLOCK 8
+# define CAST_KEY_LENGTH 16
-typedef struct cast_key_st
- {
- CAST_LONG data[32];
- int short_key; /* Use reduced rounds for short key */
- } CAST_KEY;
+typedef struct cast_key_st {
+ CAST_LONG data[32];
+ int short_key; /* Use reduced rounds for short key */
+} CAST_KEY;
-#ifdef OPENSSL_FIPS
+# ifdef OPENSSL_FIPS
void private_CAST_set_key(CAST_KEY *key, int len, const unsigned char *data);
-#endif
+# endif
void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data);
-void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out, const CAST_KEY *key,
- int enc);
+void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,
+ const CAST_KEY *key, int enc);
void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key);
void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key);
-void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
- const CAST_KEY *ks, unsigned char *iv, int enc);
+void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out,
+ long length, const CAST_KEY *ks, unsigned char *iv,
+ int enc);
void CAST_cfb64_encrypt(const unsigned char *in, unsigned char *out,
- long length, const CAST_KEY *schedule, unsigned char *ivec,
- int *num, int enc);
+ long length, const CAST_KEY *schedule,
+ unsigned char *ivec, int *num, int enc);
void CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out,
- long length, const CAST_KEY *schedule, unsigned char *ivec,
- int *num);
+ long length, const CAST_KEY *schedule,
+ unsigned char *ivec, int *num);
#ifdef __cplusplus
}
|