From patchwork Thu Jun 1 08:22:40 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: 100817 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp694465qge; Thu, 1 Jun 2017 01:23:31 -0700 (PDT) X-Received: by 10.55.33.98 with SMTP id h95mr283974qkh.246.1496305411532; Thu, 01 Jun 2017 01:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496305411; cv=none; d=google.com; s=arc-20160816; b=Yak29aKGzFeISCtl3O4Dhs1aq9tXceQ2tamG9u/wDXOWvQFTuMcjNthrSfbrsLTt26 K72nC+54CNDikXAnoHbePogybEb8l4o9UVfVJBpFdg727by9ozuMrbCAfB8pS6vM+Rs1 cDuHEw4ZE1AQrRqJ5LD/VAXBl6UUNey7d8w6HMb+61E6C02dS3vcwn76yqkWEPQl7hFF Y2538tfIYRnmCt6I142CXdpvD4tPIp+jTcv2VgiTIhQvoTW38fuqepJeJoKKhbtbt7uY KjR+zqHc833PiBfhhZDS4Csl7ivEOY1NHuQX+4beYGn7Pi1yxUJLr1FWSDcndACwvM83 9s8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:to:from :delivered-to:arc-authentication-results; bh=pBX4H3vEVgUoObejNbLcXcFBk3hRL+UIBsdsup1gl+w=; b=zGk1m60TxDxz5Kftom2zkCyDWOxbrKOX3MRtPAjaWbilmNSf/Fm3Zm5uY9n4fMF9tY cLrqC4NyKowqRoubYKlO+FNDZ2FMAG+ds73KOUS8bluDFqimSgLIgqG5HWZUFImvb4zh pvF5G3I8+FhIFpAfToWrfrczAI2peuAHfWmN5CRpJxlt0RPUAMg2V3TDmypFCRFkrnJQ QR7QNRNd2llkNjCod1RbpOGoRH7ckgCnBuH0pDJES0tE85vllr4sbqbaOUY0We/edpXV leR+YFyarji+XjWZiv0J3/xqhixfnsUrgMiQaKS2rb0/bLWOVknDeCSQk7VO8+FcqOKq qEQw== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c17si14484272qkj.333.2017.06.01.01.23.31; Thu, 01 Jun 2017 01:23:31 -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 EAF9360C2D; Thu, 1 Jun 2017 08:23:30 +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 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 592CB60A1A; Thu, 1 Jun 2017 08:23:27 +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 92DC560A1A; Thu, 1 Jun 2017 08:23:25 +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 AC1B360972 for ; Thu, 1 Jun 2017 08:23:24 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id c184so17266970lfe.2 for ; Thu, 01 Jun 2017 01:23:24 -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=pBX4H3vEVgUoObejNbLcXcFBk3hRL+UIBsdsup1gl+w=; b=DiSdrLY56krecz68ZR0HmPc0P32GbVw5aG1G2Qy2J+z9j142lbM98eMSfgpTx6du3/ VIi/iObJoNW9sxDeffXaIP9e9lVqZxxm6KYph+WZi25ZADoqbmjSDYiDzdKucQchGpcA 8ear3ZRZ85tl0yNarom2Haea1B3mcxzDbQPP2uuIw+UlQQji5lSg/NEO3Shilq82NO0C 0r8el2Ib4D1WtRb/iHbppwGTpX9mNj01FdklggHrsfXOQhdoZgZqGZ6JXbTurG5s4FSo JTZtQnAGWyvCOj1XH3WWItvrMM1ifruSGbheGf0vVwL4J3wRpBVIxD0HfFtO+2D25QsQ OfjA== X-Gm-Message-State: AODbwcD124LLlHlxOx+vyysl/7JqM2/c8eKiZaj6ZFqe/bUwUFxtr5ud juXorgwATZVAI9LkIsKB2biu X-Received: by 10.46.69.84 with SMTP id s81mr110621lja.41.1496305403073; Thu, 01 Jun 2017 01:23:23 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([188.162.64.12]) by smtp.gmail.com with ESMTPSA id c78sm4185837lfh.25.2017.06.01.01.23.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 01:23:22 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Thu, 1 Jun 2017 11:22:40 +0300 Message-Id: <20170601082320.4673-1-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [lng-odp] [PATCH API-NEXT v4 00/23] Major cryptography rework 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 cummulative patchset incorporating: - AAD/ auth_digest_len implementation - crypto engine working across packet segments - SHA-1/SHA-512 implementation - small fixes GitHub bot did not send this serie for quite some time, so I'm sending it manually. On GitHub exactly the same patch serie is visible as PR #34. Dmitry Eremin-Solenikov (23): validation: crypto: explicitly pass auth_digest_len to crypto subsystem validation: crypto: explicitly pass AAD to crypto subsystem test: odp_crypto: update performance test to set auth_digest_length example: ipsec: set auth_digest_len linux-generic: crypto: use auth_digest_len when calculating HMACs linux-generic: crypto: add SHA* capabilities for full length digests linux-generic: crypto: update AES-GCM support to reflect aad and auth_digest_len linux-generic: crypto: remote extra memcpy in AES-GCM linux-generic: crypto: make AES-GCM thread safe linux-generic: crypto: explicitly disable padding for AES-GCM linux-generic: crypto: rewrite AES-CBC support using EVP functions linux-generic: crypto: rewrite 3DES-CBC support using EVP functions linux-generic: crypto: merge AES-CBC and 3DES-CBC support linux-generic: crypto: make HMAC work across segmented packets linux-generic: crypto: make en/decryption work across packet segments linux-generic: crypto: NULL session->next pointer on session allocation test: odp_crypto: bail out if odp_crypto_session_create failed crypto: linux-generic: add capabilities for CIPHER_NULL and AUTH_NULL validation: crypto: add tests for NULL cipher validation: crypto: add HMAC-SHA-1 test cases validation: crypto: add HMAC-SHA-512 test cases linux-generic: crypto: add SHA-1 authentication support linux-generic: crypto: add HMAC-SHA-512 authentication support example/ipsec/odp_ipsec_cache.c | 1 + .../linux-generic/include/odp_crypto_internal.h | 17 +- platform/linux-generic/odp_crypto.c | 628 +++++++++++---------- test/common_plat/performance/odp_crypto.c | 57 +- test/common_plat/validation/api/crypto/crypto.h | 8 +- .../validation/api/crypto/odp_crypto_test_inp.c | 417 ++++++++++++-- .../validation/api/crypto/test_vectors.h | 181 ++++-- .../validation/api/crypto/test_vectors_len.h | 18 +- 8 files changed, 870 insertions(+), 457 deletions(-) -- 2.11.0