coreboot-kgpe-d16/util/broadcom
Alex Thiessen 00a455c8a7 util/broadcom/secimage: Add OpenSSL 1.1 support
The `secimage` utility uses OpenSSL to calculate HMAC, which it does in
a rather unorthodox way, using deprecated `HMAC_CTX_init` API and
repeated calling of `HMAC_Init_ex` without a clear reason. The former
causes build errors with OpenSSL 1.1 while the rest of the
`HmacSha256Hash` function is confusing and overly complex.

Make `HmacSha256Hash` use a single OpenSSL API call. Test passed:
resulting signed binary remains identical.

Change-Id: Ib23c0ad96f9d8cc30ad357de8c0b0ba967c7d724
Signed-off-by: Alex Thiessen <alex.thiessen.de+coreboot@gmail.com>
Reviewed-on: https://review.coreboot.org/23069
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2018-01-14 23:11:40 +00:00
..
secimage util/broadcom/secimage: Add OpenSSL 1.1 support 2018-01-14 23:11:40 +00:00
Makefile.inc Add newlines at the end of all coreboot files 2016-08-01 21:43:56 +02:00
khmacsha256 broadcom/cygnus: add secimage and sign bootblock 2015-04-22 08:59:18 +02:00
unauth.cfg broadcom/cygnus: add secimage and sign bootblock 2015-04-22 08:59:18 +02:00