From patchwork Sun Feb 7 18:26:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jorge Ramirez-Ortiz, Foundries" X-Patchwork-Id: 1437239 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.a=rsa-sha256 header.s=google header.b=UlFcCtpS; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DYd1J0ghrz9sVF for ; Mon, 8 Feb 2021 05:27:32 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BF624827C7; Sun, 7 Feb 2021 19:26:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io 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=foundries.io header.i=@foundries.io header.b="UlFcCtpS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3928E82791; Sun, 7 Feb 2021 19:26:51 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 05CD58278B for ; Sun, 7 Feb 2021 19:26:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jorge@foundries.io Received: by mail-wr1-x432.google.com with SMTP id n6so1792856wrv.8 for ; Sun, 07 Feb 2021 10:26:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=M76zgkg51jsSiGaAz5wiwNelUViZSJPCbB0L4hflxDg=; b=UlFcCtpS8qgLx7HeDr/AERa3/37SopnTjfH/kSlN0wxyily3hZh9sUD45wr1umXLtS ZVXxn5VAW9qtv0HDNTBhNJ1/8da1fb1/yqUZQytqHH44FsRI6Xz9gydo5vtSRn3Q2QS0 Vg4+FbLh8h4j3vMhYXBqTtxHV9RzhcFz/y/0qWp93ZEZrSu2y2rZKv2X4c5gRgJDkVgv 3x/lEvWEYpmlEuwQ2gPAXdTXn0mNgv/HXTTwqFLoeUsSAnOmNBD8i9p4COggtvEsFg0O mGlaU3ebpsTmrTJKiI6zDk4dbggLvKW955ppObGItpg2LhsWzzFXcqLPnWyanhc3Ldf1 H/TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=M76zgkg51jsSiGaAz5wiwNelUViZSJPCbB0L4hflxDg=; b=b0S0wMUZjeswscpI3YLwM33tq5xxutWw1/q/7ThzgPJ4kD2sy+sPeLGYuvLRvrAAmU xqTNcwmx6dBUupOQyID7tjHOhyGwcVPMtsCnaioeQ85awEMVVJ4z7AlPju/Uwogvkd83 XEo9XIJqY6ARMvA5mKZUJe4k2qJtmre9HB2foY9o0mYcQoc1EXmKIBp2qa0gyvdeh60B jTja6fJR5iCw1QDq06XG3gH/mtcYIo553jTYmcumUloMWi7zgakCr9t49eQrrutH5Y+H ogBKN0Pg86R5hx+MLTqF8qOGWqxo2K4xt8OAYIjf5BJ/bW5SYdwsJSFTssATldByjiRm oNpA== X-Gm-Message-State: AOAM531mtSwtfvpP5DhXo3udQAn4vG2rL4SbrmDBbe+yTs/aQl3pgJLm B0VGSXHlmp+XNdKkiRNJajjggg== X-Google-Smtp-Source: ABdhPJxyj74fAucLUYxUsTHCBVF4ki/rgsR9a61lo5WBGW65Mto+tKHwHxuRKcxn5szN7/AV3GgXHg== X-Received: by 2002:adf:b64f:: with SMTP id i15mr15656751wre.279.1612722406594; Sun, 07 Feb 2021 10:26:46 -0800 (PST) Received: from localhost.localdomain (182.red-79-146-86.dynamicip.rima-tde.net. [79.146.86.182]) by smtp.gmail.com with ESMTPSA id i3sm5173360wrr.19.2021.02.07.10.26.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 10:26:46 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge@foundries.io, sjg@chromium.org, jens.wiklander@linaro.org Cc: igor.opaniuk@foundries.io, u-boot@lists.denx.de Subject: [PATCHv3 4/4] doc: describe the scp03 command Date: Sun, 7 Feb 2021 19:26:32 +0100 Message-Id: <20210207182632.24252-5-jorge@foundries.io> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210207182632.24252-1-jorge@foundries.io> References: <20210207182632.24252-1-jorge@foundries.io> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean The Secure Channel Protocol 03 command sends control requests (enable/provision) to the TEE implementing the protocol between the processor and the secure element. Signed-off-by: Jorge Ramirez-Ortiz --- doc/usage/index.rst | 1 + doc/usage/scp03.rst | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 doc/usage/scp03.rst diff --git a/doc/usage/index.rst b/doc/usage/index.rst index 5754958d7e..fa1c4160b9 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -29,3 +29,4 @@ Shell commands pstore sbi true + scp03 diff --git a/doc/usage/scp03.rst b/doc/usage/scp03.rst new file mode 100644 index 0000000000..7ff87ed85a --- /dev/null +++ b/doc/usage/scp03.rst @@ -0,0 +1,33 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +scp03 command +============= + +Synopsis +-------- + +:: + + scp03 enable + scp03 provision + +Description +----------- + +The *scp03* command calls into a Trusted Application executing in a +Trusted Execution Environment to enable (if present) the Secure +Channel Protocol 03 stablished between the processor and the secure +element. + +This protocol encrypts all the communication between the processor and +the secure element using a set of pre-defined keys. These keys can be +rotated (provisioned) using the *provision* request. + +See also +-------- + +For some information on the internals implemented in the TEE, please +check the GlobalPlatform documentation on `Secure Channel Protocol '03'`_ + +.. _Secure Channel Protocol '03': + https://globalplatform.org/wp-content/uploads/2014/07/GPC_2.3_D_SCP03_v1.1.2_PublicRelease.pdf