Linux Kernel
3.7.1
|
#include "compat.h"
#include "regs.h"
#include "intern.h"
#include "desc_constr.h"
#include "jr.h"
#include "error.h"
#include "sg_sw_sec4.h"
#include "key_gen.h"
Go to the source code of this file.
Data Structures | |
struct | caam_hash_ctx |
struct | caam_hash_state |
struct | ahash_edesc |
struct | caam_hash_template |
struct | caam_hash_alg |
Macros | |
#define | CAAM_CRA_PRIORITY 3000 |
#define | CAAM_MAX_HASH_KEY_SIZE (SHA512_DIGEST_SIZE * 2) |
#define | CAAM_MAX_HASH_BLOCK_SIZE SHA512_BLOCK_SIZE |
#define | CAAM_MAX_HASH_DIGEST_SIZE SHA512_DIGEST_SIZE |
#define | DESC_JOB_IO_LEN (CAAM_CMD_SZ * 5 + CAAM_PTR_SZ * 3) |
#define | DESC_AHASH_BASE (4 * CAAM_CMD_SZ) |
#define | DESC_AHASH_UPDATE_LEN (6 * CAAM_CMD_SZ) |
#define | DESC_AHASH_UPDATE_FIRST_LEN (DESC_AHASH_BASE + 4 * CAAM_CMD_SZ) |
#define | DESC_AHASH_FINAL_LEN (DESC_AHASH_BASE + 5 * CAAM_CMD_SZ) |
#define | DESC_AHASH_FINUP_LEN (DESC_AHASH_BASE + 5 * CAAM_CMD_SZ) |
#define | DESC_AHASH_DIGEST_LEN (DESC_AHASH_BASE + 4 * CAAM_CMD_SZ) |
#define | DESC_HASH_MAX_USED_BYTES |
#define | DESC_HASH_MAX_USED_LEN (DESC_HASH_MAX_USED_BYTES / CAAM_CMD_SZ) |
#define | HASH_MSG_LEN 8 |
#define | MAX_CTX_LEN (HASH_MSG_LEN + SHA512_DIGEST_SIZE) |
#define | debug(format, arg...) |
Functions | |
module_init (caam_algapi_hash_init) | |
module_exit (caam_algapi_hash_exit) | |
MODULE_LICENSE ("GPL") | |
MODULE_DESCRIPTION ("FSL CAAM support for ahash functions of crypto API") | |
MODULE_AUTHOR ("Freescale Semiconductor - NMG") | |
#define CAAM_CRA_PRIORITY 3000 |
Definition at line 66 of file caamhash.c.
#define CAAM_MAX_HASH_BLOCK_SIZE SHA512_BLOCK_SIZE |
Definition at line 71 of file caamhash.c.
#define CAAM_MAX_HASH_DIGEST_SIZE SHA512_DIGEST_SIZE |
Definition at line 72 of file caamhash.c.
#define CAAM_MAX_HASH_KEY_SIZE (SHA512_DIGEST_SIZE * 2) |
Definition at line 69 of file caamhash.c.
#define debug | ( | format, | |
arg... | |||
) |
Definition at line 98 of file caamhash.c.
#define DESC_AHASH_BASE (4 * CAAM_CMD_SZ) |
Definition at line 77 of file caamhash.c.
#define DESC_AHASH_DIGEST_LEN (DESC_AHASH_BASE + 4 * CAAM_CMD_SZ) |
Definition at line 82 of file caamhash.c.
#define DESC_AHASH_FINAL_LEN (DESC_AHASH_BASE + 5 * CAAM_CMD_SZ) |
Definition at line 80 of file caamhash.c.
#define DESC_AHASH_FINUP_LEN (DESC_AHASH_BASE + 5 * CAAM_CMD_SZ) |
Definition at line 81 of file caamhash.c.
#define DESC_AHASH_UPDATE_FIRST_LEN (DESC_AHASH_BASE + 4 * CAAM_CMD_SZ) |
Definition at line 79 of file caamhash.c.
#define DESC_AHASH_UPDATE_LEN (6 * CAAM_CMD_SZ) |
Definition at line 78 of file caamhash.c.
#define DESC_HASH_MAX_USED_BYTES |
Definition at line 84 of file caamhash.c.
#define DESC_HASH_MAX_USED_LEN (DESC_HASH_MAX_USED_BYTES / CAAM_CMD_SZ) |
Definition at line 86 of file caamhash.c.
#define DESC_JOB_IO_LEN (CAAM_CMD_SZ * 5 + CAAM_PTR_SZ * 3) |
Definition at line 75 of file caamhash.c.
#define HASH_MSG_LEN 8 |
Definition at line 89 of file caamhash.c.
#define MAX_CTX_LEN (HASH_MSG_LEN + SHA512_DIGEST_SIZE) |
Definition at line 90 of file caamhash.c.
MODULE_AUTHOR | ( | "Freescale Semiconductor - NMG" | ) |
module_exit | ( | caam_algapi_hash_exit | ) |
module_init | ( | caam_algapi_hash_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |