jabberd2
2.3.4
|
Go to the source code of this file.
Data Structures | |
struct | BF_ctx |
Macros | |
#define | __set_errno(val) errno = (val) |
#define | BF_ASM 0 |
#define | BF_SCALE 0 |
#define | BF_N 16 |
#define | BF_safe_atoi64(dst, src) |
#define | BF_INDEX(S, i) (*((BF_word *)(((unsigned char *)S) + (i)))) |
#define | BF_ROUND(L, R, N) |
#define | BF_ENCRYPT |
#define | BF_body() |
#define | CRYPT_OUTPUT_SIZE (7 + 22 + 31 + 1) |
#define | CRYPT_GENSALT_OUTPUT_SIZE (7 + 22 + 1) |
#define | __crypt_gensalt_rn crypt_gensalt_rn |
#define | __crypt_gensalt_ra crypt_gensalt_ra |
#define | __crypt_gensalt bcrypt_gensalt |
Typedefs | |
typedef unsigned int | BF_word |
typedef signed int | BF_word_signed |
typedef BF_word | BF_key[BF_N+2] |
Functions | |
static int | BF_decode (BF_word *dst, const char *src, int size) |
static void | BF_encode (char *dst, const BF_word *src, int size) |
static void | BF_swap (BF_word *x, int count) |
static void | BF_set_key (const char *key, BF_key expanded, BF_key initial, unsigned char flags) |
static char * | BF_crypt (const char *key, const char *setting, char *output, int size, BF_word min) |
int | _crypt_output_magic (const char *setting, char *output, int size) |
char * | _crypt_blowfish_rn (const char *key, const char *setting, char *output, int size) |
char * | _crypt_gensalt_blowfish_rn (const char *prefix, unsigned long count, const char *input, int size, char *output, int output_size) |
char * | _crypt_gensalt_traditional_rn (const char *prefix, unsigned long count, const char *input, int size, char *output, int output_size) |
char * | _crypt_gensalt_extended_rn (const char *prefix, unsigned long count, const char *input, int size, char *output, int output_size) |
char * | _crypt_gensalt_md5_rn (const char *prefix, unsigned long count, const char *input, int size, char *output, int output_size) |
static int | _crypt_data_alloc (void **data, int *size, int need) |
static char * | _crypt_retval_magic (char *retval, const char *setting, char *output, int size) |
char * | crypt_rn (const char *key, const char *setting, void *data, int size) |
char * | crypt_ra (const char *key, const char *setting, void **data, int *size) |
char * | crypt_r (const char *key, const char *setting, void *data) |
char * | bcrypt (const char *key, const char *setting) |
char * | __crypt_gensalt_rn (const char *prefix, unsigned long count, const char *input, int size, char *output, int output_size) |
char * | __crypt_gensalt_ra (const char *prefix, unsigned long count, const char *input, int size) |
char * | __crypt_gensalt (const char *prefix, unsigned long count, const char *input, int size) |
Variables | |
static BF_word | BF_magic_w [6] |
static BF_ctx | BF_init_state |
static unsigned char | BF_itoa64 [64+1] |
static unsigned char | BF_atoi64 [0x60] |
static const unsigned char | flags_by_subtype [26] |
unsigned char | _crypt_itoa64 [64+1] |
#define __set_errno | ( | val | ) | errno = (val) |
Definition at line 51 of file crypt_blowfish.c.
Referenced by __crypt_gensalt_ra(), __crypt_gensalt_rn(), _crypt_blowfish_rn(), _crypt_data_alloc(), _crypt_gensalt_blowfish_rn(), _crypt_gensalt_extended_rn(), _crypt_gensalt_md5_rn(), _crypt_gensalt_traditional_rn(), and BF_crypt().
#define BF_ASM 0 |
Definition at line 64 of file crypt_blowfish.c.
#define BF_SCALE 0 |
Definition at line 65 of file crypt_blowfish.c.
#define BF_N 16 |
Definition at line 72 of file crypt_blowfish.c.
Referenced by BF_crypt(), and BF_set_key().
#define BF_safe_atoi64 | ( | dst, | |
src | |||
) |
Definition at line 377 of file crypt_blowfish.c.
Referenced by BF_decode().
#define BF_INDEX | ( | S, | |
i | |||
) | (*((BF_word *)(((unsigned char *)S) + (i)))) |
Definition at line 475 of file crypt_blowfish.c.
#define BF_ROUND | ( | L, | |
R, | |||
N | |||
) |
Definition at line 477 of file crypt_blowfish.c.
#define BF_ENCRYPT |
Definition at line 499 of file crypt_blowfish.c.
Referenced by BF_crypt().
#define BF_body | ( | ) |
Definition at line 525 of file crypt_blowfish.c.
Referenced by BF_crypt().
#define CRYPT_OUTPUT_SIZE (7 + 22 + 31 + 1) |
Definition at line 1005 of file crypt_blowfish.c.
Referenced by bcrypt(), crypt_r(), and crypt_ra().
#define CRYPT_GENSALT_OUTPUT_SIZE (7 + 22 + 1) |
Definition at line 1006 of file crypt_blowfish.c.
Referenced by __crypt_gensalt(), and __crypt_gensalt_ra().
#define __crypt_gensalt_rn crypt_gensalt_rn |
Definition at line 1138 of file crypt_blowfish.c.
Referenced by __crypt_gensalt(), and __crypt_gensalt_ra().
#define __crypt_gensalt_ra crypt_gensalt_ra |
Definition at line 1139 of file crypt_blowfish.c.
#define __crypt_gensalt bcrypt_gensalt |
Definition at line 1140 of file crypt_blowfish.c.
typedef unsigned int BF_word |
Definition at line 68 of file crypt_blowfish.c.
typedef signed int BF_word_signed |
Definition at line 69 of file crypt_blowfish.c.
Definition at line 74 of file crypt_blowfish.c.
|
static |
Definition at line 386 of file crypt_blowfish.c.
References BF_safe_atoi64.
Referenced by BF_crypt().
|
static |
Definition at line 410 of file crypt_blowfish.c.
References BF_itoa64.
Referenced by _crypt_gensalt_blowfish_rn(), and BF_crypt().
|
static |
Definition at line 442 of file crypt_blowfish.c.
Referenced by BF_crypt().
|
static |
Definition at line 544 of file crypt_blowfish.c.
References BF_N, and BF_ctx::P.
Referenced by _crypt_blowfish_rn(), and BF_crypt().
|
static |
Definition at line 650 of file crypt_blowfish.c.
References __set_errno, BF_atoi64, BF_body, BF_decode(), BF_encode(), BF_ENCRYPT, BF_itoa64, BF_magic_w, BF_N, BF_set_key(), BF_swap(), flags_by_subtype, and BF_ctx::S.
Referenced by _crypt_blowfish_rn().
int _crypt_output_magic | ( | const char * | setting, |
char * | output, | ||
int | size | ||
) |
Definition at line 782 of file crypt_blowfish.c.
Referenced by _crypt_blowfish_rn(), and _crypt_retval_magic().
char* _crypt_blowfish_rn | ( | const char * | key, |
const char * | setting, | ||
char * | output, | ||
int | size | ||
) |
Definition at line 817 of file crypt_blowfish.c.
References __set_errno, _crypt_output_magic(), BF_crypt(), BF_set_key(), and flags_by_subtype.
Referenced by crypt_ra(), and crypt_rn().
char* _crypt_gensalt_blowfish_rn | ( | const char * | prefix, |
unsigned long | count, | ||
const char * | input, | ||
int | size, | ||
char * | output, | ||
int | output_size | ||
) |
Definition at line 882 of file crypt_blowfish.c.
References __set_errno, and BF_encode().
Referenced by __crypt_gensalt_rn().
char* _crypt_gensalt_traditional_rn | ( | const char * | prefix, |
unsigned long | count, | ||
const char * | input, | ||
int | size, | ||
char * | output, | ||
int | output_size | ||
) |
Definition at line 913 of file crypt_blowfish.c.
References __set_errno, and _crypt_itoa64.
Referenced by __crypt_gensalt_rn().
char* _crypt_gensalt_extended_rn | ( | const char * | prefix, |
unsigned long | count, | ||
const char * | input, | ||
int | size, | ||
char * | output, | ||
int | output_size | ||
) |
Definition at line 931 of file crypt_blowfish.c.
References __set_errno, and _crypt_itoa64.
Referenced by __crypt_gensalt_rn().
char* _crypt_gensalt_md5_rn | ( | const char * | prefix, |
unsigned long | count, | ||
const char * | input, | ||
int | size, | ||
char * | output, | ||
int | output_size | ||
) |
Definition at line 966 of file crypt_blowfish.c.
References __set_errno, and _crypt_itoa64.
Referenced by __crypt_gensalt_rn().
|
static |
|
static |
Definition at line 1030 of file crypt_blowfish.c.
References _crypt_output_magic().
char* crypt_rn | ( | const char * | key, |
const char * | setting, | ||
void * | data, | ||
int | size | ||
) |
Definition at line 1109 of file crypt_blowfish.c.
References _crypt_blowfish_rn().
char* crypt_ra | ( | const char * | key, |
const char * | setting, | ||
void ** | data, | ||
int * | size | ||
) |
Definition at line 1114 of file crypt_blowfish.c.
References _crypt_blowfish_rn(), _crypt_data_alloc(), and CRYPT_OUTPUT_SIZE.
char* crypt_r | ( | const char * | key, |
const char * | setting, | ||
void * | data | ||
) |
Definition at line 1122 of file crypt_blowfish.c.
References _crypt_retval_magic(), CRYPT_OUTPUT_SIZE, and crypt_rn().
char* bcrypt | ( | const char * | key, |
const char * | setting | ||
) |
Definition at line 1129 of file crypt_blowfish.c.
References _crypt_retval_magic(), CRYPT_OUTPUT_SIZE, and crypt_rn().
char* __crypt_gensalt_rn | ( | const char * | prefix, |
unsigned long | count, | ||
const char * | input, | ||
int | size, | ||
char * | output, | ||
int | output_size | ||
) |
Definition at line 1143 of file crypt_blowfish.c.
References __set_errno, _crypt_gensalt_blowfish_rn(), _crypt_gensalt_extended_rn(), _crypt_gensalt_md5_rn(), _crypt_gensalt_traditional_rn(), and _crypt_itoa64.
char* __crypt_gensalt_ra | ( | const char * | prefix, |
unsigned long | count, | ||
const char * | input, | ||
int | size | ||
) |
Definition at line 1179 of file crypt_blowfish.c.
References __crypt_gensalt_rn, __set_errno, and CRYPT_GENSALT_OUTPUT_SIZE.
char* __crypt_gensalt | ( | const char * | prefix, |
unsigned long | count, | ||
const char * | input, | ||
int | size | ||
) |
Definition at line 1200 of file crypt_blowfish.c.
References __crypt_gensalt_rn, and CRYPT_GENSALT_OUTPUT_SIZE.
|
static |
Definition at line 85 of file crypt_blowfish.c.
Referenced by BF_crypt().
|
static |
Definition at line 93 of file crypt_blowfish.c.
|
static |
Definition at line 365 of file crypt_blowfish.c.
Referenced by BF_crypt(), and BF_encode().
|
static |
Definition at line 368 of file crypt_blowfish.c.
Referenced by BF_crypt().
|
static |
Definition at line 646 of file crypt_blowfish.c.
Referenced by _crypt_blowfish_rn(), and BF_crypt().
unsigned char _crypt_itoa64[64+1] |
Definition at line 910 of file crypt_blowfish.c.
Referenced by __crypt_gensalt_rn(), _crypt_gensalt_extended_rn(), _crypt_gensalt_md5_rn(), and _crypt_gensalt_traditional_rn().