summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_sign.c
diff options
context:
space:
mode:
authorjsing <>2023-02-09 09:16:26 +0000
committerjsing <>2023-02-09 09:16:26 +0000
commit270a7fa5b0dcd84c8c8239f5abd043cfd7498ab6 (patch)
treeb8c6b193fe42cb99a80bb8f15b6b256747170588 /src/lib/libcrypto/dsa/dsa_sign.c
parent8682251898e9d78e4b4fb68e97615ae3edc97fc4 (diff)
downloadopenbsd-270a7fa5b0dcd84c8c8239f5abd043cfd7498ab6.tar.gz
openbsd-270a7fa5b0dcd84c8c8239f5abd043cfd7498ab6.tar.bz2
openbsd-270a7fa5b0dcd84c8c8239f5abd043cfd7498ab6.zip
Clean up bn_sqr_words()
Currently there are two versions of bn_sqr_words(), which call the sqr or sqr64 macro. Replace this with a single version that calls bn_umul_hilo() and remove the various implementations of the sqr macro. The only slight downside is that sqr64 does three multiplications instead of four, given that the second and third terms are identical. However, this is a minimal gain for the amount of duplication and entanglement it introduces. ok tb@
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_sign.c')
0 files changed, 0 insertions, 0 deletions