Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2761728pxj; Mon, 31 May 2021 10:05:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1NrIqDAkLEkPcxsSinTnVk6RUNcNJ3V8aaAqbQ0Z+fMP768MBiXneCXEDRoLGiiQQFp5p X-Received: by 2002:a05:6402:26d1:: with SMTP id x17mr26573190edd.14.1622480737698; Mon, 31 May 2021 10:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622480737; cv=none; d=google.com; s=arc-20160816; b=lx6dYirLYdPJ4EIPhKmoI3FOhNPK2ylGKqcnmOon3SFhqRTNi7Qcl9C8/wz+0+vgyy wJfG73ZxymCiA7/+6ZlT8gCU+EtOHaxD/Yvd0E9STbdqcI0qV0cEQxXLOu5VG9ZysxkV a/5EbFuRvuPJwdJsj0QwCWrYRTa+1QE4paQ0SK09+H26iWqvHhU6PnvRfBpLkP4RCahA NLLm2NpvJ1uhmtcTWEXADxYE4NGbYqQAM9PDsgfV+ablH/CczP+51GE4IYDKzY5Y7Y2Q Ddsy4z1xyHJLPqJQGfaveWn2VENmur3WsQU47zqZ9gSzpd0JI5CAqwPH6x4MQZxEefUj mwxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=2I00Li2bPAoimjrwNBkE47RCTeR4TNTbIlgHwq4dQMQ=; b=PU1q5Fb/gwHCPL7EUwHyDRmyl2n6IjK9pXw4cvF1hxqJiEADbg+ALYaos4wjNT1lKZ rXqIsthJ5dD/KY6qf0YbBMsn9utQFLe8opiRMe2fvyM7kIBoBBDIajGPioBcxTrTM9Y8 M6D7acdowdSA2LS/oA8LOAxjQbjVp6N+4x+ix9+GCLapuCdwhZ+4isdm0lbJneNYuA7k XHjY08pfQnuEdFylOUqdzIXPnV1ipzsSUYYaipaKQbwoWWoVpeoyLmp0WYn2CGau+uqr yf9mWZ6qXIKX9VoCzDX9rP+7spa+DQnuYZ7ehn80C2+ZBE6BA0jm/lT4LJbt288tXVYD 9jzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ePBNJOVI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e20si411043ejd.727.2021.05.31.10.05.14; Mon, 31 May 2021 10:05:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ePBNJOVI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233528AbhEaRFx (ORCPT + 99 others); Mon, 31 May 2021 13:05:53 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:22128 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234423AbhEaQOi (ORCPT ); Mon, 31 May 2021 12:14:38 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 14VG39Ix176367; Mon, 31 May 2021 12:12:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=2I00Li2bPAoimjrwNBkE47RCTeR4TNTbIlgHwq4dQMQ=; b=ePBNJOVI2MhyrnfX2UMx3Uuuv+qZW6iP0p32oLd3xzUxcNNxcnP5rkTW96mwvHcXPoWU Poj4hSFU78ypfyBzxnK7MgdL7Vk445s19E+Or8jfLpaNGqBnZXlEUviZapS0/+A1TFD/ 2xOC/5fGKKGM+2/7kAtbn8/JuKFalcl6stR8LbfDnuHdY4iFu+ZaETP9TgdC6h7zANit qWbz0jBuGR7mHx+49GTEq630oQ8Acuu/P1O6ifQDhHFRyGr+UpU7I1NqSVXPaH6TYT2a vSyBICn2gRWnW+k1h2FWysHIlgFCt1v7kSbz4AOjs8HM9EBz4/aNuXEjKPzJngtuixWr rg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 38w2ers0rr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 31 May 2021 12:12:55 -0400 Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 14VG3Zsv181685; Mon, 31 May 2021 12:12:54 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 38w2ers0qk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 31 May 2021 12:12:54 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 14VGBuwF024973; Mon, 31 May 2021 16:12:51 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma03ams.nl.ibm.com with ESMTP id 38ud8894s4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 31 May 2021 16:12:51 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 14VGCmnH28180800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 31 May 2021 16:12:48 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5944AA4064; Mon, 31 May 2021 16:12:48 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9D587A405F; Mon, 31 May 2021 16:12:46 +0000 (GMT) Received: from li-f45666cc-3089-11b2-a85c-c57d1a57929f.ibm.com (unknown [9.160.84.117]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 31 May 2021 16:12:46 +0000 (GMT) Message-ID: Subject: Re: [PATCH v4 2/2] certs: Add support for using elliptic curve keys for signing modules From: Mimi Zohar To: Stefan Berger , jeyu@kernel.org, keyrings@vger.kernel.org, dhowells@redhat.com, jarkko@kernel.org Cc: nayna@linux.ibm.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 31 May 2021 12:12:35 -0400 In-Reply-To: <20210423151247.1517808-3-stefanb@linux.ibm.com> References: <20210423151247.1517808-1-stefanb@linux.ibm.com> <20210423151247.1517808-3-stefanb@linux.ibm.com> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.28.5 (3.28.5-14.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 0pi9Cw8l3rZcCOJaNPzg2fuGX6YwFQZk X-Proofpoint-GUID: dt0a-cCF-gfTM2cxMStyqLjtWLubRTMy X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-05-31_10:2021-05-31,2021-05-31 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 impostorscore=0 spamscore=0 clxscore=1015 adultscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105310119 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-04-23 at 11:12 -0400, Stefan Berger wrote: > Add support for using elliptic curve keys for signing modules. It uses > a NIST P384 (secp384r1) key if the user chooses an elliptic curve key > and will have ECDSA support built into the kernel. > > Note: A developer choosing an ECDSA key for signing modules should still > delete the signing key (rm certs/signing_key.*) when building an older > version of a kernel that only supports RSA keys. Unless kbuild automati- > cally detects and generates a new kernel module key, ECDSA-signed kernel > modules will fail signature verification. > > Signed-off-by: Stefan Berger Tested-by: Mimi Zohar