OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
des_old.c File Reference
#include <openssl/des.h>
#include <openssl/rand.h>

Go to the source code of this file.

Macros

#define OPENSSL_DES_LIBDES_COMPATIBILITY
 

Functions

const char * _ossl_old_des_options (void)
 
void _ossl_old_des_ecb3_encrypt (_ossl_old_des_cblock *input, _ossl_old_des_cblock *output, des_key_schedule ks1, des_key_schedule ks2, des_key_schedule ks3, int enc)
 
DES_LONG _ossl_old_des_cbc_cksum (_ossl_old_des_cblock *input, _ossl_old_des_cblock *output, long length, des_key_schedule schedule, _ossl_old_des_cblock *ivec)
 
void _ossl_old_des_cbc_encrypt (_ossl_old_des_cblock *input, _ossl_old_des_cblock *output, long length, des_key_schedule schedule, _ossl_old_des_cblock *ivec, int enc)
 
void _ossl_old_des_ncbc_encrypt (_ossl_old_des_cblock *input, _ossl_old_des_cblock *output, long length, des_key_schedule schedule, _ossl_old_des_cblock *ivec, int enc)
 
void _ossl_old_des_xcbc_encrypt (_ossl_old_des_cblock *input, _ossl_old_des_cblock *output, long length, des_key_schedule schedule, _ossl_old_des_cblock *ivec, _ossl_old_des_cblock *inw, _ossl_old_des_cblock *outw, int enc)
 
void _ossl_old_des_cfb_encrypt (unsigned char *in, unsigned char *out, int numbits, long length, des_key_schedule schedule, _ossl_old_des_cblock *ivec, int enc)
 
void _ossl_old_des_ecb_encrypt (_ossl_old_des_cblock *input, _ossl_old_des_cblock *output, des_key_schedule ks, int enc)
 
void _ossl_old_des_encrypt (DES_LONG *data, des_key_schedule ks, int enc)
 
void _ossl_old_des_encrypt2 (DES_LONG *data, des_key_schedule ks, int enc)
 
void _ossl_old_des_encrypt3 (DES_LONG *data, des_key_schedule ks1, des_key_schedule ks2, des_key_schedule ks3)
 
void _ossl_old_des_decrypt3 (DES_LONG *data, des_key_schedule ks1, des_key_schedule ks2, des_key_schedule ks3)
 
void _ossl_old_des_ede3_cbc_encrypt (_ossl_old_des_cblock *input, _ossl_old_des_cblock *output, long length, des_key_schedule ks1, des_key_schedule ks2, des_key_schedule ks3, _ossl_old_des_cblock *ivec, int enc)
 
void _ossl_old_des_ede3_cfb64_encrypt (unsigned char *in, unsigned char *out, long length, des_key_schedule ks1, des_key_schedule ks2, des_key_schedule ks3, _ossl_old_des_cblock *ivec, int *num, int enc)
 
void _ossl_old_des_ede3_ofb64_encrypt (unsigned char *in, unsigned char *out, long length, des_key_schedule ks1, des_key_schedule ks2, des_key_schedule ks3, _ossl_old_des_cblock *ivec, int *num)
 
int _ossl_old_des_enc_read (int fd, char *buf, int len, des_key_schedule sched, _ossl_old_des_cblock *iv)
 
int _ossl_old_des_enc_write (int fd, char *buf, int len, des_key_schedule sched, _ossl_old_des_cblock *iv)
 
char * _ossl_old_des_fcrypt (const char *buf, const char *salt, char *ret)
 
char * _ossl_old_des_crypt (const char *buf, const char *salt)
 
char * _ossl_old_crypt (const char *buf, const char *salt)
 
void _ossl_old_des_ofb_encrypt (unsigned char *in, unsigned char *out, int numbits, long length, des_key_schedule schedule, _ossl_old_des_cblock *ivec)
 
void _ossl_old_des_pcbc_encrypt (_ossl_old_des_cblock *input, _ossl_old_des_cblock *output, long length, des_key_schedule schedule, _ossl_old_des_cblock *ivec, int enc)
 
DES_LONG _ossl_old_des_quad_cksum (_ossl_old_des_cblock *input, _ossl_old_des_cblock *output, long length, int out_count, _ossl_old_des_cblock *seed)
 
void _ossl_old_des_random_seed (_ossl_old_des_cblock key)
 
void _ossl_old_des_random_key (_ossl_old_des_cblock ret)
 
