Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
Crypto APIs. More...
Modules | |
Cipher | |
Crypto Cipher APIs. | |
Hash | |
Crypto Hash APIs. | |
Random Function APIs | |
Random Function APIs. | |
Data Structures | |
struct | crypto_driver_api |
Crypto driver API definition. More... | |
Macros | |
#define | CAP_OPAQUE_KEY_HNDL BIT(0) |
#define | CAP_RAW_KEY BIT(1) |
#define | CAP_KEY_LOADING_API BIT(2) |
#define | CAP_INPLACE_OPS BIT(3) |
Whether the output is placed in separate buffer or not. | |
#define | CAP_SEPARATE_IO_BUFS BIT(4) |
#define | CAP_SYNC_OPS BIT(5) |
These denotes if the output (completion of a cipher_xxx_op) is conveyed by the op function returning, or it is conveyed by an async notification. | |
#define | CAP_ASYNC_OPS BIT(6) |
#define | CAP_AUTONONCE BIT(7) |
Whether the hardware/driver supports autononce feature. | |
#define | CAP_NO_IV_PREFIX BIT(8) |
Don't prefix IV to cipher blocks. | |
Functions | |
static int | crypto_query_hwcaps (const struct device *dev) |
Query the crypto hardware capabilities. | |
Crypto APIs.
#define CAP_ASYNC_OPS BIT(6) |
#include <zephyr/crypto/crypto.h>
#define CAP_AUTONONCE BIT(7) |
#include <zephyr/crypto/crypto.h>
Whether the hardware/driver supports autononce feature.
#define CAP_INPLACE_OPS BIT(3) |
#include <zephyr/crypto/crypto.h>
Whether the output is placed in separate buffer or not.
#define CAP_KEY_LOADING_API BIT(2) |
#include <zephyr/crypto/crypto.h>
#define CAP_NO_IV_PREFIX BIT(8) |
#include <zephyr/crypto/crypto.h>
Don't prefix IV to cipher blocks.
#define CAP_OPAQUE_KEY_HNDL BIT(0) |
#include <zephyr/crypto/crypto.h>
#define CAP_RAW_KEY BIT(1) |
#include <zephyr/crypto/crypto.h>
#define CAP_SEPARATE_IO_BUFS BIT(4) |
#include <zephyr/crypto/crypto.h>
#define CAP_SYNC_OPS BIT(5) |
#include <zephyr/crypto/crypto.h>
These denotes if the output (completion of a cipher_xxx_op) is conveyed by the op function returning, or it is conveyed by an async notification.
|
inlinestatic |
#include <zephyr/crypto/crypto.h>
Query the crypto hardware capabilities.
This API is used by the app to query the capabilities supported by the crypto device. Based on this the app can specify a subset of the supported options to be honored for a session during cipher_begin_session().
dev | Pointer to the device structure for the driver instance. |