From patchwork Sun Feb 14 15:27:26 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: 1440295 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=Ko34Nrhk; 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 4Ddrjw1K0rz9sBJ for ; Mon, 15 Feb 2021 02:28:52 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8D8278276C; Sun, 14 Feb 2021 16:28:05 +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="Ko34Nrhk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A381E82713; Sun, 14 Feb 2021 16:27:45 +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=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (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 3B2488006D for ; Sun, 14 Feb 2021 16:27:38 +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-x42c.google.com with SMTP id v1so5631826wrd.6 for ; Sun, 14 Feb 2021 07:27:38 -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=gmNdhA2SrE8qVhg0wRKkB05un1deWXwJjVjp4nZN6Pk=; b=Ko34NrhkUx3ef9RTbI7SNeHuna89TFRCkZHQmSJsC2HSopxtzwLRQyqlu1ZTzpINeD ArmYAHmcQx3Tis0TaUJXD5Kx0jRl/XJC0rhYe55klnVql5I0uVvTw57+ehapyYvh0AUl rDb4vk5b89xFVTzDQY19aHSl6zBR9iBu28h/+CyQWCZH29uf7oRKSmEC9eJSQ3wFGm95 jAL0ZEdC8FLKt0UC3hhv7vvcl1pex9l/CVz2uqdhDaKJVPCMbCXIuuns6EdL8prcDc7U Qda0UYwryJBL3DXwqDr+L/2azuTI0fshDqKEC0yib1bpcpWjv+ePuIaGKyDYttvUmNt+ JfVw== 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=gmNdhA2SrE8qVhg0wRKkB05un1deWXwJjVjp4nZN6Pk=; b=lo0xf5omM3Dy4njhPhu9fomZ3U8vU0VgBPYUwxR2+dTmnpS3djSGMpYwI2l6/HDFGk ZCNx5/jCw/Cr4Fln3aay1JZjaxeO0/xuZa30MtWjjsi4IcxdPr9mGRSqNp5RIftpPa3J YTC2803MmahodNL3F0w7a6fTuwB0tRMxSlrSr2CwvOChll02CwVAy5ePcZN+pezNe7aZ 98X5hEfGSt6e2IIeEK5v1zV32kpBDF62pmI/oonVGzceHzD//VjhmzCAyx8rWhpfxYsA jYP7mU5EiSYPJP67P/iFjgkodEb9W69ToK7Yw475OaKfxOr12uE2q+OxNq/V4GQopHUN t3eQ== X-Gm-Message-State: AOAM5329Roy95sS8ao0/x+lZq3myaeNiXOLP8KpaHxttEK1GC2gu8qOT oQmUw+AagrEzCwjnlrJJeBO8/w== X-Google-Smtp-Source: ABdhPJypATr7BsgwvbnKBZBBiB18sxyZs64SYj9ya/9DglH+ZnafrYBj7E1GItOhIKW1Sior0mrgZw== X-Received: by 2002:a5d:58db:: with SMTP id o27mr14056300wrf.397.1613316457766; Sun, 14 Feb 2021 07:27:37 -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 f7sm10520801wmh.39.2021.02.14.07.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 07:27:37 -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: Sun, 14 Feb 2021 16:27:26 +0100 Message-Id: <20210214152728.8628-5-jorge@foundries.io> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210214152728.8628-1-jorge@foundries.io> References: <20210214152728.8628-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