Bug 1371383

Summary: RFE: scrypt rfc7914 addition to NSS
Product: Red Hat Enterprise Linux 7 Reporter: wibrown <wibrown>
Component: nssAssignee: Bob Relyea <rrelyea>
Status: CLOSED NEXTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.2CC: dueno, hkario, kengert, lucas.yamanishi, nmavrogi, rrelyea, szidek
Target Milestone: rcKeywords: FutureFeature
Target Release: 7.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1468074 (view as bug list) Environment:
Last Closed: 2017-07-06 00:27:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1468074    

Description wibrown@redhat.com 2016-08-30 06:27:30 UTC
Description of problem:

I would like to request the addition of scrypt, rfc7914 [0] to NSS.

Scrypt is designed as a key derivation function, and can be used as a password hashing mechanism. It uses both memory and cpu complexity to avoid hardware acceleration attacks. In many ways, it is similar to pbkdf2. 

The 389 DS project would like to be able to consume an interface similar to that in libscrypt:

int libscrypt_scrypt(const uint8_t *passwd, size_t passwdlen,
        const uint8_t *salt, size_t saltlen, uint64_t N, uint32_t r, 
        uint32_t p, /*@out@*/ uint8_t *buf, size_t buflen);

This way, we do not have a complex procedure to call for password or data hashing, which will lower the risk of an implementation mistake causing a vulnerability. 

[0] https://tools.ietf.org/html/rfc7914

Comment 2 Kai Engert (:kaie) (inactive account) 2016-09-28 21:01:34 UTC
Any enhancement to the set of crypto algorithms supported by NSS will have to be requested and implemented by the upstream NSS development project.

I couldn't fine an upstream bug, so nobody might have requested it yet.

Who would like to file the upstream request?

Bob, are you aware of anyone already working on scrypt at NSS upstream?

Comment 4 Bob Relyea 2016-09-28 22:56:28 UTC
No one is working on scrypt upstream. We would have to file an upstream bug and probably assign someone to it.