RustCrypto / asm-hashes

Assembly implementations of cryptographic hash functions
46 stars 26 forks source link

Avoid clobbering v8-v15 registers #12

Closed linkmauve closed 4 years ago

linkmauve commented 4 years ago

In the AArch64 ABI, v8-v15 are callee-saved, but only their lower 64 bits, which means we were inadvertently overwriting part of their values.

This patch entirely removes the usage of these registers, we have plenty of them to work with!