Bug 348221 - Port sharutils to use NSS library for cryptography
Port sharutils to use NSS library for cryptography
Status: ASSIGNED
Product: Fedora
Classification: Fedora
Component: sharutils (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Petr Pisar
Fedora Extras Quality Assurance
: FutureFeature
Depends On:
Blocks: CryptoConsolidation
  Show dependency treegraph
 
Reported: 2007-10-23 06:23 EDT by Peter Vrabec
Modified: 2010-06-03 12:58 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Peter Vrabec 2007-10-23 06:23:02 EDT
sharutils should be ported to use NSS library for cryptography.
See the tracking bug for details and links on how it could be done.
Comment 1 Fedora Admin XMLRPC Client 2010-06-03 05:31:12 EDT
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.
Comment 2 Petr Pisar 2010-06-03 10:26:50 EDT
AFAIK, sharutils utilizes `md5sum' and `sum' tools from coreutils and it does not perform any other cryptographic operations.

Am I right?

If I'm, then this issue should be addressed to coreutils component.
Comment 3 Tomas Mraz 2010-06-03 11:58:15 EDT
I don't think so. It contains the source of MD-5 algorithm directly and it seems to call it.
Comment 4 Petr Pisar 2010-06-03 12:58:49 EDT
You are right. It uses lib/md5.* while creating archive if MD-5 summing is not disabled (default behavior):

src/shar.c:180:static int md5_count_mode = 1;
src/shar.c:694:  if (md5_count_mode)
src/shar.c:1678:      if (   md5_count_mode
src/shar.c:1680:	  && md5_stream (fp, md5buffer) == 0)
src/shar.c:1687:		   SM_md5_check_failed, here_delimiter);
src/shar.c:2064:      {"no-md5-digest", no_argument, &md5_count_mode, 0},
src/shar.c:2114:	md5_count_mode = 0;
src/shar.c:2323:      md5_count_mode = 0;

Thanks for pointing. I will try to rewrite the code in unspecified future (no experience with NSS).

Note You need to log in before you can comment on or make changes to this bug.