From patchwork Tue Feb 9 19:34:11 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: 1438596 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=Q3OSa7jf; 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 4DZtRV23rzz9sB4 for ; Wed, 10 Feb 2021 06:36:06 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6157682AAA; Tue, 9 Feb 2021 20:36:02 +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="Q3OSa7jf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 395BC82AB7; Tue, 9 Feb 2021 20:35:02 +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-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 17EFF82AAA for ; Tue, 9 Feb 2021 20:34:43 +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-x430.google.com with SMTP id v15so23458993wrx.4 for ; Tue, 09 Feb 2021 11:34:43 -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=Q3OSa7jfbNaBqZEUvrQy0Y/bhSgJDFoxKwUXWzxIp4IxrnEQzSi1rmrsHck97m9Mg4 bdexQEB3Nr34WX6z0YHkg2FlWeAJE2W4TW6gskKX7RbVAKomp7ztxUQ/mKschAuVkSvs txT7JzgLkakF1Sm7Qq+asZMnDcuDozWnFVtQPwuG6SrYrdHTrmlD5JQ5gfu+WiJ7j2uo tBOTOgEQw83kGIm7YESAzLHtzZE2KzrfPswrFdGLAW2gzgB6EV7K8XIAwl+gf6s4sp0d n95RknFW9HgUxXyuaNygVvkBDKso1R9f07r0jlJ7ipccKt6p2YVTqqniACnehgKY2vYu 65eQ== 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=OQ6c9BAz0LZbOZaKd3VC3XD/xWXwqM8UE/gv/77Oh/f+um1BHh0WnQn5igtiKKeYA9 8y4ieOg9dXvnyX2BfOlp9HpQcXV2Bml4wySZTpqmu93qSCjGvpV1wFVEsNV2vqNsG2pl bCdEASxPVFezhhvWKyTkNU/099HkBErDYbwBqPcZgpX4jqswoY8fJKqHyudsMlE6y+Nj ME70HWNyTWfc0ozUolGHSBXs9XKFUIaEmknOGlJ65Oj5NrFLxIK/25cJsSf1ddaF1Iam kE5hm2UHATF4z8y8DE5NC9NKhzzm3wc8os6/bl1tak1qZXBgears7lv8L5ZziEwmxCyR y1Gg== X-Gm-Message-State: AOAM532kySue95JVpCtZ4DsMfRhAk3COcgGUN4i5P1dPFVvbvgLh8POy JyRqqQ/Ey7+fid1t6uGC387DHA== X-Google-Smtp-Source: ABdhPJzdLMiksTMQdqCepf78gGgZtIFOW3ExzbUxlX5eS3WY+CK+F7gSOxBBLuTDBjZCUqzfXp07nw== X-Received: by 2002:adf:9031:: with SMTP id h46mr27463357wrh.19.1612899282629; Tue, 09 Feb 2021 11:34:42 -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 a132sm6621471wmf.42.2021.02.09.11.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 11:34:42 -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: [PATCHv4 4/6] doc: describe the scp03 command Date: Tue, 9 Feb 2021 20:34:11 +0100 Message-Id: <20210209193413.26572-4-jorge@foundries.io> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210209193413.26572-1-jorge@foundries.io> References: <20210209193413.26572-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