]> git.ipfire.org Git - thirdparty/openssl.git/commit
Use generated param decoders in SHA provider
authorSimo Sorce <simo@redhat.com>
Mon, 20 Oct 2025 22:46:45 +0000 (18:46 -0400)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 12 Dec 2025 08:08:34 +0000 (09:08 +0100)
commita95faeb567115d0d353ac408e79396aaa8a678ec
tree660f10d14b8eff05161e0e7f152dbe9eb5011c85
parentb760334f8f10487f972b321069b1c928b9996b0d
Use generated param decoders in SHA provider

Refactor the SHA provider's context parameter handling in sha2_prov.c to use
the generated parameter decoder framework.

This change replaces manual parameter lookups using `OSSL_PARAM_locate` and
static `OSSL_PARAM` arrays with generated decoder functions and structs. A new
template, `sha2_prov.inc.in`, is added to create the necessary decoders during
the build.

This simplifies the code, reduces boilerplate, and improves type safety.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28837)
.gitignore
build.info
providers/implementations/digests/sha2_prov.c
providers/implementations/digests/sha2_prov.inc.in [new file with mode: 0644]