From patchwork Tue Nov 24 15:24:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Fedorenko X-Patchwork-Id: 11929213 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C260C64E7B for ; Tue, 24 Nov 2020 15:25:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E05A206D8 for ; Tue, 24 Nov 2020 15:25:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=novek.ru header.i=@novek.ru header.b="Osok2aHX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389694AbgKXPZN (ORCPT ); Tue, 24 Nov 2020 10:25:13 -0500 Received: from novek.ru ([213.148.174.62]:47198 "EHLO novek.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389434AbgKXPZN (ORCPT ); Tue, 24 Nov 2020 10:25:13 -0500 Received: from nat1.ooonet.ru (gw.zelenaya.net [91.207.137.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by novek.ru (Postfix) with ESMTPSA id 1A3125030A7; Tue, 24 Nov 2020 18:25:24 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru 1A3125030A7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1606231525; bh=mO+bX/215FkY07mOamMQiBMBu8TNVFK/UNvxc7Ptm8Q=; h=From:To:Cc:Subject:Date:From; b=Osok2aHXwuCEYE8k6Ee0FpzIhEGVQiKN3ylTsmQy/5489KL71pWfhoEbhNM6FQAlC vfoly82GE2bMV9/B317XuY0N4xTQ46rrNgoZEc8Un1G1vtnR0BSdqOr6vDxpZ+3m2C uxBuAIRi1HPG81mko9S92fTQ4+eBvc9GmSO+f4aI= From: Vadim Fedorenko To: Jakub Kicinski , Boris Pismenny , Aviad Yehezkel Cc: Vadim Fedorenko , netdev@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [net-next v2 0/5] Add CHACHA20-POLY1305 cipher to Kernel TLS Date: Tue, 24 Nov 2020 18:24:45 +0300 Message-Id: <1606231490-653-1-git-send-email-vfedorenko@novek.ru> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org RFC 7905 defines usage of ChaCha20-Poly1305 in TLS connections. This cipher is widely used nowadays and it's good to have a support for it in TLS connections in kernel. Changes v2: nit fixes suggested by Jakub Kicinski add linux-crypto to review patch set Vadim Fedorenko (5): net/tls: make inline helpers protocol-aware net/tls: add CHACHA20-POLY1305 specific defines and structures net/tls: add CHACHA20-POLY1305 specific behavior net/tls: add CHACHA20-POLY1305 configuration selftests/tls: add CHACHA20-POLY1305 to tls selftests include/net/tls.h | 32 ++++++++++++++++--------------- include/uapi/linux/tls.h | 15 +++++++++++++++ net/tls/tls_device.c | 2 +- net/tls/tls_device_fallback.c | 13 +++++++------ net/tls/tls_main.c | 3 +++ net/tls/tls_sw.c | 34 ++++++++++++++++++++++++--------- tools/testing/selftests/net/tls.c | 40 ++++++++++++++++++++++++++++++++------- 7 files changed, 101 insertions(+), 38 deletions(-)