Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Descriptionwibrown@redhat.com
2016-08-29 22:32:56 UTC
Description of problem:
The current implementation of pbkdf2 in NSS is highly targeted at the encryption key use case, where given a secret, the key is derived.
However, many sites use PBKDF2 for storing hashes of user passwords. This is due to the time factor in "repeating" the hash. This causes any potential attacker with bruteforce or rainbow table to have to expend a huge amount of work to attack the hashes.
Right now, in FIPS mode, NSS cannot be used to create hashes of passwords. Additionally, even in non-FIPS mode, the process is complex, fiddly, and prone to mistake. If the user of the library cannot use it correctly, this adds a potential weakness in the calling application. By having NSS implement this function wrapper as a whole, it can be implemented correctly, it can be verified, and it makes strong password hashing more acceptable to users of the NSS api.
I would like to request that the authors of NSS add an interface such as:
SECStatus pbkdf2_hash(SECItem *salt, SECItem *pass, SECAlgorithmID *algid, PRUint32 rounds, SECItem *result);
Where:
salt is the salt to be combined with the password during hashing.
pass is the password material.
algid contains either SEC_OID_HMAC_SHA256, SEC_OID_HMAC_SHA1 or other relevant hash type.
rounds is the number of iterations of hashing to perform.
result is allocted by the function, containing a buffer of bytes that is the hash output.
The function would return SECStatus to indicate success or failure.
Thanks,