Welcome! Log In Create A New Profile

Advanced

Re: [patch]: document SHA-2 support in glibc crypt()

Leonid Evdokimov
October 09, 2017 04:20PM
On Mon, Oct 09, 2017 at 10:44:11PM +0300, Maxim Dounin wrote:
> All crypt() schemes available on a particular OS are supported, and
> this is what is written in the above paragraph.

I added that note to provide disambiguation that actual libc crypt() is
used, I was under assumption that some only "plain old crypt()" is
actually supported (like DES one) as the example does not refer to
system crypt(), but refers to openssl and htpasswd. I was unaware of
platform crypt() call till I have actually looked at the source code :)

> It is not clear why to document $5$ and $6$ explicitly.

That's just an example. These two are documented in crypt(3) manpage:
MD5-based $1$ is already documented and $2a$ is not available in
"default" build of glibc.

> (Also, it might not be a good idea to actually use $5$ and especially
> $6$ crypt schemes for web authentication, as crypt() is needed for
> each request, and these schemes are quite CPU intensive.)

Yep, that's true, that's 5000 rounds of SHA-2 and that's ~2..3ms of CPU
time per request.

--
WBRBW, Leonid Evdokimov, xmpp:leon@darkk.net.ru http://darkk.net.ru tel:+79816800702
PGP: 6691 DE6B 4CCD C1C1 76A0 0D4A E1F2 A980 7F50 FAB2
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[patch]: document SHA-2 support in glibc crypt()

Leonid Evdokimov 419 October 09, 2017 01:46PM

Re: [patch]: document SHA-2 support in glibc crypt()

Maxim Dounin 160 October 09, 2017 03:46PM

Re: [patch]: document SHA-2 support in glibc crypt()

Leonid Evdokimov 182 October 09, 2017 04:20PM

Re: [patch]: document SHA-2 support in glibc crypt()

Maxim Dounin 232 October 10, 2017 01:30PM

Re: [patch]: document SHA-2 support in glibc crypt()

Leonid Evdokimov 184 February 13, 2018 07:10AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready