[erlang-questions] SHA-256 + salting
t ty
tty.erlang@REDACTED
Sun May 20 08:46:30 CEST 2007
Well looks like I made a mistake. crypto:sha_init/sha_update/sha_final
deals only with sha1 instead of sha256. To make up for it here are
the patches which would rectify my error. The methods to call are
sha256_init/sha256_update/sha256_final.
Regards
t
On 5/18/07, t ty <tty.erlang@REDACTED> wrote:
> I'm assuming you're applying the salt after the data. Init a context,
> update it with your data, then update with the salt, and finalize.
>
[snip]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.crypto.erl
Type: application/octet-stream
Size: 1807 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070520/ac4e6c23/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.crypto_drv.c
Type: text/x-csrc
Size: 3750 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070520/ac4e6c23/attachment.bin>
More information about the erlang-questions
mailing list