Skip to content

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

Merged
warner merged 11 commits intomasterfrom
hkdf
May 12, 2016
Merged

change password-to-scalar and seed-to-arbitrary-element functions#6
warner merged 11 commits intomasterfrom
hkdf

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