]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/ec/ecp_nistz256.c: use OPENSSL_aligned_alloc_array
authorEugene Syromiatnikov <esyr@openssl.org>
Mon, 18 Aug 2025 12:32:32 +0000 (14:32 +0200)
committerNeil Horman <nhorman@openssl.org>
Tue, 16 Sep 2025 13:59:13 +0000 (09:59 -0400)
commit1acbaf74ec4bec6340ffb173f2c7f5cb48dd057f
tree7aa9ef125e53b19805593c4ef3d3112eaef59474
parent6c02774fd33d3a65dfcfabfc01778afb48070461
crypto/ec/ecp_nistz256.c: use OPENSSL_aligned_alloc_array

Allocate table in ecp_nistz256_windowed_mul() and preComputedTable
in ecp_nistz256_mult_precompute() using OPENSSL_aligned_alloc_array() call
instead of OPENSSL_malloc with a 64-byte slack and manual pointer alignment
adjustement.

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28295)
crypto/ec/ecp_nistz256.c