[erlang-questions] CRC32c in Erlang?

Gulyás Attila toraritte@REDACTED
Wed Jul 24 18:19:20 CEST 2019


CRC32 and CRC32c are not the same.

[1] https://stackoverflow.com/questions/26429360/crc32-vs-crc32c
[2] https://cloud.google.com/storage/docs/hashes-etags#_CRC32C

Thomas Cioppettini did a lot of work collecting info in Cowboy issue #1340,
and also did an Erlang and Elixir implementation in a Github gist.

[3] https://github.com/ninenines/cowboy/issues/1340
[4] https://gist.github.com/tomciopp/2d174f3960b6386e86167268b1a9875d

Found Erlang NIF bindings (seem to be forked from the same root):

[5] https://github.com/zmstone/crc32cer
[6] https://github.com/voluntas/crc32c


On Wed, Aug 1, 2018 at 9:27 AM Stanislaw Klekot <erlang.org@REDACTED>
wrote:

> On Wed, Aug 01, 2018 at 06:38:13PM +0300, pablo platt wrote:
> > Is there CRC32c implementation in Erlang?
> > It's required for SCTP checksum [1].
> > I only found NIF bindings but I prefer native Erlang implementation if
> > exists.
>
> You mean, something like erlang:crc32/1 and erlang:crc32/2?
>
> --
> Stanislaw Klekot
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190724/ad02cdef/attachment.htm>


More information about the erlang-questions mailing list