From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49C27C433F5 for ; Wed, 9 Mar 2022 13:57:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4DEDE83977; Wed, 9 Mar 2022 14:57:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eQJz5FCB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2C07F808BA; Wed, 9 Mar 2022 10:28:37 +0100 (CET) Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 000EB801B2 for ; Wed, 9 Mar 2022 10:28:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=giojahermann@gmail.com Received: by mail-wr1-x433.google.com with SMTP id e24so1987510wrc.10 for ; Wed, 09 Mar 2022 01:28:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GS6ctqqxozi3WMxIpoRjP5ZScTiaAr2N8qoc3pyQraA=; b=eQJz5FCBXwk/F/kob1yj4b31Qt1YIZTFugmie19y/VFsaSRvH1R0XrZcN5eGHATCbJ jjNmAOfRs77zMsZctyvEWJrjbFYD7iEnORBwEv4gWBBbvqFSofQok/ldsyAgFQvwmFEd 0Olr7fI/sntDYhzeTKbIg78/LI4Ua16N0uy/CbufSjhMIvj7welk0j64BmZvyN1n1FXw wO00e4MRCjXce4uQYcE3ugy2DqFdxDgCSBiKKPRubqOX+tvpBZBoEspZtxgz7NOw9Thi msaP0qOs5KBGpEAjkUkF3oD2i35inxlGtx1pJwcYThlsrM5fLkQpurTYFTjgj2LeFi2Q U3rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GS6ctqqxozi3WMxIpoRjP5ZScTiaAr2N8qoc3pyQraA=; b=smqRGs30VyOO4Q09wzYNglwRlXhjdzYCcq1Ks/SwVSbEeMaNiZZcdgLuc96TDEOJZy v2dMumpZxjVfXpF/wqC7I9q3sWw+ecKB+MBW+jeeZ4wwlybuVn28SVZQptDhdTS+8T1/ 3ajepM5dGiPDjTek/vtGmGOAs6Rwlg2EUpZGxOVU8uXAWQvInWtXOOgaVYGETr+oX+mc 6kXzF9rqZ5KIWYgESS8GHIzxVByMpsrSI5ecuD/z8jhv2h0AhFCOKVFTQEVO/zsceiNG W7fSTl3bUIo77kLCqn2fZ4sqaAP/k2MFhJ1F4C5+UxBIjc1DRcWBE6jw0fIbYYXANdWw AEKg== X-Gm-Message-State: AOAM532sCpBqiIVi4XZbZXV1YKRT/o1lqF/Q9/4ZbYdbXQkkkW8O6dA4 MhLKcYblU8NyENN4mckTKVM= X-Google-Smtp-Source: ABdhPJz7oOY2wVwSDYyJzg7YufW8Oi0Uvyw5jb35K2DfrhlVUgc7FaDh5Z3654gih49lHoctTDYxDw== X-Received: by 2002:a5d:584a:0:b0:1fc:a885:4d4a with SMTP id i10-20020a5d584a000000b001fca8854d4amr8160927wrf.662.1646818112524; Wed, 09 Mar 2022 01:28:32 -0800 (PST) Received: from localhost.localdomain ([185.228.230.0]) by smtp.gmail.com with ESMTPSA id v13-20020adfe28d000000b0020375f27a5asm1221771wri.4.2022.03.09.01.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 01:28:32 -0800 (PST) From: SESA644425 X-Google-Original-From: SESA644425 To: sjg@chromium.org Cc: gioja.hermann@non.se.com, mr.nuke.me@gmail.com, jamin_lin@aspeedtech.com, xypron.glpk@gmx.de, philippe.reynes@softathome.com, thomas.perrot@bootlin.com, u-boot@lists.denx.de, giojahermann@gmail.com Subject: [PATCH 0/3] Support any-salt for padding pss verification Date: Wed, 9 Mar 2022 01:27:14 -0800 Message-Id: <20220309092717.4203-1-gioja.hermann@non.se.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 09 Mar 2022 14:57:21 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This patchset does add support for any salt length in function padding_pss_verify which currently supports only max salt-length option. The fix is preceded by two changes to enhance memory consumption and const-correctness in the area of the patch. - Hermann Gioja - SESA644425 (3): lib: rsa: Fix const-correctness of rsassa_pss functions lib: rsa: Leverage existing data buffer instead of systematic copy lib: rsa: Update function padding_pss_verify (any-salt) include/image.h | 2 +- include/u-boot/rsa.h | 4 +-- lib/rsa/rsa-verify.c | 64 +++++++++++++++++++++++--------------------- 3 files changed, 36 insertions(+), 34 deletions(-) base-commit: 6d3c46ed0e230d999c3f20f7fd4f3a88c03b14ca -- 2.25.1