summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa
diff options
context:
space:
mode:
authorjsing <>2023-07-02 13:11:23 +0000
committerjsing <>2023-07-02 13:11:23 +0000
commit1f763186de570f92a5cbf045453f0f71f5e1f9ff (patch)
tree085e6a450eaeaa483d6aff7b5ab2534db11035e3 /src/lib/libcrypto/ecdsa
parent7029728cfe23ff5ba2d324c24ad7f3147408f92c (diff)
downloadopenbsd-1f763186de570f92a5cbf045453f0f71f5e1f9ff.tar.gz
openbsd-1f763186de570f92a5cbf045453f0f71f5e1f9ff.tar.bz2
openbsd-1f763186de570f92a5cbf045453f0f71f5e1f9ff.zip
Replace bn_sqr_words() with bn_sqr_add_words().
In order to implement efficient squaring, we compute the sum of products (omitting the squares), double the sum of products and then finally compute and add in the squares. However, for reasons unknown the final calculation was implemented as two separate steps. Replace bn_sqr_words() with bn_sqr_add_words() such that we do the computation in one step, avoid the need for temporary BN and remove needless overhead. This gives us a performance gain across most architectures (even with the loss of sse2 on i386, for example). ok tb@
Diffstat (limited to 'src/lib/libcrypto/ecdsa')
0 files changed, 0 insertions, 0 deletions