Skip to content

Commit

Permalink
api extensions: main header file is <tee_internal_api_extensions.h>
Browse files Browse the repository at this point in the history
TEE Internal API extensions are declared in two header files for TAs to
use: <tee_api_defines_extensions.h> and <tee_internal_api_extensions.h>.
The former contains macro definitions, the latter declares new functions
and also includes the other one. While it may be enough for a TA to
include only the former (for key derivation extensions in particular),
for simplicity let's document only <tee_internal_api_extensions.h>.

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
  • Loading branch information
jforissier authored and jbech-linaro committed Sep 27, 2021
1 parent 58f3d02 commit 6f47b16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions architecture/globalplatform_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Extensions
In addition to what is stated in :ref:`tee_internal_core_api`, there are some
non-official extensions in OP-TEE.

Trusted Applications should include header file ``tee_api_defines_extensions.h``
Trusted Applications should include header file ``tee_internal_api_extensions.h``
to import the definitions of the extensions. For each extension, a configuration
directive prefixed ``CFG_`` allows one to disable support for the extension when
building the OP-TEE packages.
Expand Down Expand Up @@ -420,8 +420,7 @@ HKDF
OP-TEE implements the *HMAC-based Extract-and-Expand Key Derivation Function
(HKDF)* as specified in `RFC 5869`_. This file documents the extensions to the
:ref:`tee_internal_core_api` v1.1 that were implemented to support this
algorithm. Trusted Applications should include
``<tee_api_defines_extensions.h>`` to import the definitions.
algorithm.

Note that the implementation follows the recommendations of version 1.1 of the
specification for adding new algorithms. It should make it compatible with
Expand Down

0 comments on commit 6f47b16

Please sign in to comment.