Go to the source code of this file.
Classes | |
| 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() |
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) |
| static int | _crypt_output_magic (const char *setting, char *output, int size) |
| char * | php_crypt_blowfish_rn (const char *key, const char *setting, char *output, 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] |
| #define __set_errno | ( | val | ) | errno = (val) |
Definition at line 51 of file crypt_blowfish.c.
| #define BF_ASM 0 |
Definition at line 64 of file crypt_blowfish.c.
| #define BF_body | ( | ) |
Definition at line 533 of file crypt_blowfish.c.
| #define BF_ENCRYPT |
Definition at line 507 of file crypt_blowfish.c.
Definition at line 483 of file crypt_blowfish.c.
| #define BF_N 16 |
Definition at line 72 of file crypt_blowfish.c.
| #define BF_ROUND | ( | L, | |
| R, | |||
| N | |||
| ) |
Definition at line 485 of file crypt_blowfish.c.
Definition at line 377 of file crypt_blowfish.c.
| #define BF_SCALE 0 |
Definition at line 65 of file crypt_blowfish.c.
Definition at line 74 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.
|
static |
Definition at line 790 of file crypt_blowfish.c.
References output(), and utf8::size().
Referenced by php_crypt_blowfish_rn().
|
static |
Definition at line 658 of file crypt_blowfish.c.
References __set_errno, BF_atoi64, BF_body, BF_decode(), BF_encode(), BF_ENCRYPT, BF_init_state, BF_itoa64, BF_magic_w, BF_N, BF_set_key(), BF_swap(), data, flags_by_subtype, i, output(), BF_ctx::S, and utf8::size().
Referenced by php_crypt_blowfish_rn().
|
static |
Definition at line 387 of file crypt_blowfish.c.
References BF_safe_atoi64, dst, utf8::size(), and src.
Referenced by BF_crypt().
|
static |
Definition at line 418 of file crypt_blowfish.c.
References BF_itoa64, dst, utf8::size(), and src.
Referenced by BF_crypt().
|
static |
Definition at line 552 of file crypt_blowfish.c.
References BF_init_state, BF_N, i, and BF_ctx::P.
Referenced by BF_crypt(), and php_crypt_blowfish_rn().
|
static |
Definition at line 450 of file crypt_blowfish.c.
Referenced by BF_crypt().
| char* php_crypt_blowfish_rn | ( | const char * | key, |
| const char * | setting, | ||
| char * | output, | ||
| int | size | ||
| ) |
Definition at line 825 of file crypt_blowfish.c.
References __set_errno, _crypt_output_magic(), BF_crypt(), BF_set_key(), flags_by_subtype, output(), p, s, and utf8::size().
Referenced by utils::bcrypt::hash_pw().
|
static |
Definition at line 368 of file crypt_blowfish.c.
Referenced by BF_crypt().
|
static |
Definition at line 93 of file crypt_blowfish.c.
Referenced by BF_crypt(), and BF_set_key().
|
static |
Definition at line 365 of file crypt_blowfish.c.
Referenced by BF_crypt(), and BF_encode().
|
static |
Definition at line 85 of file crypt_blowfish.c.
Referenced by BF_crypt().
|
static |
Definition at line 654 of file crypt_blowfish.c.
Referenced by BF_crypt(), and php_crypt_blowfish_rn().