From patchwork Sat Mar 23 01:41:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitaly Chikunov X-Patchwork-Id: 10866691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 03D71139A for ; Sat, 23 Mar 2019 01:42:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA93B2A908 for ; Sat, 23 Mar 2019 01:42:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDB3F2A970; Sat, 23 Mar 2019 01:42:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 813982A908 for ; Sat, 23 Mar 2019 01:42:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727599AbfCWBmG (ORCPT ); Fri, 22 Mar 2019 21:42:06 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:58102 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbfCWBmG (ORCPT ); Fri, 22 Mar 2019 21:42:06 -0400 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id C24BE72CCAC; Sat, 23 Mar 2019 04:42:04 +0300 (MSK) Received: from beacon.altlinux.org (unknown [185.6.174.98]) by imap.altlinux.org (Postfix) with ESMTPSA id 9CB004A4A16; Sat, 23 Mar 2019 04:42:04 +0300 (MSK) From: Vitaly Chikunov To: Mimi Zohar , Dmitry Kasatkin , linux-integrity@vger.kernel.org Subject: [PATCH 0/2] ima-evm-utils: rebase of digest algo resolving Date: Sat, 23 Mar 2019 04:41:50 +0300 Message-Id: <20190323014152.14701-1-vt@altlinux.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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