int _ossl_old_des_read_password (_ossl_old_des_cblock *key, const char *prompt, int verify)
 
int _ossl_old_des_read_2passwords (_ossl_old_des_cblock *key1, _ossl_old_des_cblock *key2, const char *prompt, int verify)
 
void _ossl_old_des_set_odd_parity (_ossl_old_des_cblock *key)
 
int _ossl_old_des_is_weak_key (_ossl_old_des_cblock *key)
 
int _ossl_old_des_set_key (_ossl_old_des_cblock *key, des_key_schedule schedule)
 
int _ossl_old_des_key_sched (_ossl_old_des_cblock *key, des_key_schedule schedule)
 
void _ossl_old_des_string_to_key (char *str, _ossl_old_des_cblock *key)
 
void _ossl_old_des_string_to_2keys (char *str, _ossl_old_des_cblock *key1, _ossl_old_des_cblock *key2)
 
void _ossl_old_des_cfb64_encrypt (unsigned char *in, unsigned char *out, long length, des_key_schedule schedule, _ossl_old_des_cblock *ivec, int *num, int enc)
 
void _ossl_old_des_ofb64_encrypt (unsigned char *in, unsigned char *out, long length, des_key_schedule schedule, _ossl_old_des_cblock *ivec, int *num)
 

Macro Definition Documentation

#define OPENSSL_DES_LIBDES_COMPATIBILITY

Definition at line 75 of file des_old.c.

Function Documentation

char* _ossl_old_crypt ( const char *  buf,
const char *  salt 
)

Definition at line 198 of file des_old.c.

DES_LONG _ossl_old_des_cbc_cksum ( _ossl_old_des_cblock input,
_ossl_old_des_cblock output,
long  length,
des_key_schedule  schedule,
_ossl_old_des_cblock ivec 
)

Definition at line 91 of file des_old.c.

void _ossl_old_des_cbc_encrypt ( _ossl_old_des_cblock input,
_ossl_old_des_cblock output,
long  length,
des_key_schedule  schedule,
_ossl_old_des_cblock ivec,
int  enc 
)

Definition at line 97 of file des_old.c.

void _ossl_old_des_cfb64_encrypt ( unsigned char *  in,
unsigned char *  out,
long  length,
des_key_schedule  schedule,
_ossl_old_des_cblock ivec,
int *  num,
int  enc 
)

Definition at line 262 of file des_old.c.

void _ossl_old_des_cfb_encrypt ( unsigned char *  in,
unsigned char *  out,
int  numbits,
long  length,
des_key_schedule  schedule,
_ossl_old_des_cblock ivec,
int  enc 
)

Definition at line 116 of file des_old.c.

char* _ossl_old_des_crypt ( const char *  buf,
const char *  salt 
)

Definition at line 194 of file des_old.c.

void _ossl_old_des_decrypt3 ( DES_LONG *  data,
des_key_schedule  ks1,
des_key_schedule  ks2,
des_key_schedule  ks3 
)

Definition at line 141 of file des_old.c.

void _ossl_old_des_ecb3_encrypt ( _ossl_old_des_cblock input,
_ossl_old_des_cblock output,
des_key_schedule  ks1,
des_key_schedule  ks2,
des_key_schedule  ks3,
int  enc 
)

Definition at line 83 of file des_old.c.

void _ossl_old_des_ecb_encrypt ( _ossl_old_des_cblock input,
_ossl_old_des_cblock output,
des_key_schedule  ks,
int  enc 
)

Definition at line 122 of file des_old.c.

void _ossl_old_des_ede3_cbc_encrypt ( _ossl_old_des_cblock input,
_ossl_old_des_cblock output,
long  length,
des_key_schedule  ks1,
des_key_schedule  ks2,
des_key_schedule  ks3,
_ossl_old_des_cblock ivec,
int  enc 
)

Definition at line 147 of file des_old.c.

void _ossl_old_des_ede3_cfb64_encrypt ( unsigned char *  in,
unsigned char *  out,
long  length,
des_key_schedule  ks1,
des_key_schedule  ks2,
des_key_schedule  ks3,
_ossl_old_des_cblock ivec,
int *  num,
int  enc 
)

Definition at line 155 of file des_old.c.

void _ossl_old_des_ede3_ofb64_encrypt ( unsigned char *  in,
unsigned char *  out,
long  length,
des_key_schedule  ks1,
des_key_schedule  ks2,
des_key_schedule  ks3,
_ossl_old_des_cblock ivec,
int *  num 
)

