PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | _PASSWORD_EFMT1 '_' |
Functions | |
static int | ascii_to_bin (char ch) |
static void | des_init (void) |
static void | setup_salt (long salt) |
static int | des_setkey (const char *key) |
static int | do_des (uint32 l_in, uint32 r_in, uint32 *l_out, uint32 *r_out, int count) |
static int | des_cipher (const char *in, char *out, long salt, int count) |
char * | px_crypt_des (const char *key, const char *setting) |
Variables | |
static const char | _crypt_a64 [] |
static uint8 | IP [64] |
static uint8 | inv_key_perm [64] |
static uint8 | u_key_perm [56] |
static uint8 | key_perm [56] |
static uint8 | key_shifts [16] |
static uint8 | inv_comp_perm [56] |
static uint8 | comp_perm [48] |
static uint8 | u_sbox [8][64] |
static uint8 | sbox [8][64] |
static uint8 | un_pbox [32] |
static uint8 | pbox [32] |
static uint32 | _crypt_bits32 [32] |
static uint8 | _crypt_bits8 [8] = {0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01} |
static uint32 | saltbits |
static long | old_salt |
static uint32 * | bits28 |
static uint32 * | bits24 |
static uint8 | init_perm [64] |
static uint8 | final_perm [64] |
static uint32 | en_keysl [16] |
static uint32 | en_keysr [16] |
static uint32 | de_keysl [16] |
static uint32 | de_keysr [16] |
static int | des_initialised = 0 |
static uint8 | m_sbox [4][4096] |
static uint32 | psbox [4][256] |
static uint32 | ip_maskl [8][256] |
static uint32 | ip_maskr [8][256] |
static uint32 | fp_maskl [8][256] |
static uint32 | fp_maskr [8][256] |
static uint32 | key_perm_maskl [8][128] |
static uint32 | key_perm_maskr [8][128] |
static uint32 | comp_maskl [8][128] |
static uint32 | comp_maskr [8][128] |
static uint32 | old_rawkey0 |
static uint32 | old_rawkey1 |
#define _PASSWORD_EFMT1 '_' |
Definition at line 69 of file crypt-des.c.
|
inlinestatic |
|
static |
Definition at line 617 of file crypt-des.c.
References des_init(), des_initialised, do_des(), pg_hton32, pg_ntoh32, and setup_salt().
Referenced by px_crypt_des().
|
static |
Definition at line 221 of file crypt-des.c.
References _crypt_bits32, _crypt_bits8, b, bits24, bits28, comp_maskl, comp_maskr, comp_perm, des_initialised, final_perm, fp_maskl, fp_maskr, i, init_perm, inv_comp_perm, inv_key_perm, IP, ip_maskl, ip_maskr, j, key_perm, key_perm_maskl, key_perm_maskr, m_sbox, old_rawkey0, old_rawkey1, old_salt, pbox, psbox, saltbits, sbox, u_key_perm, u_sbox, and un_pbox.
Referenced by des_cipher(), des_setkey(), and px_crypt_des().
|
static |
Definition at line 396 of file crypt-des.c.
References comp_maskl, comp_maskr, de_keysl, de_keysr, des_init(), des_initialised, en_keysl, en_keysr, sort-test::key, key_perm_maskl, key_perm_maskr, key_shifts, old_rawkey0, old_rawkey1, and pg_ntoh32.
Referenced by px_crypt_des().
Definition at line 483 of file crypt-des.c.
References CHECK_FOR_INTERRUPTS, de_keysl, de_keysr, en_keysl, en_keysr, fp_maskl, fp_maskr, ip_maskl, ip_maskr, m_sbox, psbox, and saltbits.
Referenced by des_cipher(), and px_crypt_des().
char* px_crypt_des | ( | const char * | key, |
const char * | setting | ||
) |
Definition at line 651 of file crypt-des.c.
References _crypt_a64, _PASSWORD_EFMT1, ascii_to_bin(), des_cipher(), des_init(), des_initialised, des_setkey(), do_des(), ereport, errcode(), errmsg(), ERROR, i, sort-test::key, output, setup_salt(), and strlcpy().
Referenced by run_crypt_des().
|
static |
Definition at line 373 of file crypt-des.c.
References i, old_salt, and saltbits.
Referenced by des_cipher(), and px_crypt_des().
|
static |
Definition at line 71 of file crypt-des.c.
Referenced by px_crypt_des().
|
static |
Definition at line 164 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 176 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 181 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 180 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 197 of file crypt-des.c.
Referenced by des_init(), and des_setkey().
|
static |
Definition at line 198 of file crypt-des.c.
Referenced by des_init(), and des_setkey().
|
static |
Definition at line 95 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 186 of file crypt-des.c.
Referenced by des_setkey(), and do_des().
|
static |
Definition at line 187 of file crypt-des.c.
Referenced by des_setkey(), and do_des().
|
static |
Definition at line 188 of file crypt-des.c.
Referenced by des_cipher(), des_init(), des_setkey(), and px_crypt_des().
|
static |
Definition at line 184 of file crypt-des.c.
Referenced by des_setkey(), and do_des().
|
static |
Definition at line 185 of file crypt-des.c.
Referenced by des_setkey(), and do_des().
|
static |
Definition at line 183 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 193 of file crypt-des.c.
Referenced by des_init(), and do_des().
|
static |
Definition at line 194 of file crypt-des.c.
Referenced by des_init(), and do_des().
|
static |
Definition at line 182 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 94 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 81 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 74 of file crypt-des.c.
Referenced by base_yylex_location(), and des_init().
|
static |
Definition at line 191 of file crypt-des.c.
Referenced by des_init(), and do_des().
|
static |
Definition at line 192 of file crypt-des.c.
Referenced by des_init(), and do_des().
|
static |
Definition at line 83 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 195 of file crypt-des.c.
Referenced by des_init(), and des_setkey().
|
static |
Definition at line 196 of file crypt-des.c.
Referenced by des_init(), and des_setkey().
|
static |
Definition at line 90 of file crypt-des.c.
Referenced by des_setkey().
|
static |
Definition at line 189 of file crypt-des.c.
Referenced by des_init(), and do_des().
|
static |
Definition at line 199 of file crypt-des.c.
Referenced by des_init(), and des_setkey().
|
static |
Definition at line 200 of file crypt-des.c.
Referenced by des_init(), and des_setkey().
|
static |
Definition at line 179 of file crypt-des.c.
Referenced by des_init(), and setup_salt().
|
static |
Definition at line 159 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 190 of file crypt-des.c.
Referenced by des_init(), and do_des().
|
static |
Definition at line 178 of file crypt-des.c.
Referenced by des_init(), do_des(), and setup_salt().
|
static |
Definition at line 107 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 82 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 106 of file crypt-des.c.
Referenced by des_init().
|
static |
Definition at line 158 of file crypt-des.c.
Referenced by des_init().