#include "postgres.h"
#include <openssl/err.h>
#include <openssl/evp.h>
#include "common/cryptohash.h"
#include "common/md5.h"
#include "common/sha1.h"
#include "common/sha2.h"
#include "utils/memutils.h"
#include "utils/resowner.h"
Go to the source code of this file.
Definition at line 42 of file cryptohash_openssl.c.
Definition at line 43 of file cryptohash_openssl.c.
Enumerator | |
---|---|
PG_CRYPTOHASH_ERROR_NONE | |
PG_CRYPTOHASH_ERROR_DEST_LEN | |
PG_CRYPTOHASH_ERROR_NONE | |
PG_CRYPTOHASH_ERROR_DEST_LEN | |
PG_CRYPTOHASH_ERROR_OPENSSL |
Definition at line 50 of file cryptohash_openssl.c.
Definition at line 122 of file cryptohash_openssl.c.
References ALLOC, CurrentResourceOwner, ereport, errcode(), errmsg(), pg_cryptohash_ctx::error, ERROR, pg_cryptohash_ctx::errreason, pg_cryptohash_ctx::evpctx, explicit_bzero(), FREE, PG_CRYPTOHASH_ERROR_NONE, ResourceOwnerEnlarge(), ResourceOwnerRememberCryptoHash(), pg_cryptohash_ctx::resowner, type, and pg_cryptohash_ctx::type.
Definition at line 349 of file cryptohash_openssl.c.
References _, Assert(), pg_cryptohash_ctx::error, pg_cryptohash_ctx::errreason, PG_CRYPTOHASH_ERROR_DEST_LEN, PG_CRYPTOHASH_ERROR_NONE, and PG_CRYPTOHASH_ERROR_OPENSSL.
Definition at line 255 of file cryptohash_openssl.c.
References generate_unaccent_rules::dest, pg_cryptohash_ctx::error, pg_cryptohash_ctx::errreason, pg_cryptohash_ctx::evpctx, len, MD5_DIGEST_LENGTH, PG_CRYPTOHASH_ERROR_DEST_LEN, PG_CRYPTOHASH_ERROR_OPENSSL, PG_MD5, PG_SHA1, PG_SHA224, PG_SHA224_DIGEST_LENGTH, PG_SHA256, PG_SHA256_DIGEST_LENGTH, PG_SHA384, PG_SHA384_DIGEST_LENGTH, PG_SHA512, PG_SHA512_DIGEST_LENGTH, SHA1_DIGEST_LENGTH, SSLerrmessage(), and pg_cryptohash_ctx::type.
Definition at line 326 of file cryptohash_openssl.c.
References pg_cryptohash_ctx::evpctx, explicit_bzero(), FREE, ResourceOwnerForgetCryptoHash(), and pg_cryptohash_ctx::resowner.
Referenced by ResOwnerReleaseCryptoHash().
Definition at line 178 of file cryptohash_openssl.c.
References pg_cryptohash_ctx::error, pg_cryptohash_ctx::errreason, pg_cryptohash_ctx::evpctx, PG_CRYPTOHASH_ERROR_OPENSSL, PG_MD5, PG_SHA1, PG_SHA224, PG_SHA256, PG_SHA384, PG_SHA512, SSLerrmessage(), and pg_cryptohash_ctx::type.
Definition at line 230 of file cryptohash_openssl.c.
References data, pg_cryptohash_ctx::error, pg_cryptohash_ctx::errreason, pg_cryptohash_ctx::evpctx, len, PG_CRYPTOHASH_ERROR_OPENSSL, and SSLerrmessage().
Definition at line 96 of file cryptohash_openssl.c.
References cryptohash_resowner_desc, PointerGetDatum(), and ResourceOwnerForget().
Referenced by pg_cryptohash_free().
Definition at line 91 of file cryptohash_openssl.c.
References cryptohash_resowner_desc, PointerGetDatum(), and ResourceOwnerRemember().
Referenced by pg_cryptohash_create().
Definition at line 383 of file cryptohash_openssl.c.
References DatumGetPointer(), pg_cryptohash_free(), and pg_cryptohash_ctx::resowner.
Definition at line 103 of file cryptohash_openssl.c.
Referenced by pg_cryptohash_final(), pg_cryptohash_init(), and pg_cryptohash_update().
Definition at line 80 of file cryptohash_openssl.c.
Referenced by ResourceOwnerForgetCryptoHash(), and ResourceOwnerRememberCryptoHash().