Skip to content

Commit

Permalink
architecture: porting_guidelines: mention drvcrypt framework
Browse files Browse the repository at this point in the history
Updates Hardware Crypt IP section of the porting guide to mention
drvcrypt framework for integration of device specific HW assisted
crypto drivers.

Acked-by: Jerome Forissier <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms authored and jbech-linaro committed Nov 27, 2023
1 parent c884b7f commit 6846187
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions architecture/porting_guidelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -317,17 +317,12 @@ Hardware Crypto IP
By default OP-TEE uses a software crypto library (currently mbed TLS and
LibTomCrypt) and you have the ability to enable Crypto Extensions that were
introduced with ARMv8-A (if the device is capable of that). Some of the devices
we have in our hands do have hardware crypto IP's, but due to NDA's etc it has
not been possible to enable it. If you have a device capable of doing crypto
operations on a dedicated crypto block and you prefer to use that in favor for
the software implementation, then you will need to implement relevant functions
defined in `core/include/crypto/crypto.h`_, the Crypto API, and write the low
level driver that communicates with the device. Our
supported in OP-TEE OS repository have hardware crypto capabilities. A
framework, named drvcrypt has been designed to integrate them. The
`drvcrypt_register_*()`` API functions allow drivers to register support for
given cryptographic operations in OP-TEE core crypto API. Our
:ref:`cryptographic_implementation` page describes in detail how the Crypto API
is integrated. Since the communication with crypto blocks tends to be quite
different depending on what kind of crypto IP you have, we have not written
how that should be done. It might be that we do that in the future when get hold
of a device where we can use the crypto block.
is integrated.

Random Number Generator
***********************
Expand Down

0 comments on commit 6846187

Please sign in to comment.