Ruby  2.5.0dev(2017-10-22revision60238)
Data Structures | Macros | Functions
crypt.h File Reference

Go to the source code of this file.

Data Structures

union  C_block
 
struct  crypt_data
 

Macros

#define STATIC   static
 
#define LGCHUNKBITS   2
 
#define CHUNKBITS   (1<<LGCHUNKBITS)
 
#define KS_SIZE   16
 
#define SIZEOF_CRYPT_DATA   (KS_SIZE*8+(1+4+4+11+1))
 

Functions

char * crypt (const char *key, const char *setting)
 
void setkey (const char *key)
 
void encrypt (char *block, int flag)
 
char * crypt_r (const char *key, const char *setting, struct crypt_data *data)
 
void setkey_r (const char *key, struct crypt_data *data)
 
void encrypt_r (char *block, int flag, struct crypt_data *data)
 

Macro Definition Documentation

◆ CHUNKBITS

#define CHUNKBITS   (1<<LGCHUNKBITS)

Definition at line 227 of file crypt.h.

Referenced by init_perm(), and permute().

◆ KS_SIZE

#define KS_SIZE   16

Definition at line 232 of file crypt.h.

◆ LGCHUNKBITS

#define LGCHUNKBITS   2

Definition at line 226 of file crypt.h.

Referenced by init_perm().

◆ SIZEOF_CRYPT_DATA

#define SIZEOF_CRYPT_DATA   (KS_SIZE*8+(1+4+4+11+1))

Definition at line 240 of file crypt.h.

◆ STATIC

#define STATIC   static

Definition at line 84 of file crypt.h.

Referenced by permute().

Function Documentation

◆ crypt()

char* crypt ( const char *  key,
const char *  setting 
)

◆ crypt_r()

char* crypt_r ( const char *  key,
const char *  setting,
struct crypt_data data 
)

Definition at line 396 of file crypt.c.

References C_block::b.

◆ encrypt()

void encrypt ( char *  block,
int  flag 
)

◆ encrypt_r()

void encrypt_r ( char *  block,
int  flag,
struct crypt_data data 
)

Definition at line 835 of file crypt.c.

References C_block::b.

◆ setkey()

void setkey ( const char *  key)

Referenced by init_perm().

◆ setkey_r()

void setkey_r ( const char *  key,
struct crypt_data data 
)

Definition at line 807 of file crypt.c.

References C_block::b.

Referenced by init_perm().