]> git.ipfire.org Git - thirdparty/openssl.git/commit
Allow group methods to customize initialization for speed
authorWatson Ladd <watsonbladd@gmail.com>
Tue, 21 Nov 2023 17:59:05 +0000 (12:59 -0500)
committerTomas Mraz <tomas@openssl.org>
Wed, 5 Jun 2024 09:11:52 +0000 (11:11 +0200)
commit23b6ef4894679aa0278c93de29007d1e695856ee
treeaedd9306e78f9d2d2819f2ae206aad91753858ee
parent0e2567d7293d3204de66acca0ed55bda4f0c0768
Allow group methods to customize initialization for speed

This commit also adds an implementation for P256 that avoids some
expensive initialization of Montgomery arithmetic structures in favor
of precomputation. Since ECC groups are not always cached by higher
layers this brings significant savings to TLS handshakes.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22746)
CHANGES.md
crypto/bn/bn_mont.c
crypto/ec/ec_curve.c
crypto/ec/ec_local.h
crypto/ec/ecp_nistz256.c
include/crypto/bn.h
test/ec_internal_test.c