SHA256 API in RK3568 rkimage deprecated since OpenSSL 3.0

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Apr 19 01:57:05 PDT 2023


Hi,

Just a heads up:

Building barebox rockchip_v8_defconfig on a system with openssl-3.0.8 emits
a couple of deprecation warnings:

  scripts/rkimage.c: In function ‘sha256’:
  rkimage.c:27:9: warning: ‘SHA256_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
     27 |         SHA256_Init(&sha256);
        |         ^~~~~~~~~~~

I think that this would be a good occasion to get rid of the OpenSSL dependency
here. We have a simplified SHA256 API already usable in PBL, so it should be
doable to make this accessible to host tool build like we already do for CRC32.

Cheers,
Ahmad

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list