Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
crypto_driver_api Struct Reference

Driver Operations Crypto driver operations More...

#include <zephyr/crypto/crypto.h>

Data Fields

crypto_api_query_hw_caps query_hw_caps
  REQ Query crypto hardware capabilities.
crypto_api_cipher_begin_session cipher_begin_session
  REQ Setup a crypto cipher session.
crypto_api_cipher_free_session cipher_free_session
  REQ Cleanup a crypto cipher session.
crypto_api_cipher_async_callback_set cipher_async_callback_set
  OPT Register an asynchronous crypto cipher callback.
crypto_api_hash_begin_session hash_begin_session
  REQ Setup a crypto hash session.
crypto_api_hash_free_session hash_free_session
  REQ Cleanup a crypto hash session.
crypto_api_hash_async_callback_set hash_async_callback_set
  OPT Register an asynchronous crypto hash callback.

Detailed Description

Driver Operations Crypto driver operations

This is the driver API structure any Crypto driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.

Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.

See also
DEVICE_DT_INST_DEFINE()
DEVICE_DT_DEFINE()
DEVICE_API()

Field Documentation

◆ cipher_async_callback_set

crypto_api_cipher_async_callback_set crypto_driver_api::cipher_async_callback_set

OPT Register an asynchronous crypto cipher callback.

◆ cipher_begin_session

crypto_api_cipher_begin_session crypto_driver_api::cipher_begin_session

REQ Setup a crypto cipher session.

◆ cipher_free_session

crypto_api_cipher_free_session crypto_driver_api::cipher_free_session

REQ Cleanup a crypto cipher session.

◆ hash_async_callback_set

crypto_api_hash_async_callback_set crypto_driver_api::hash_async_callback_set

OPT Register an asynchronous crypto hash callback.

◆ hash_begin_session

crypto_api_hash_begin_session crypto_driver_api::hash_begin_session

REQ Setup a crypto hash session.

◆ hash_free_session

crypto_api_hash_free_session crypto_driver_api::hash_free_session

REQ Cleanup a crypto hash session.

◆ query_hw_caps

crypto_api_query_hw_caps crypto_driver_api::query_hw_caps

REQ Query crypto hardware capabilities.


The documentation for this struct was generated from the following file: