[erlang-questions] crypto:hmac/3 using hardware acceleration
Ben Browitt
ben.browitt@REDACTED
Tue May 7 18:19:11 CEST 2019
Profiling my server with eprof show that my app spends most of the time on
crypto:hmac(sha, Key, Data) while crypto:stream_encrypt/2 using aes_ctr is
much faster.
This answer [1] says that HMAC_* routines are software based and don't use
hardware. The hmac nif seems to use them [2].
Is my resolution correct?
Is it possible to use EVP_* functions instead of HMAC_* functions in the
nif?
[1] https://stackoverflow.com/a/20322002
[2] https://github.com/erlang/otp/blob/master/lib/crypto/c_src/hmac.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190507/c92a4616/attachment.htm>
More information about the erlang-questions
mailing list