Re: How are md5.h: pg_md5_hash() function and below functions working?

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Ali Koca <kinetixcicocuk(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: How are md5.h: pg_md5_hash() function and below functions working?
Date: 2022-01-08 16:12:50
Message-ID: 533f71da-16f1-349e-d391-08f048ea27bc@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ali Koca 2022-01-08 18:25:18 Why not used standart SQL commands?
Previous Message Ali Koca 2022-01-08 13:21:59 How are md5.h: pg_md5_hash() function and below functions working?