Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is HighwayHash available for Java? #72

Closed
kant111 opened this issue Sep 11, 2018 · 3 comments
Closed

Is HighwayHash available for Java? #72

kant111 opened this issue Sep 11, 2018 · 3 comments

Comments

@kant111
Copy link

kant111 commented Sep 11, 2018

Is sha256 highwayhash available for Java? any benchmarks compared C or C++ counterpart?

@jan-wassenberg
Copy link
Member

Hi, the Java port does indeed support 256-bit HWH.

@kant111
Copy link
Author

kant111 commented Sep 11, 2018

Thanks! I tried it and I got 2X more performance than Java's MessageDigest for sha256 on 2.5 GHz Intel Core i7.

My data size is 2KB and the performance numbers are as follows:

HighWayHash hash256: 225MB/sec
MessageDigest SHA-256: 115MB/sec

I read here that highway hash should not be used if strong collision resistance is required.

so I am wondering if there is a Java library similar to this that can leverage SSE or AVX instructions?

@Bulat-Ziganshin
Copy link

HWH isn't a cryptographic hash, so it's not director competitor of SHA.

Use HWH if you just need sort of CRC32, but wider.

@kant111 kant111 closed this as completed Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants