mbox series

[0/2] ima-evm-utils: rebase of digest algo resolving

Message ID 20190323014152.14701-1-vt@altlinux.org (mailing list archive)
Headers show
Series ima-evm-utils: rebase of digest algo resolving | expand

Message

Vitaly Chikunov March 23, 2019, 1:41 a.m. UTC
This is rebase of the ima-evm-utils commits:

  0267fa1 ima-evm-utils: Try to load digest by its alias
  942d9f9 ima-evm-utils: Extract digest algorithms from hash_info.h

and should be applied over 07d799c ("ima-evm-utils: Preload OpenSSL
engine via '--engine' option").

Changes:

* ima-evm-utils: Extract digest algorithms from hash_info.h
- algocmp is removed.
- `hash_info.h` is parsed better to match algo names in the Kernel,
  thus simple strcmp could be used.

* ima-evm-utils: try to load digest by its alias
- digest name lookup is simplified by removing get_digestbyname
  and strmatch helpers.
- Kernel and OpenSSL algo names arrays are introduced to support
  alternative algo names for older OpenSLL.


*** BLURB HERE ***

Vitaly Chikunov (2):
  ima-evm-utils: Extract digest algorithms from hash_info.h
  ima-evm-utils: try to load digest by its alias

 configure.ac      |  6 ++++++
 src/Makefile.am   |  6 ++++++
 src/hash_info.gen | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 src/libimaevm.c   | 35 ++++++++++++++++++++++++++++++++++-
 4 files changed, 95 insertions(+), 1 deletion(-)
 create mode 100755 src/hash_info.gen