From patchwork Tue Apr 25 01:41:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 98157 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp1738584qgf; Mon, 24 Apr 2017 18:42:06 -0700 (PDT) X-Received: by 10.107.168.230 with SMTP id e99mr12735000ioj.23.1493084526363; Mon, 24 Apr 2017 18:42:06 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p86si16992621ioo.242.2017.04.24.18.42.05; Mon, 24 Apr 2017 18:42:06 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8301060D35; Tue, 25 Apr 2017 01:42:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id B16A060CE2; Tue, 25 Apr 2017 01:42:00 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id F041D60C8B; Tue, 25 Apr 2017 01:41:57 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id DD0B260690 for ; Tue, 25 Apr 2017 01:41:56 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id t144so83118791lff.1 for ; Mon, 24 Apr 2017 18:41:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=lKCJ6S/JIFSDJ+eWdXEzho8zYDNivrkoCSFzaYsVr20=; b=It2KSwOaU53GtbGhL0qGmVBc6tPpxD+rF+lrpDIZkzu3ZhZZNOqb/EYFL3aMZvhppG jEvIU3ZLg581DPpIQydjtHDCx1xHGYuUjbx9fqAyGlXBsLZnllukoV7ZfYBXhw+VVLAB 4zFgwbUX2Rqrahl5OabU9UcGPIwLPEhsKYkwp0s8nK2MYI9ony7LZONjpWkQ1MAYL7mh /2dSdPOk8MPaK1oMgftSHalLhXVbMdm2E0ypFmu8bDgY2ehHDXuiH73BpCpxIFyqSz+K Fp17N6vpxoSq75DLCxatsh7WW+FiA4a47OSApIraL3NaMX0Vw0zeqH8vHYP94Gg4EVuA G5gw== X-Gm-Message-State: AN3rC/6MZRijOsAAxKnJjzVcFpBOHlYOrjDrL7l06LzMlqOojWQpuPyt iRfUuj5+4pI7zr5u/7KDEM2g X-Received: by 10.46.77.12 with SMTP id a12mr10422974ljb.95.1493084515316; Mon, 24 Apr 2017 18:41:55 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([188.162.64.156]) by smtp.gmail.com with ESMTPSA id 75sm1044825ljf.36.2017.04.24.18.41.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 18:41:54 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Tue, 25 Apr 2017 04:41:48 +0300 Message-Id: <20170425014152.3112-1-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [lng-odp] [PATCH 0/4] crypto: rework implementation of encryption and auth code X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" This is a copy of patchset at https://github.com/Linaro/odp/pull/11 . The main goal of this patchset is to ease adding encryption and authentication algorithms in future. Instead of using algorithm-specific OpenSSL API this patchset switches odp_crypto.c to use generic EVP_* API for both enc/dec and auth code. Dmitry Eremin-Solenikov (4): validation: crypto: add tests for checking message digests validation: crypto: correct comment for HMAC-SHA-256 tests linux-generic: crypto: unify auth code linux-generic: crypto: switch to EVP interface for cipher algorithms .../linux-generic/include/odp_crypto_internal.h | 30 +- platform/linux-generic/odp_crypto.c | 358 +++++---------------- test/common_plat/validation/api/crypto/crypto.h | 6 +- .../validation/api/crypto/odp_crypto_test_inp.c | 154 ++++++++- 4 files changed, 229 insertions(+), 319 deletions(-) -- 2.11.0