From patchwork Fri Nov 8 01:42:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tuong Lien X-Patchwork-Id: 1191549 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dektech.com.au Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=dektech.com.au header.i=@dektech.com.au header.b="ZHXnezix"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 478NLX1M5Mz9sPF for ; Fri, 8 Nov 2019 12:42:28 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728569AbfKHBm0 (ORCPT ); Thu, 7 Nov 2019 20:42:26 -0500 Received: from f0-dek.dektech.com.au ([210.10.221.142]:33012 "EHLO mail.dektech.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727070AbfKHBm0 (ORCPT ); Thu, 7 Nov 2019 20:42:26 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.dektech.com.au (Postfix) with ESMTP id AAB354AAF9; Fri, 8 Nov 2019 12:42:22 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dektech.com.au; h=content-transfer-encoding:content-type:content-type :mime-version:x-mailer:message-id:date:date:subject:subject:from :from:received:received:received; s=mail_dkim; t=1573177342; bh= IDkTtv+ILuf3FTx/DkLP+64qVDFT6Kp4xx6nQNFPRQw=; b=ZHXnezixSFoeaSAg yS2xlCpLWexQdyyUYM9aiiGFopY8y88Amj9z4KatXHcgzqX8V2o1LkqWtcUlrtD6 /Hz9Xmnhp/FeypTJcho+XrfrWSv2DthzDOyNzj92pLMQdZQAAWYQMlzrnNFw27wt brvRvFynhLdQPEAbeRFKjx8wFqo= X-Virus-Scanned: amavisd-new at dektech.com.au Received: from mail.dektech.com.au ([127.0.0.1]) by localhost (mail2.dektech.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vPRcPVpPBqft; Fri, 8 Nov 2019 12:42:22 +1100 (AEDT) Received: from mail.dektech.com.au (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.dektech.com.au (Postfix) with ESMTPS id 22A104AAFC; Fri, 8 Nov 2019 12:42:21 +1100 (AEDT) Received: from localhost.localdomain (unknown [14.161.14.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.dektech.com.au (Postfix) with ESMTPSA id C3FAE4AAF9; Fri, 8 Nov 2019 12:42:20 +1100 (AEDT) From: Tuong Lien To: davem@davemloft.net, jon.maloy@ericsson.com, maloy@donjonn.com, ying.xue@windriver.com, netdev@vger.kernel.org Cc: tipc-discussion@lists.sourceforge.net Subject: [net-next 0/5] TIPC encryption Date: Fri, 8 Nov 2019 08:42:08 +0700 Message-Id: <20191108014213.32219-1-tuong.t.lien@dektech.com.au> X-Mailer: git-send-email 2.13.7 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series provides TIPC encryption feature, kernel part. There will be another one in the 'iproute2/tipc' for user space to set key. Tuong Lien (5): tipc: add reference counter to bearer tipc: enable creating a "preliminary" node tipc: add new AEAD key structure for user API tipc: introduce TIPC encryption & authentication tipc: add support for AEAD key setting via netlink include/uapi/linux/tipc.h | 21 + include/uapi/linux/tipc_netlink.h | 4 + net/tipc/Kconfig | 12 + net/tipc/Makefile | 1 + net/tipc/bcast.c | 2 +- net/tipc/bearer.c | 49 +- net/tipc/bearer.h | 6 +- net/tipc/core.c | 14 + net/tipc/core.h | 8 + net/tipc/crypto.c | 1986 +++++++++++++++++++++++++++++++++++++ net/tipc/crypto.h | 167 ++++ net/tipc/link.c | 19 +- net/tipc/link.h | 1 + net/tipc/msg.c | 15 +- net/tipc/msg.h | 46 +- net/tipc/netlink.c | 18 +- net/tipc/node.c | 329 +++++- net/tipc/node.h | 13 + net/tipc/sysctl.c | 11 + net/tipc/udp_media.c | 1 + 20 files changed, 2648 insertions(+), 75 deletions(-) create mode 100644 net/tipc/crypto.c create mode 100644 net/tipc/crypto.h