Re: [PATCH] crypt.3: The library is "libcrypt", not "libcrypto"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2023-07-16 03:18, Xi Ruoyao wrote:
> On Sun, 2023-07-16 at 02:59 +0200, Alejandro Colomar wrote:
>> Hi Xi!
>>
>> On 2023-07-15 20:41, Xi Ruoyao wrote:
>>> libcrypt is the password hashing library, and libcrypto is a
>>> completely
>>> different library (OpenSSL cryptography library).
>>
>> Thanks!  My mistake.
>>
>>>
>>> Signed-off-by: Xi Ruoyao <xry111@xxxxxxxxxxx>
>>> ---
>>>  man3/crypt.3 | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/man3/crypt.3 b/man3/crypt.3
>>> index 1f3e4792e..ad14cb4f7 100644
>>> --- a/man3/crypt.3
>>> +++ b/man3/crypt.3
>>> @@ -20,7 +20,7 @@
>>>  crypt, crypt_r \- password and data encryption
>>>  .SH LIBRARY
>>>  Encryption and decryption library
>>
>> Is the above line accurate, or should we improve it?
> 
> Hmm, I'm not sure.
> 
> This library is only a password hashing library today (and also in UNIX
> 6 :), but when it provided encrypt() function (from UNIX 7 to Glibc
> 2.27) it can really do "encryption and decryption" (in a broken way
> though).

Thanks!

I prefer to be on the safe side when it's about crypto stuff.  Calling
it an encryption library when it should be considered as such, and it's
unsafe as such, is hurting our readers.  I prefer to call it "Hashing
library", after your response.  Feel free to send a patch, or tell me
if you're busy and I'll prepare this one.

> 
> But I guess we can change "password and data encryption" to "password
> hashing", at least.

Agree.  Please send a patch, or ask me to do it myself.

Thanks again!
Alex

> 
>>> -.RI ( libcrypto ", " \-lcrypto )
>>> +.RI ( libcrypt ", " \-lcrypt )
>>
>> I see that another page probably also needs to be fixed.
>> Would you mind fixing it too,if appropriate, in this patch?
> 
> Ah indeed, I didn't catch it.
> 

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux