From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ali Koca <kinetixcicocuk@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How are md5.h: pg_md5_hash() function and below functions working?
Date: Sat, 8 Jan 2022 08:12:50 -0800
Message-ID: <533f71da-16f1-349e-d391-08f048ea27bc@aklaver.com> (raw)
In-Reply-To: <f275e35f-2f0b-6b7f-2522-3dda2a0ffd24@gmail.com>
References: <f275e35f-2f0b-6b7f-2522-3dda2a0ffd24@gmail.com>
On 1/8/22 05:21, Ali Koca wrote:
> I can't understand functions in md5.h, these are seemingly little bit
> weird. Such as:
>
> /* Utilities common to all the MD5 implementations,
> as of md5_common.c */
> extern bool pg_md5_hash(const void *buff, size_t len, char *hexsum);
> extern bool pg_md5_binary(const void *buff, size_t len, void *outbuf);
> extern bool pg_md5_encrypt(const char *passwd, const char *salt,
> size_t salt_len, char *buf);
>
>
What they do is explained in md5_common.c.
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, kinetixcicocuk@gmail.com
Subject: Re: How are md5.h: pg_md5_hash() function and below functions working?
In-Reply-To: <533f71da-16f1-349e-d391-08f048ea27bc@aklaver.com>
References: <f275e35f-2f0b-6b7f-2522-3dda2a0ffd24@gmail.com> <533f71da-16f1-349e-d391-08f048ea27bc@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox