|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Data Structures | |
| struct | PGP_CFB |
Typedefs | |
| typedef int(* | mix_data_t) (PGP_CFB *ctx, const uint8 *data, int len, uint8 *dst) |
Functions | |
| int | pgp_cfb_create (PGP_CFB **ctx_p, int algo, const uint8 *key, int key_len, int resync, uint8 *iv) |
| void | pgp_cfb_free (PGP_CFB *ctx) |
| static int | mix_encrypt_normal (PGP_CFB *ctx, const uint8 *data, int len, uint8 *dst) |
| static int | mix_decrypt_normal (PGP_CFB *ctx, const uint8 *data, int len, uint8 *dst) |
| static int | mix_encrypt_resync (PGP_CFB *ctx, const uint8 *data, int len, uint8 *dst) |
| static int | mix_decrypt_resync (PGP_CFB *ctx, const uint8 *data, int len, uint8 *dst) |
| static int | cfb_process (PGP_CFB *ctx, const uint8 *data, int len, uint8 *dst, mix_data_t mix_data) |
| int | pgp_cfb_encrypt (PGP_CFB *ctx, const uint8 *data, int len, uint8 *dst) |
| int | pgp_cfb_decrypt (PGP_CFB *ctx, const uint8 *data, int len, uint8 *dst) |
|
static |
Definition at line 197 of file pgp-cfb.c.
References PGP_CFB::block_no, PGP_CFB::block_size, PGP_CFB::ciph, data, PGP_CFB::encbuf, PGP_CFB::fr, PGP_CFB::fre, len, PGP_CFB::pos, and px_cipher_encrypt.
Referenced by pgp_cfb_decrypt(), and pgp_cfb_encrypt().
Definition at line 105 of file pgp-cfb.c.
References data, PGP_CFB::encbuf, PGP_CFB::fre, i, len, and PGP_CFB::pos.
Referenced by pgp_cfb_decrypt().
Definition at line 157 of file pgp-cfb.c.
References PGP_CFB::block_no, PGP_CFB::block_size, data, PGP_CFB::encbuf, PGP_CFB::fr, PGP_CFB::fre, i, len, and PGP_CFB::pos.
Referenced by pgp_cfb_decrypt().
Definition at line 94 of file pgp-cfb.c.
References data, PGP_CFB::encbuf, PGP_CFB::fre, i, len, and PGP_CFB::pos.
Referenced by pgp_cfb_encrypt().
Definition at line 125 of file pgp-cfb.c.
References PGP_CFB::block_no, PGP_CFB::block_size, data, PGP_CFB::encbuf, PGP_CFB::fr, PGP_CFB::fre, i, len, and PGP_CFB::pos.
Referenced by pgp_cfb_encrypt().
| int pgp_cfb_create | ( | PGP_CFB ** | ctx_p, |
| int | algo, | ||
| const uint8 * | key, | ||
| int | key_len, | ||
| int | resync, | ||
| uint8 * | iv | ||
| ) |
Definition at line 52 of file pgp-cfb.c.
References PGP_CFB::block_size, PGP_CFB::ciph, PGP_CFB::fr, sort-test::key, palloc0(), pgp_load_cipher(), px_cipher_block_size, px_cipher_free, px_cipher_init, and PGP_CFB::resync.
Referenced by decrypt_key(), encrypt_init(), parse_symenc_data(), parse_symenc_mdc_data(), process_secret_key(), and symencrypt_sesskey().
Definition at line 260 of file pgp-cfb.c.
References cfb_process(), data, len, mix, mix_decrypt_normal(), mix_decrypt_resync(), and PGP_CFB::resync.
Referenced by decrypt_key(), and decrypt_read().
Definition at line 252 of file pgp-cfb.c.
References cfb_process(), data, len, mix, mix_encrypt_normal(), mix_encrypt_resync(), and PGP_CFB::resync.
Referenced by encrypt_process(), and symencrypt_sesskey().
| void pgp_cfb_free | ( | PGP_CFB * | ctx | ) |
Definition at line 83 of file pgp-cfb.c.
References PGP_CFB::ciph, pfree(), px_cipher_free, and px_memset().
Referenced by decrypt_key(), encrypt_free(), parse_symenc_data(), parse_symenc_mdc_data(), process_secret_key(), and symencrypt_sesskey().