From patchwork Tue Feb 9 20:10:36 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: 1438653 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=85.214.62.61; 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=czNMcPph; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4DZvDg4vLMz9s1l for ; Wed, 10 Feb 2021 07:11:47 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E62C782ABE; Tue, 9 Feb 2021 21:11:37 +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="czNMcPph"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7200182AB7; Tue, 9 Feb 2021 21:10:56 +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-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 6B27782AB3 for ; Tue, 9 Feb 2021 21:10:45 +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-wm1-x32f.google.com with SMTP id w4so4421019wmi.4 for ; Tue, 09 Feb 2021 12:10:45 -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=czNMcPphIGNZOl0Y9Zzk/loV0j1jSTWQbj/XWyHXbQVsd/KfB7OTNvwk3MPxVKByOb Bc4/wFAZi6YyqqsjCRsjDoxjFf0p8+NfGvnPoTwPzmasLtGFFxrz4h2IyFTA9lACOgoH 1S0F6jN9Ri7OSxYxZo53WL/nNo0WSOzjdPv2iF8J2u1PQTAEF4K7XRbM7NwFlfvjmWrd lrRjLyuXbKOwm2qzCGTui3Ok3OlnMUfuQhmWbrttT5bpqy5ito0Q++6bT6NZiEEVR4k/ L/ZTq9cQYREfYOy62Plt+qKyfonEVDlYgMgiV/nohnoZp4ETsz7arkQRBbsGZn9rdZwM TxDA== 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=pbAtpMw/SRm+qYZKv4p/4yZjXB3zH/YnmTyhKtA3trbYdZbPJ6bnqXI48Hvn0Kgzxf vRLE8xjja4+MTJGHU0MU/KThXjk42tDmFXEm+ssMPDpReRVLGa4QPKYoNeCoG5Ilbk5E 9wA+k0hmvntmPrsqLwmvw6sW/3W7a0hVMHMuFer1JAU9cFR+3QqBj1WHW/+OcxPVpR1d A8cL0xyzAiFOROV63NsC1TMGZ7YLJbTDxYml8kNnEU+pzOgKV9xhMhrjdLmlqrfOAdO/ Qbqi3C1YhnJ6e7P80XvAZqynC4YfUwub2Yb3xrnEmrUv8sxL7AnopZc8Lw0G7vHldYUW d+Pw== X-Gm-Message-State: AOAM531WpkzU7/X+bHptdDaY0TXrcWIqpZ23Ekq2tswYUvj2Qrv8VA5Y e78zAmLNhm0lj0e9JzZfonNeOg== X-Google-Smtp-Source: ABdhPJyRUuoTT4TLQgbbF5Frhr/TA5uNwNi73VnWDnEo57TnoQ6oH3lafGVsdzT6yS4CW7R+YIz2vg== X-Received: by 2002:a1c:c903:: with SMTP id f3mr5036138wmb.69.1612901445004; Tue, 09 Feb 2021 12:10:45 -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 r17sm37951601wro.46.2021.02.09.12.10.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 12:10:44 -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: [PATCHv5 4/6] doc: describe the scp03 command Date: Tue, 9 Feb 2021 21:10:36 +0100 Message-Id: <20210209201038.28747-4-jorge@foundries.io> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210209201038.28747-1-jorge@foundries.io> References: <20210209201038.28747-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 Reviewed-by: Simon Glass --- 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