bitwiseshiftleft / sjcl

Stanford Javascript Crypto Library
http://bitwiseshiftleft.github.com/sjcl/
Other
7.18k stars 986 forks source link

the sjcl.misc.hkdf is not a function #396

Open qingyang-id opened 5 years ago

qingyang-id commented 5 years ago

The sjcl.misc.hkdf is not a function, what should i do?

thanks for first

athanclark commented 4 years ago

@yqsailor I "worked around" this by discovering the following:

  1. there is no --with-hkdf target available to ./configure
  2. you can manually add it by including core/hkdf.js to the SOURCES= ... variable in config.mk
  3. test/hkdf*.js are not included in make test
  4. you can manually run the test (first, running make after fixing step 2) by issuing the following command:
node test/run_tests_node.js sjcl.js browserTest/nodeUtil.js test/test.js test/hkdf_vectors.js test/hkdf_test.js

My tests worked, so I'm pretty happy with that.

@bitwiseshiftleft Are there plans to support hkdf in future releases?