]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(crypto): avoid using struct mbedtls_pk_rsassa_pss_options
authorGovindraj Raja <govindraj.raja@arm.com>
Fri, 3 Feb 2023 11:08:00 +0000 (11:08 +0000)
committerGovindraj Raja <govindraj.raja@arm.com>
Tue, 21 Feb 2023 11:09:47 +0000 (11:09 +0000)
commit47c7171348d70c2d369363c247d74f954e3b778d
treee5412a3f57d1488231a99ae2a030023c3c118ff7
parenta8eadc51a32a30fceb64f534c378ba66b876e026
refactor(crypto): avoid using struct mbedtls_pk_rsassa_pss_options

In preparation for supporting mbedtls 3.3, usage of
mbedtls_pk_rsassa_pss_options[1] is made private and is broken on 3.3

However looking closely into the usage in 'verify_signature' function
is no hard reason behind usage of this struct and they could be easily
replaced with independent variables.

This Minor refactor to avoid using the struct mbedtls_pk_rsassa_pss_options
and use independent variable will provide compatibility with both 2.x
and 3.x

[1]: https://github.com/Mbed-TLS/mbedtls/issues/7040

Change-Id: If0107d860d11d13cba7fd5d7941e7142e70c7b11
Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
drivers/auth/cryptocell/712/cryptocell_crypto.c
drivers/auth/cryptocell/713/cryptocell_crypto.c