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

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

 



On Sun, 2023-07-16 at 03:37 +0200, Alejandro Colomar wrote:
> 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.

I've sent v2.

-- 
Xi Ruoyao <xry111@xxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University




[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