From patchwork Mon Apr 3 11:42:04 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: 96610 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp57183qgd; Mon, 3 Apr 2017 04:42:25 -0700 (PDT) X-Received: by 10.55.97.23 with SMTP id v23mr3816495qkb.41.1491219745375; Mon, 03 Apr 2017 04:42:25 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a6si11680628qte.69.2017.04.03.04.42.24; Mon, 03 Apr 2017 04:42:25 -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 9313563DB3; Mon, 3 Apr 2017 11:42:24 +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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 7A9B263DAB; Mon, 3 Apr 2017 11:42:20 +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 C87E16097B; Mon, 3 Apr 2017 11:42:17 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by lists.linaro.org (Postfix) with ESMTPS id 948866097B for ; Mon, 3 Apr 2017 11:42:16 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id z15so71203191lfd.1 for ; Mon, 03 Apr 2017 04:42:16 -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=P9zzcf/kDrhTeBojPksk/ovTM5r2kWrCkVVNOwsDOEs=; b=QwIxCLxGaG9PRV2e2JT9FQRl2hQpNfpvb3tIdlaQuDOrahGk/dSxyJ0XkDWArUr5iG oCRqRWBXX32GOWtZwHcjXQdW/DZhRzSyWPQEaWuocvZ9v/UODiVnayXtqXLKVZVI3bcB WCI6Z6Xp4s64tYpD7imOP/6mW+miYzmAFDo53X7PCFErrSZIOEZ3vg/z4IMCHdAOyjVm wLEdvSWX/CumTz4U+klObTTGk2Jm9yBe9LWUl1QHJ7w+xqJYvsJ7zSxdpIWG9HdSbajN 8XzWBHCQQnlfhf0uezvdOrpkOLgL7JtfG3AAdQM0+qF/nribL35BrokUR2pyDs2WK8Di +Pgw== X-Gm-Message-State: AFeK/H0W6P+1VJhGhO2lec9U0R6PljoIMN2LHKE0i1n0ev1T1PsNVShrVELumxqb3tq9AycMFCvIayw4 X-Received: by 10.46.83.81 with SMTP id t17mr4805886ljd.70.1491219735140; Mon, 03 Apr 2017 04:42:15 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([188.162.65.22]) by smtp.gmail.com with ESMTPSA id e124sm2422618lfg.8.2017.04.03.04.42.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Apr 2017 04:42:14 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Mon, 3 Apr 2017 14:42:04 +0300 Message-Id: <20170403114212.23355-1-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [lng-odp] [API-NEXT v2 0/8] crypto rework and support for SHA-1/-512 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 the second iteration of crypto framework update. As before this patchset targets api-next, because it implements sha-1/512 (and supporting those algorithms was one of main reasons for rewriting auth code). However the rest of the patchset should be applicable to master branch. Changes since v1: - Dropped iv copying for AES GCM case. It is unnecessary in case of using generic EVP API. - Fixed checkpatch warning. Note. Patches 5 and 6 still generate checkpatch warnings. However in case of patch 5 it seems like an error in checkpatch logic. Patch 6 triggers CamelCase warning due to odp_crypto using OpenSSL (which uses mixed case for function names). Dmitry Eremin-Solenikov (8): validation: crypto: add tests for checking message digests validation: crypto: correct comment for HMAC-SHA-256 tests validation: crypto: add HMAC-SHA-1-96 test cases validation: crypto: add HMAC-SHA-512 test cases linux-generic: crypto: unify auth code linux-generic: crypto: switch to EVP interface for cipher algorithms linux-generic: crypto: add SHA-1 authentication support linux-generic: crypto: add HMAC-SHA-512 authentication support .../linux-generic/include/odp_crypto_internal.h | 30 +- platform/linux-generic/odp_crypto.c | 382 ++++++--------------- test/common_plat/validation/api/crypto/crypto.h | 12 +- .../validation/api/crypto/odp_crypto_test_inp.c | 368 +++++++++++++++++++- .../validation/api/crypto/test_vectors.h | 94 +++++ .../validation/api/crypto/test_vectors_len.h | 12 + 6 files changed, 569 insertions(+), 329 deletions(-) -- 2.11.0