bytecodealliance / javy

JS to WebAssembly toolchain
Apache License 2.0
2.06k stars 100 forks source link

Add crypto hmac sha 256 #685

Open ewalk153 opened 1 week ago

ewalk153 commented 1 week ago

Description of the change

Running crypto functions in Javascript quickly runs out of fuel, which rust is must more efficient at the job. This is a wrapper to expose the rust hmac-sha256 implementation to javy user code.

Why am I making this change?

To conserve fuel when running crypto. As a bonus, the crypto function is not left to end users to get right.

Checklist

ewalk153 commented 1 week ago

This code still need a change log entry, on top of any polished suggested during code review.

saulecabrera commented 1 week ago

The cargo vet failures are expected, since you're introducing new dependencies. We can resolve those once we're getting close to merging this one.