Bug 1371383 - RFE: scrypt rfc7914 addition to NSS
Summary: RFE: scrypt rfc7914 addition to NSS
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nss
Version: 7.2
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: 7.5
Assignee: Bob Relyea
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 1468074
TreeView+ depends on / blocked
 
Reported: 2016-08-30 06:27 UTC by wibrown@redhat.com
Modified: 2017-07-06 00:27 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1468074 (view as bug list)
Environment:
Last Closed: 2017-07-06 00:27:59 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 1373733 0 None None None 2019-02-06 09:26:35 UTC

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.


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