Commit Graph

1 Commits

Author SHA1 Message Date
Eugene Syromiatnikov 2e8a3d3e9d Add array memory allocation routines
Such routines allow alleviating the need to perform explicit integer
overflow check during allocation size calculation and generally make
the allocations more semantic (as they signify that a collection
of NUM items, each occupying SIZE bytes), which paves the road
for additional correctness checks in the future.

The routines are implemented in a separate file and then include in both
the core and the FIPS provider, as their current implementation as mere
wrappers for existing allocation routines doesn't warrant creation
of new core APIs at this point.

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
2025-07-31 15:47:20 +02:00