Re:SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
by shakna on Thursday February 02, 2017 @12:53AM
(#13548432)
> in pure JavaScript implementations
Is not JS cryptography a bad idea?
Re:SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
by angry_octet on Thursday February 02, 2017 @01:14AM
(#13548518)
No JS per se. In browser client side crypto though...
Re:SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
by gcp on Thursday February 02, 2017 @04:01AM
(#13549133)
Harder to defend against timing attacks in JS, which are exactly some of the strongest attacks against modern cryptosystems.
Re:SHA-512 is 1.5x faster than SHA-256 on 64-bit platforms
by angry_octet on Thursday February 02, 2017 @06:11AM
(#13549678)
Do you mean because of the lack of low level control/bit manipulation, vs C/asm, or something else? I would have guessed it was about the same as any interpreted/jitted higher level language (python/php/c#/java).
The difference is also clear in pure JavaScript implementations — JS doesn't have native 64-bit integer operations yet, so SHA-512 is slower there:
Note that since SHA-512 eats 128-byte blocks, while SHA-256 64-byte blocks, hashing very short strings may be faster with SHA-256 even on 64-bit platforms (the same applies to BLAKE2).