Definition at line 163 of file des_old.c.

int _ossl_old_des_enc_read ( int  fd,
char *  buf,
int  len,
des_key_schedule  sched,
_ossl_old_des_cblock iv 
)

Definition at line 180 of file des_old.c.

int _ossl_old_des_enc_write ( int  fd,
char *  buf,
int  len,
des_key_schedule  sched,
_ossl_old_des_cblock iv 
)

Definition at line 185 of file des_old.c.

void _ossl_old_des_encrypt ( DES_LONG *  data,
des_key_schedule  ks,
int  enc 
)

Definition at line 127 of file des_old.c.

void _ossl_old_des_encrypt2 ( DES_LONG *  data,
des_key_schedule  ks,
int  enc 
)

Definition at line 131 of file des_old.c.

void _ossl_old_des_encrypt3 ( DES_LONG *  data,
des_key_schedule  ks1,
des_key_schedule  ks2,
des_key_schedule  ks3 
)

Definition at line 135 of file des_old.c.

char* _ossl_old_des_fcrypt ( const char *  buf,
const char *  salt,
char *  ret 
)

Definition at line 190 of file des_old.c.

int _ossl_old_des_is_weak_key ( _ossl_old_des_cblock key)

Definition at line 242 of file des_old.c.

int _ossl_old_des_key_sched ( _ossl_old_des_cblock key,
des_key_schedule  schedule 
)

Definition at line 250 of file des_old.c.

void _ossl_old_des_ncbc_encrypt ( _ossl_old_des_cblock input,
_ossl_old_des_cblock output,
long  length,
des_key_schedule  schedule,
_ossl_old_des_cblock ivec,
int  enc 
)

Definition at line 103 of file des_old.c.

void _ossl_old_des_ofb64_encrypt ( unsigned char *  in,
unsigned char *  out,
long  length,
des_key_schedule  schedule,
_ossl_old_des_cblock ivec,
int *  num 
)

Definition at line 268 of file des_old.c.

void _ossl_old_des_ofb_encrypt ( unsigned char *  in,
unsigned char *  out,
int  numbits,
long  length,
des_key_schedule  schedule,
_ossl_old_des_cblock ivec 
)

Definition at line 202 of file des_old.c.

const char* _ossl_old_des_options ( void  )

Definition at line 79 of file des_old.c.

void _ossl_old_des_pcbc_encrypt ( _ossl_old_des_cblock input,
_ossl_old_des_cblock output,
long  length,
des_key_schedule  schedule,
_ossl_old_des_cblock ivec,
int  enc 
)

Definition at line 208 of file des_old.c.

DES_LONG _ossl_old_des_quad_cksum ( _ossl_old_des_cblock input,
_ossl_old_des_cblock output,
long  length,
int  out_count,
_ossl_old_des_cblock seed 
)

Definition at line 214 of file des_old.c.

void _ossl_old_des_random_key ( _ossl_old_des_cblock  ret)

Definition at line 224 of file des_old.c.

void _ossl_old_des_random_seed ( _ossl_old_des_cblock  key)

Definition at line 220 of file des_old.c.

int _ossl_old_des_read_2passwords ( _ossl_old_des_cblock key1,
_ossl_old_des_cblock key2,
const char *  prompt,
int  verify 
)

Definition at line 233 of file des_old.c.

int _ossl_old_des_read_password ( _ossl_old_des_cblock key,
const char *  prompt,
int  verify 
)

Definition at line 228 of file des_old.c.

int _ossl_old_des_set_key ( _ossl_old_des_cblock key,
des_key_schedule  schedule 
)

Definition at line 246 of file des_old.c.

void _ossl_old_des_set_odd_parity ( _ossl_old_des_cblock key)

Definition at line 238 of file des_old.c.

void _ossl_old_des_string_to_2keys ( char *  str,
_ossl_old_des_cblock key1,
_ossl_old_des_cblock key2 
)

Definition at line 258 of file des_old.c.

void _ossl_old_des_string_to_key ( char *  str,
_ossl_old_des_cblock key 
)

Definition at line 254 of file des_old.c.

void _ossl_old_des_xcbc_encrypt ( _ossl_old_des_cblock input,
_ossl_old_des_cblock output,
long  length,
des_key_schedule  schedule,
_ossl_old_des_cblock ivec,
_ossl_old_des_cblock inw,
_ossl_old_des_cblock outw,
int  enc 
)

Definition at line 109 of file des_old.c.