]> git.bitcoin.ninja Git - dnssec-prover/commit
Drop 384-bit multiplication impl with `slower_smaller_binary`
authorMatt Corallo <git@bluematt.me>
Thu, 1 Aug 2024 21:35:03 +0000 (21:35 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 1 Aug 2024 22:16:45 +0000 (22:16 +0000)
commitb812447d8e741e6ecb269cf84a3e386f35dcf195
treed485df2e9a8badfe79aa597a6acd35bf4a56c74d
parentc58ffe4684b743e9ae94cc0fe0b426c3e9f85507
Drop 384-bit multiplication impl with `slower_smaller_binary`

...instead using the 512-bit multiplication impl and dropping the
resulting high bytes. This is much slower, but very few zones
actually use secp384r1 so in practice this shouldn't really matter.

This is a less than 5% reduction in performance and reduces code
size for the crypto module from 27.4KiB to 26.7KiB.
src/crypto/bigint.rs