|
PostgreSQL Source Code git master
|
#include <sys/param.h>

Go to the source code of this file.
Data Structures | |
| struct | px_digest |
| struct | px_alias |
| struct | px_hmac |
| struct | px_cipher |
| struct | px_combo |
Enumerations | |
| enum | BuiltinCryptoOptions { BC_ON , BC_OFF , BC_FIPS } |
Functions | |
| int | px_find_digest (const char *name, PX_MD **res) |
| int | px_find_hmac (const char *name, PX_HMAC **res) |
| int | px_find_cipher (const char *name, PX_Cipher **res) |
| int | px_find_combo (const char *name, PX_Combo **res) |
| pg_noreturn void | px_THROW_ERROR (int err) |
| const char * | px_strerror (int err) |
| const char * | px_resolve_alias (const PX_Alias *list, const char *name) |
| void | px_set_debug_handler (void(*handler)(const char *)) |
| void | px_memset (void *ptr, int c, size_t len) |
| bool | CheckFIPSMode (void) |
| void | CheckBuiltinCryptoMode (void) |
| void | px_debug (const char *fmt,...) pg_attribute_printf(1 |
Variables | |
| int | builtin_crypto_enabled |
| #define px_md_block_size | ( | md | ) | (md)->block_size(md) |
Definition at line 874 of file openssl.c.
References Assert, BC_FIPS, BC_OFF, BC_ON, builtin_crypto_enabled, CheckFIPSMode(), ereport, errmsg(), and ERROR.
Referenced by px_crypt(), and px_gen_salt().
Definition at line 844 of file openssl.c.
References fb().
Referenced by CheckBuiltinCryptoMode(), and pg_check_fipsmode().
Definition at line 776 of file openssl.c.
References CurrentResourceOwner, fb(), gen_ossl_block_size(), gen_ossl_decrypt(), gen_ossl_encrypt(), gen_ossl_free(), gen_ossl_iv_size(), gen_ossl_key_size(), i, MemoryContextAllocZero(), ossl_cipher_lookup::name, name, ossl_aliases, ossl_cipher_types, palloc_object, pfree(), px_resolve_alias(), PXE_CIPHER_INIT, PXE_NO_CIPHER, ResourceOwnerEnlarge(), ResourceOwnerRememberOSSLCipher(), and TopMemoryContext.
Referenced by pgp_load_cipher(), and px_find_combo().
Definition at line 285 of file px.c.
References buf, combo_decrypt(), combo_decrypt_len(), combo_encrypt(), combo_encrypt_len(), combo_free(), combo_init(), cx(), err(), fb(), name, palloc0_object, parse_cipher_name(), pfree(), pstrdup(), px_cipher_free, px_find_cipher(), and PXE_NO_CIPHER.
Referenced by pg_decrypt(), pg_decrypt_iv(), pg_encrypt(), and pg_encrypt_iv().
Definition at line 161 of file openssl.c.
References px_digest::block_size, CurrentResourceOwner, digest_block_size(), digest_finish(), digest_free(), digest_reset(), digest_result_size(), digest_update(), fb(), px_digest::finish, px_digest::free, MemoryContextAlloc(), name, px_digest::p, palloc_object, pfree(), px_digest::ptr, PXE_CIPHER_INIT, PXE_NO_HASH, px_digest::reset, ResourceOwnerEnlarge(), ResourceOwnerRememberOSSLDigest(), px_digest::result_size, TopMemoryContext, and px_digest::update.
Referenced by pg_digest(), pgp_load_digest(), px_crypt_md5(), px_crypt_shacrypt(), and px_find_hmac().
Definition at line 142 of file px-hmac.c.
References px_hmac::block_size, err(), fb(), px_hmac::finish, px_hmac::free, hmac_block_size(), hmac_finish(), hmac_free(), hmac_init(), hmac_reset(), hmac_result_size(), hmac_update(), px_hmac::init, px_hmac::ipad, px_hmac::md, name, px_hmac::opad, px_hmac::p, palloc(), palloc_object, px_find_digest(), px_md_block_size, px_md_free, PXE_HASH_UNUSABLE_FOR_HMAC, px_hmac::reset, px_hmac::result_size, and px_hmac::update.
Referenced by pg_hmac().
Definition at line 123 of file px.c.
Referenced by _crypt_blowfish_rn(), calc_key_id(), calc_s2k_iter_salted(), calc_s2k_salted(), calc_s2k_simple(), check_key_sha1(), clear_and_pfree(), combo_free(), copy_crlf(), create_secmsg(), encrypt_free(), hmac_finish(), hmac_free(), hmac_init(), mbuf_free(), mdc_finish(), mdc_flush(), mdcbuf_finish(), mdcbuf_free(), pad_eme_pkcs1_v15(), parse_literal_data(), parse_symenc_sesskey(), pgp_cfb_free(), pgp_free(), pgp_key_free(), pgp_mpi_free(), pkt_stream_free(), pktreader_free(), prefix_init(), pullf_free(), pullf_read_max(), pushf_free(), px_crypt_md5(), px_crypt_shacrypt(), px_gen_salt(), write_prefix(), and write_symenc_sesskey().
Definition at line 129 of file px.c.
References name, and pg_strcasecmp().
Referenced by px_find_cipher().
Definition at line 143 of file px.c.
References debug_handler.
Referenced by decrypt_internal(), encrypt_internal(), and init_work().
Definition at line 111 of file px.c.
References error_desc::desc, err(), and px_err_list.
Referenced by find_provider(), pg_decrypt(), pg_decrypt_iv(), pg_encrypt(), pg_encrypt_iv(), pg_gen_salt(), pg_gen_salt_rounds(), and px_THROW_ERROR().
| pg_noreturn void px_THROW_ERROR | ( | int | err | ) |
Definition at line 93 of file px.c.
References ereport, err(), errcode(), errmsg(), ERROR, fb(), px_strerror(), and PXE_NO_RANDOM.
Referenced by decrypt_internal(), encrypt_internal(), init_work(), pg_dearmor(), pg_random_bytes(), pgp_armor_headers(), and pgp_key_id_w().
|
extern |
Definition at line 62 of file pgcrypto.c.
Referenced by _PG_init(), and CheckBuiltinCryptoMode().