Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change password-to-scalar and seed-to-arbitrary-element functions #6

Merged
merged 11 commits into from
May 12, 2016

Conversation

warner
Copy link
Owner

@warner warner commented May 10, 2016

This includes/fixes/builds-upon work by @eternaleye in #5. It uses the password-to-scalar function proposed in bitwiseshiftleft/sjcl#273 (the finalize-hash function will be updated in a separate patch).

eternaleye and others added 9 commits May 10, 2016 00:29
That makes it match the scalar hasher, reducing the TCB somewhat
This eliminates the last dependency on sha512 in the groups code
* split expandstring() into two functions:
  * expand_password (for password_to_scalar)
  * expand_arbitrary_element_seed (for arbitrary_element)
* change HKDF context_info= for both
  * This should match the proposed SJCL changes, in
    bitwiseshiftleft/sjcl#273
* remove element_hasher= from Group constructor
* change Ed25519 to use the same scheme
@coveralls
Copy link

coveralls commented May 10, 2016

Coverage Status

Coverage decreased (-0.3%) to 95.23% when pulling 3467e1c on hkdf into 94b8009 on master.

@eternaleye
Copy link
Contributor

The changes all look sensible to me; thanks for picking this up!

pypy3 currently implements the equivalent of Python-3.2.5, and we only
support Python-3.3 or higher. This wasn't a problem before, but we now
depend on HKDF (from PyPI), and it uses bytearrays and buffers in a way
that fails on pypy3 (and presumably Python-3.2).
@coveralls
Copy link

coveralls commented May 12, 2016

Coverage Status

Coverage decreased (-0.3%) to 95.23% when pulling 64aeed7 on hkdf into 94b8009 on master.

This uses the SHA256 test vectors from RFC5869, and a copy of hkdf.py
that I wrote a couple years ago, for comparison.
@coveralls
Copy link

coveralls commented May 12, 2016

Coverage Status

Coverage decreased (-0.3%) to 95.23% when pulling eb15e64 on hkdf into 94b8009 on master.

@warner warner merged commit eb15e64 into master May 12, 2016
@warner warner deleted the hkdf branch May 12, 2016 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants