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 E7934C433EF for ; Thu, 25 Nov 2021 00:17:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E1E783681; Thu, 25 Nov 2021 01:17:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="nvcexFXD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 31FE882F91; Thu, 25 Nov 2021 01:13:21 +0100 (CET) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (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 72D7281184 for ; Thu, 25 Nov 2021 01:13:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ot1-x334.google.com with SMTP id b5-20020a9d60c5000000b0055c6349ff22so6776626otk.13 for ; Wed, 24 Nov 2021 16:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j9vg33mWhNgJL/Mzc+GUtWCw188zCW8ehJmSx9Ly2yY=; b=nvcexFXDJwTIr2Y0HTmULfuH84brWHYzic//eDgTKlYv4PJD0trNqMAAngjWvRPgZN 3hN45a7bpPumn1USXoHz8QAofw5IXxanHfiLNxhY724zCfhx8UGURzdPJGGAyRJozhMP IyQw0T8pCjOZfGdOi04Ye4mLgiYuTS7lvk7ag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j9vg33mWhNgJL/Mzc+GUtWCw188zCW8ehJmSx9Ly2yY=; b=s6oDBjCWhNjyM31nzZQbP41TigdJEEsHFDvb66Ge5xIBrGUjm789f9J5cUz+qGGT46 dNE/lnxG64nn24AmzJp3GgcY+crERHANVXT+qW/sh44CceBjCkA75t6LPzZJZTnNZ+uS mwzUoV6h2PizyuIMma6thCGnxm4gBT1WzJ2Eczq4g1HjIU+W40e/h7yzt8kW5q9Wtyrg vTpgCqrKJXmFK+trw6SrjcdfYRI09Lc1M6O0DBwcIlkrFA+jw8akNJt3p+77EejgVCzN DGU86kxi3o2w0LNbwL8bEaf9kTP1Uh9rPc5bNvi9OscX+bQa6HCuzHPcezafxjijF4Ju xh0A== X-Gm-Message-State: AOAM530rlo+AuH7BSzQK12O4DguqxeT4JlksWkUJayOE+Hy3rQ7Hjm11 Xq3D1ynIGI7lQ4xyYMcn8XXA5rMqnDIT1DtXuzgU/g== X-Google-Smtp-Source: ABdhPJxVWDG5ecNySBEuPaJa/OOAb6WwkaMSEhm9p0f7mPDDDKT6AlIdmA/votgY1oYdA4or+OJF89BwEVn7B3XIlvs= X-Received: by 2002:a9d:17c5:: with SMTP id j63mr17382357otj.191.1637799194621; Wed, 24 Nov 2021 16:13:14 -0800 (PST) MIME-Version: 1.0 References: <20211117175215.24262-1-philippe.reynes@softathome.com> <20211117175215.24262-8-philippe.reynes@softathome.com> In-Reply-To: <20211117175215.24262-8-philippe.reynes@softathome.com> From: Simon Glass Date: Wed, 24 Nov 2021 17:13:01 -0700 Message-ID: Subject: Re: [RFC PATCH v3 7/8] mkimage: add public key for image pre-load stage To: Philippe Reynes Cc: mr.nuke.me@gmail.com, joel.peshkin@broadcom.com, u-boot@lists.denx.de Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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.2 at phobos.denx.de X-Virus-Status: Clean Hi Philippe, On Wed, 17 Nov 2021 at 10:52, Philippe Reynes wrote: > > This commit enhances mkimage to update the node > /image/pre-load/sig with the public key. > > Signed-off-by: Philippe Reynes > --- > include/image.h | 15 ++++++ > tools/fit_image.c | 3 ++ > tools/image-host.c | 116 +++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 134 insertions(+) I'm a bit unsure about the format of the key here. Is it different from the normal one used by U-Boot? Regards, Simon