Deleted Added
full compact
des.h (142428) des.h (160817)
1/* crypto/des/des.h */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 45 unchanged lines hidden (view full) ---

54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 */
58
59#ifndef HEADER_NEW_DES_H
60#define HEADER_NEW_DES_H
61
1/* crypto/des/des.h */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 45 unchanged lines hidden (view full) ---

54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 */
58
59#ifndef HEADER_NEW_DES_H
60#define HEADER_NEW_DES_H
61
62#include <openssl/e_os2.h> /* OPENSSL_EXTERN, OPENSSL_NO_DES,
63 DES_LONG (via openssl/opensslconf.h */
64
62#ifdef OPENSSL_NO_DES
63#error DES is disabled.
64#endif
65
65#ifdef OPENSSL_NO_DES
66#error DES is disabled.
67#endif
68
66#include <openssl/opensslconf.h> /* DES_LONG */
67#include <openssl/e_os2.h> /* OPENSSL_EXTERN */
68
69#ifdef OPENSSL_BUILD_SHLIBCRYPTO
70# undef OPENSSL_EXTERN
71# define OPENSSL_EXTERN OPENSSL_EXPORT
72#endif
73
74#ifdef __cplusplus
75extern "C" {
76#endif

--- 46 unchanged lines hidden (view full) ---

123 DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))
124
125OPENSSL_DECLARE_GLOBAL(int,DES_check_key); /* defaults to false */
126#define DES_check_key OPENSSL_GLOBAL_REF(DES_check_key)
127OPENSSL_DECLARE_GLOBAL(int,DES_rw_mode); /* defaults to DES_PCBC_MODE */
128#define DES_rw_mode OPENSSL_GLOBAL_REF(DES_rw_mode)
129
130const char *DES_options(void);
69#ifdef OPENSSL_BUILD_SHLIBCRYPTO
70# undef OPENSSL_EXTERN
71# define OPENSSL_EXTERN OPENSSL_EXPORT
72#endif
73
74#ifdef __cplusplus
75extern "C" {
76#endif

--- 46 unchanged lines hidden (view full) ---

123 DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))
124
125OPENSSL_DECLARE_GLOBAL(int,DES_check_key); /* defaults to false */
126#define DES_check_key OPENSSL_GLOBAL_REF(DES_check_key)
127OPENSSL_DECLARE_GLOBAL(int,DES_rw_mode); /* defaults to DES_PCBC_MODE */
128#define DES_rw_mode OPENSSL_GLOBAL_REF(DES_rw_mode)
129
130const char *DES_options(void);
131void DES_ecb3_encrypt(const unsigned char *input, unsigned char *output,
131void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,
132 DES_key_schedule *ks1,DES_key_schedule *ks2,
133 DES_key_schedule *ks3, int enc);
134DES_LONG DES_cbc_cksum(const unsigned char *input,DES_cblock *output,
135 long length,DES_key_schedule *schedule,
136 const_DES_cblock *ivec);
137/* DES_cbc_encrypt does not update the IV! Use DES_ncbc_encrypt instead. */
138void DES_cbc_encrypt(const unsigned char *input,unsigned char *output,
139 long length,DES_key_schedule *schedule,DES_cblock *ivec,

--- 105 unchanged lines hidden ---
132 DES_key_schedule *ks1,DES_key_schedule *ks2,
133 DES_key_schedule *ks3, int enc);
134DES_LONG DES_cbc_cksum(const unsigned char *input,DES_cblock *output,
135 long length,DES_key_schedule *schedule,
136 const_DES_cblock *ivec);
137/* DES_cbc_encrypt does not update the IV! Use DES_ncbc_encrypt instead. */
138void DES_cbc_encrypt(const unsigned char *input,unsigned char *output,
139 long length,DES_key_schedule *schedule,DES_cblock *ivec,

--- 105 unchanged lines hidden ---