xxHash icon indicating copy to clipboard operation
xxHash copied to clipboard

Register for HTTP Digest

Open maartenbrock opened this issue 2 years ago • 3 comments

Hi,

Are you working on getting xxHash registered as an HTTP Digest hash algorithm? See also: https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-digest-headers

maartenbrock avatar Apr 24 '23 15:04 maartenbrock

Interesting ! I wasn't aware of this draft, unfortunately. No idea where to engage this discussion, but it probably starts with at least one clear use case (or more) that would benefit from xxhash as an HTTP Digest.

Cyan4973 avatar Apr 24 '23 16:04 Cyan4973

Based on Section 5's description of the registration criteria, we could register xxHash even though it is not cryptographically secure or standardized in an RFC.

@vanmierlo, do you have a use case where you would use xxhash in this way? Do you have a client or server in which you would implement it?

felixhandte avatar Apr 25 '23 17:04 felixhandte

Yes, I'm constructing a json-rpc server on an ARMv7 with NEON support that also accepts large uploaded data files for which I would like to use an efficient hash for checking file integrity. But more generically, if HTTP sees a use for using hashes as digests then using the most efficient algorithm seems only logical. I understand that they support MD5 and SHA1 for legacy reasons, but I need more speed which xxHash provides. xxHash is faster than all supported algorithms. And of the insecure algorithms only SHA1 has more bits in its digest than XXH3-128.

maartenbrock avatar Apr 25 '23 21:04 maartenbrock