Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2421379lqo; Mon, 13 May 2024 19:37:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpNCmHOc2XDnFFrk93jc8Ty4UlazN1Roizk1FknexxpDmrTHpiqcraO5D1EK5YL18LYe7izb4yxgHFzzs/hYoFdM5bEnSkNwR/mbjsVQ== X-Google-Smtp-Source: AGHT+IEXcWskifxU4xUjwWthrgDOOrmA4NVTidoWxtlNPSFFl6eg8IyS5ln+NuF/7/U95mimMYwx X-Received: by 2002:a17:90a:890a:b0:2b4:3669:616a with SMTP id 98e67ed59e1d1-2b6cb7d59demr9633987a91.0.1715654229503; Mon, 13 May 2024 19:37:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715654229; cv=pass; d=google.com; s=arc-20160816; b=Y/BgPmow8DkXEyeNLEYnVHVsA/dnYonI97sTIPXWUOCVFF8VS+MNbtRvKhddTnqSGj WdcrRnMG4xeHbwT2fjgM+9qbknAX5d3DM7P4Pp9XnoYyZ+dm4W8NDgYQa+QqkwuXkIhg szPUr+TLsW8+zOpcnEWeW8PWm0Vo4igYcvGAXcHU/fPnCXRp++KbInR9kIkf6xQzs0U+ EKXstOcyK1p9NAc/SPIlWgs9eEpyGPTWu2lc8wHi4cDz0hMts8Fqetiy9VMzrr9lu0Br yjd4lxeAyYEFz9l+QDDyneeCAnGNT8FgyixUypTC027X+Y+SRx3KDU4CMBcgt/ecEONe ZG4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:date:message-id:dkim-signature; bh=J4ISEVg//E0584+maGXUxTH+CUlBtUPAysP7ULejGyo=; fh=GdRrV3hGvZYwmWNl2+Byx18TkHaEO5nCWVCjJppZfAE=; b=SIM4uMsYi6zQGZhZ11Q/C+DrnG8KWOv1vsviAkuldD/PsgKC4gL7Hv7dBcjuaSIQO/ vXTIJZql8Ra0bXkHrNgHpUozuqnKECtMTCw3EKtP4kC8m6ukNbYFoPFqv7lbNK6Bg3Ql GZXOPAPTXFMEj2NsCoUKIYxJ81gMD/jeH9Adk/fUut6IBFVLm42Gvj1oMm4srH59YHuQ miVgifcnFMQmhOt6ImpS7DpARD0Ywnss/2ab75xdyPnQD3Bwgd0bRNq0SuwmJ8numopF T0jh3ActYKIsLp5+RDhjVJz5xRbI1vqOlgOC3xhKO3aREuM0R6Ty+SiBhjPEkv1NXvr+ LKxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jvdsn.com header.s=mail header.b=pIZfIpTd; arc=pass (i=1 spf=pass spfdomain=jvdsn.com dkim=pass dkdomain=jvdsn.com dmarc=pass fromdomain=jvdsn.com); spf=pass (google.com: domain of linux-crypto+bounces-4156-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=jvdsn.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628ea79a9si12486896a91.103.2024.05.13.19.37.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 19:37:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4156-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@jvdsn.com header.s=mail header.b=pIZfIpTd; arc=pass (i=1 spf=pass spfdomain=jvdsn.com dkim=pass dkdomain=jvdsn.com dmarc=pass fromdomain=jvdsn.com); spf=pass (google.com: domain of linux-crypto+bounces-4156-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=jvdsn.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9A07E286627 for ; Tue, 14 May 2024 02:37:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D15C11C36; Tue, 14 May 2024 02:37:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jvdsn.com header.i=@jvdsn.com header.b="pIZfIpTd" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.jvdsn.com (smtp.jvdsn.com [129.153.194.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34EEF79D2 for ; Tue, 14 May 2024 02:37:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=129.153.194.31 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715654224; cv=none; b=HTT8HWKDA6G+o09kZOBkflpzc9zoOkpQi8iO/IJAP/nbIFTMU8TjnqJrgU65gpDj4ymDy+ZPR/P0J6K5HDL8UkKUMqrgqXWR7xsh1U3kd5aldZdam7IoDalMNpVxdVjREXPG1k8Xc6uzt9ztPJwkd388hwtyMoA3yvpT7GZTF64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715654224; c=relaxed/simple; bh=rnilAhcWeWPeF5qGzTqdMNMJZHqt8jgjKl8BwAtyqr4=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=H/rZQWpXBX9T064BVrcqBBhwC+cU+GfUe3TvPcRMywUKBHx2GA0AOFp8abNSAq5PN2DoDyY+zFVvzP40O5NLUT2dF7WmwLk3bKpkOm35pJDwxJF2vdiLrVzUvHHqcPEnZVjJFF/ydMocD/wMErUGse7XjqQCQSGB13k78ZjMQKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=jvdsn.com; spf=pass smtp.mailfrom=jvdsn.com; dkim=pass (2048-bit key) header.d=jvdsn.com header.i=@jvdsn.com header.b=pIZfIpTd; arc=none smtp.client-ip=129.153.194.31 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=jvdsn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jvdsn.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=jvdsn.com; s=mail; t=1715654216; bh=rnilAhcWeWPeF5qGzTqdMNMJZHqt8jgjKl8BwAtyqr4=; h=Date:From:Subject:To:Cc:References:In-Reply-To; b=pIZfIpTdP4UlRyPWQCcf+wLl0OSAqTKnrr2UgwQVaY1i1JXZRa0wWygil4q+kTryr QvTPrVuwUy4/oNSC9YTScqMu1haGe2lHbhRSA7ItylqqJIb6Xr8XPHktO0pkswJjil Fx51FtClNaetlBdHKPZ/SS11TnMl0kps5fQCTcH8G6lu5NOllWyBelTAwEvVm1Zl7/ Q+OyR39Xq6gVmgVh/Tg6lso36xxO0HHf8b5TLFwktTXxP5rCO4ezxQMvjGZMxN22sn TFEKw+85Zrn2YG8MfDIKnPXwP2zx6YN/8ooLE2NwrY/9URIEehTQm8L0k/AnUDg/Pe FwYhpejFGlkyw== Message-ID: Date: Mon, 13 May 2024 21:36:55 -0500 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Joachim Vandersmissen Subject: Re: [PATCH v5 1/2] certs: Move RSA self-test data to separate file To: Jarkko Sakkinen Cc: David Howells , Herbert Xu , linux-crypto@vger.kernel.org, Simo Sorce , Stephan Mueller References: <20240513045507.25615-1-git@jvdsn.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/13/24 3:26 PM, Jarkko Sakkinen wrote: > On Mon May 13, 2024 at 7:55 AM EEST, Joachim Vandersmissen wrote: >> + pkcs7 = pkcs7_parse_message(sig, sig_len); >> + if (IS_ERR(pkcs7)) >> + panic("Certs %s selftest: pkcs7_parse_message() = %d\n", name, ret); > Off-topic: wondering if Linux had similar helpers for PKCS#1 padding > (and if not, are they difficult to add)? PKCS#7 here refers to the message container format, rather than the padding. Internally, the PKCS#1 v1.5 padding scheme will be used (see software_key_determine_akcipher). Unless you are referring to PSS padding (also defined in PKCS#1)? > > Anyway, looks good to me: > > Reviewed-by: Jarkko Sakkinen > > BR, Jarkko