#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <doca_dev.h>
#include <doca_aes_gcm.h>
#include <doca_mmap.h>
#include <doca_error.h>
Go to the source code of this file.
|
| void | init_aes_gcm_params (struct aes_gcm_cfg *aes_gcm_cfg) |
| |
| doca_error_t | register_aes_gcm_params (void) |
| |
| doca_error_t | allocate_aes_gcm_resources (const char *pci_addr, uint32_t max_bufs, struct aes_gcm_resources *resources) |
| |
| doca_error_t | destroy_aes_gcm_resources (struct aes_gcm_resources *resources) |
| |
| doca_error_t | submit_aes_gcm_encrypt_task (struct aes_gcm_resources *resources, struct doca_buf *src_buf, struct doca_buf *dst_buf, struct doca_aes_gcm_key *key, const uint8_t *iv, uint32_t iv_length, uint32_t tag_size, uint32_t aad_size) |
| |
| doca_error_t | submit_aes_gcm_decrypt_task (struct aes_gcm_resources *resources, struct doca_buf *src_buf, struct doca_buf *dst_buf, struct doca_aes_gcm_key *key, const uint8_t *iv, uint32_t iv_length, uint32_t tag_size, uint32_t aad_size) |
| |
| doca_error_t | aes_gcm_task_encrypt_is_supported (struct doca_devinfo *devinfo) |
| |
| doca_error_t | aes_gcm_task_decrypt_is_supported (struct doca_devinfo *devinfo) |
| |
| void | encrypt_completed_callback (struct doca_aes_gcm_task_encrypt *encrypt_task, union doca_data task_user_data, union doca_data ctx_user_data) |
| |
| void | encrypt_error_callback (struct doca_aes_gcm_task_encrypt *encrypt_task, union doca_data task_user_data, union doca_data ctx_user_data) |
| |
| void | decrypt_completed_callback (struct doca_aes_gcm_task_decrypt *decrypt_task, union doca_data task_user_data, union doca_data ctx_user_data) |
| |
| void | decrypt_error_callback (struct doca_aes_gcm_task_decrypt *decrypt_task, union doca_data task_user_data, union doca_data ctx_user_data) |
| |
◆ AES_GCM_AUTH_TAG_128_SIZE_IN_BYTES
| #define AES_GCM_AUTH_TAG_128_SIZE_IN_BYTES 16 /* AES-GCM 128 bits authentication tag size */ |
◆ AES_GCM_AUTH_TAG_96_SIZE_IN_BYTES
| #define AES_GCM_AUTH_TAG_96_SIZE_IN_BYTES 12 /* AES-GCM 96 bits authentication tag size */ |
◆ AES_GCM_KEY_128_SIZE_IN_BYTES
| #define AES_GCM_KEY_128_SIZE_IN_BYTES 16 /* AES-GCM 128 bits key size */ |
◆ AES_GCM_KEY_128_STR_SIZE
◆ AES_GCM_KEY_256_SIZE_IN_BYTES
| #define AES_GCM_KEY_256_SIZE_IN_BYTES 32 /* AES-GCM 256 bits key size */ |
◆ AES_GCM_KEY_256_STR_SIZE
◆ MAX_AES_GCM_IV_LENGTH
| #define MAX_AES_GCM_IV_LENGTH 12 /* Max IV length in bytes */ |
◆ MAX_AES_GCM_IV_STR_LENGTH
◆ MAX_AES_GCM_KEY_SIZE
◆ MAX_AES_GCM_KEY_STR_SIZE
◆ MAX_FILE_NAME
◆ NUM_AES_GCM_TASKS
| #define NUM_AES_GCM_TASKS (1) /* Number of AES-GCM tasks */ |
◆ SLEEP_IN_NANOS
| #define SLEEP_IN_NANOS (10 * 1000) /* Sample the task every 10 microseconds */ |
◆ USER_MAX_FILE_NAME
| #define USER_MAX_FILE_NAME 255 /* Max file name length */ |
◆ aes_gcm_mode
| Enumerator |
|---|
| AES_GCM_MODE_ENCRYPT | |
| AES_GCM_MODE_DECRYPT | |
Definition at line 59 of file aes_gcm_common.h.
◆ aes_gcm_task_decrypt_is_supported()
| doca_error_t aes_gcm_task_decrypt_is_supported |
( |
struct doca_devinfo * |
devinfo | ) |
|
◆ aes_gcm_task_encrypt_is_supported()
| doca_error_t aes_gcm_task_encrypt_is_supported |
( |
struct doca_devinfo * |
devinfo | ) |
|
◆ allocate_aes_gcm_resources()
◆ decrypt_completed_callback()
| void decrypt_completed_callback |
( |
struct doca_aes_gcm_task_decrypt * |
decrypt_task, |
|
|
union doca_data |
task_user_data, |
|
|
union doca_data |
ctx_user_data |
|
) |
| |
◆ decrypt_error_callback()
| void decrypt_error_callback |
( |
struct doca_aes_gcm_task_decrypt * |
decrypt_task, |
|
|
union doca_data |
task_user_data, |
|
|
union doca_data |
ctx_user_data |
|
) |
| |
◆ destroy_aes_gcm_resources()
◆ encrypt_completed_callback()
| void encrypt_completed_callback |
( |
struct doca_aes_gcm_task_encrypt * |
encrypt_task, |
|
|
union doca_data |
task_user_data, |
|
|
union doca_data |
ctx_user_data |
|
) |
| |
◆ encrypt_error_callback()
| void encrypt_error_callback |
( |
struct doca_aes_gcm_task_encrypt * |
encrypt_task, |
|
|
union doca_data |
task_user_data, |
|
|
union doca_data |
ctx_user_data |
|
) |
| |
◆ init_aes_gcm_params()
| void init_aes_gcm_params |
( |
struct aes_gcm_cfg * |
aes_gcm_cfg | ) |
|
◆ register_aes_gcm_params()
◆ submit_aes_gcm_decrypt_task()
| doca_error_t submit_aes_gcm_decrypt_task |
( |
struct aes_gcm_resources * |
resources, |
|
|
struct doca_buf * |
src_buf, |
|
|
struct doca_buf * |
dst_buf, |
|
|
struct doca_aes_gcm_key * |
key, |
|
|
const uint8_t * |
iv, |
|
|
uint32_t |
iv_length, |
|
|
uint32_t |
tag_size, |
|
|
uint32_t |
aad_size |
|
) |
| |
◆ submit_aes_gcm_encrypt_task()
| doca_error_t submit_aes_gcm_encrypt_task |
( |
struct aes_gcm_resources * |
resources, |
|
|
struct doca_buf * |
src_buf, |
|
|
struct doca_buf * |
dst_buf, |
|
|
struct doca_aes_gcm_key * |
key, |
|
|
const uint8_t * |
iv, |
|
|
uint32_t |
iv_length, |
|
|
uint32_t |
tag_size, |
|
|
uint32_t |
aad_size |
|
) |
| |