asm-hashes
asm-hashes copied to clipboard
Assembly implementations of cryptographic hash functions
* env ``` CC_x86_64-pc-windows-gnu = "x86_64-w64-mingw32-gcc" ``` * toolchain `stable-x86_64-pc-windows-gnu` ``` $: rustc --version rustc 1.78.0 (9b00956e5 2024-04-29) $: x86_64-w64-mingw32-gcc --version x86_64-w64-mingw32-gcc.exe (x86_64-win32-seh-rev0, Built by MinGW-W64 project) 8.1.0 Copyright (C)...
We do not support MSVC targets and even compiling for GNU toolchain results in incorrect code, so raising explicit compilation errors for Windows targets looks like the best solution for...
MSVC support
Output of `cargo run --release` in a project using md5-asm via md-5: ``` Compiling md5-asm v0.4.3 The following warnings were emitted during compilation: warning: cl : Command line warning D9024...
env: Windows 10 x86_64, Rust nightly-gnu [rustc 1.55.0-nightly (539d7bd39 2021-06-14)] ``` ❯ cargo +nightly-gnu bench -vvv Fresh cc v1.0.61 Fresh md5-asm v0.5.0 (C:\workspace\repos\github.com\RustCrypto\asm-hashes\md5) Finished bench [optimized] target(s) in 0.04s Running...
I recently noticed that @nayuki , the author of some of the assembler code used in this crate, has published performance-improved versions of their code at https://github.com/nayuki/Nayuki-web-published-code/tree/master/fast-sha2-hashes-in-x86-assembly in 2024. The...
While looking into #82, I realized that the assembly code for fast sha512 calculations on x64 does not make use of modern instruction sets such as AVX, AVX2 or BMI2....