athanclark / purescript-sjcl

Bindings to the Stanford JavaScript Crypto Library
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

HKDF support missing from sjcl #1

Open k0001 opened 4 years ago

k0001 commented 4 years ago

When trying to use Crypto.SJCL.Key.Derivation.HKDF, you get TypeError: sjcl.misc.hkdf is not a function.

This happens with athanclark/sjcl@e6ca43f.

athanclark commented 4 years ago

@k0001 This actually appears to be an issue upstream: https://github.com/bitwiseshiftleft/sjcl/issues/396#issuecomment-627654094

From what I understand, sjcl.js isn't properly configured to include hkdf. However, in that issue, I reported a (somewhat hacky) workaround.