|
jabberd2
2.6.1
|
Go to the source code of this file.
Data Structures | |
| struct | BF_ctx |
Macros | |
| #define | __set_errno(val) errno = (val) |
| #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(), _crypt_retval_magic(), and BF_crypt().
| #define BF_SCALE 0 |
Definition at line 60 of file crypt_blowfish.c.
| #define BF_N 16 |
Definition at line 67 of file crypt_blowfish.c.
Referenced by BF_crypt(), and BF_set_key().
| #define BF_safe_atoi64 | ( | dst, | |
| src | |||
| ) |
Definition at line 372 of file crypt_blowfish.c.
Referenced by BF_decode().
| #define BF_INDEX | ( | S, | |
| i | |||
| ) | (*((BF_word *)(((unsigned char *)S) + (i)))) |
Definition at line 470 of file crypt_blowfish.c.
| #define BF_ROUND | ( | L, | |
| R, | |||
| N | |||
| ) |
Definition at line 472 of file crypt_blowfish.c.
| #define BF_ENCRYPT |
Definition at line 494 of file crypt_blowfish.c.
Referenced by BF_crypt().
| #define BF_body | ( | ) |
Definition at line 516 of file crypt_blowfish.c.
Referenced by BF_crypt().
| #define CRYPT_OUTPUT_SIZE (7 + 22 + 31 + 1) |
Definition at line 992 of file crypt_blowfish.c.
Referenced by _crypt_retval_magic(), bcrypt(), crypt_r(), and crypt_ra().
| #define CRYPT_GENSALT_OUTPUT_SIZE (7 + 22 + 1) |
Definition at line 993 of file crypt_blowfish.c.
Referenced by __crypt_gensalt(), and __crypt_gensalt_ra().
| #define __crypt_gensalt_rn crypt_gensalt_rn |
Definition at line 1125 of file crypt_blowfish.c.
Referenced by __crypt_gensalt(), and __crypt_gensalt_ra().
| #define __crypt_gensalt_ra crypt_gensalt_ra |
Definition at line 1126 of file crypt_blowfish.c.
| #define __crypt_gensalt bcrypt_gensalt |
Definition at line 1127 of file crypt_blowfish.c.
| typedef unsigned int BF_word |
Definition at line 63 of file crypt_blowfish.c.
| typedef signed int BF_word_signed |
Definition at line 64 of file crypt_blowfish.c.
Definition at line 69 of file crypt_blowfish.c.
|
static |
Definition at line 381 of file crypt_blowfish.c.
References BF_safe_atoi64.
Referenced by BF_crypt().
|
static |
Definition at line 405 of file crypt_blowfish.c.
References BF_itoa64.
Referenced by _crypt_gensalt_blowfish_rn(), and BF_crypt().
|
static |
Definition at line 437 of file crypt_blowfish.c.
Referenced by BF_crypt().
|
static |
Definition at line 534 of file crypt_blowfish.c.
References BF_N, and BF_ctx::P.
Referenced by _crypt_blowfish_rn(), and BF_crypt().
|
static |
Definition at line 640 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 769 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 804 of file crypt_blowfish.c.
References __set_errno, _crypt_output_magic(), BF_crypt(), BF_set_key(), and flags_by_subtype.
Referenced by _crypt_retval_magic(), 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 869 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 900 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 918 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 953 of file crypt_blowfish.c.
References __set_errno, and _crypt_itoa64.
Referenced by __crypt_gensalt_rn().
|
static |
Definition at line 995 of file crypt_blowfish.c.
References __set_errno.
Referenced by _crypt_retval_magic(), and crypt_ra().
|
static |
Definition at line 1017 of file crypt_blowfish.c.
References __const, __set_errno, _crypt_blowfish_rn(), _crypt_data_alloc(), _crypt_output_magic(), and CRYPT_OUTPUT_SIZE.
| char* crypt_rn | ( | const char * | key, |
| const char * | setting, | ||
| void * | data, | ||
| int | size | ||
| ) |
Definition at line 1096 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 1101 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 1109 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 1116 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 1130 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 1166 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 1187 of file crypt_blowfish.c.
References __crypt_gensalt_rn, and CRYPT_GENSALT_OUTPUT_SIZE.
|
static |
Definition at line 80 of file crypt_blowfish.c.
Referenced by BF_crypt().
|
static |
Definition at line 88 of file crypt_blowfish.c.
|
static |
Definition at line 360 of file crypt_blowfish.c.
Referenced by BF_crypt(), and BF_encode().
|
static |
Definition at line 363 of file crypt_blowfish.c.
Referenced by BF_crypt().
|
static |
Definition at line 636 of file crypt_blowfish.c.
Referenced by _crypt_blowfish_rn(), and BF_crypt().
| unsigned char _crypt_itoa64[64+1] |
Definition at line 897 of file crypt_blowfish.c.
Referenced by __crypt_gensalt_rn(), _crypt_gensalt_extended_rn(), _crypt_gensalt_md5_rn(), and _crypt_gensalt_traditional_rn().
1.8.13