nucypher / nucypher-pre-python

NuCypher proxy re-encryption library in Python
28 stars 15 forks source link

Use SHA512 in HKDF and allow for variable key length output #6

Closed tuxxy closed 7 years ago

tuxxy commented 7 years ago

What this does:

  1. Uses SHA512 ad the HKDF hashing function
  2. Adds an optional param to encapsulate and decapsulate for key_length to determine the output digest size of HKDF. The default is set to 32.
  3. Adds a key_length param to kdf to determine the output digest size of it.