Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
caamalg.c File Reference
#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_ctx
 
struct  aead_edesc
 
struct  ablkcipher_edesc
 
struct  caam_alg_template
 
struct  caam_crypto_alg
 

Macros

#define CAAM_CRA_PRIORITY   3000
 
#define CAAM_MAX_KEY_SIZE
 
#define CAAM_MAX_IV_LENGTH   16
 
#define DESC_JOB_IO_LEN   (CAAM_CMD_SZ * 5 + CAAM_PTR_SZ * 3)
 
#define DESC_AEAD_BASE   (4 * CAAM_CMD_SZ)
 
#define DESC_AEAD_ENC_LEN   (DESC_AEAD_BASE + 16 * CAAM_CMD_SZ)
 
#define DESC_AEAD_DEC_LEN   (DESC_AEAD_BASE + 21 * CAAM_CMD_SZ)
 
#define DESC_AEAD_GIVENC_LEN   (DESC_AEAD_ENC_LEN + 7 * CAAM_CMD_SZ)
 
#define DESC_ABLKCIPHER_BASE   (3 * CAAM_CMD_SZ)
 
#define DESC_ABLKCIPHER_ENC_LEN
 
#define DESC_ABLKCIPHER_DEC_LEN
 
#define DESC_MAX_USED_BYTES
 
#define DESC_MAX_USED_LEN   (DESC_MAX_USED_BYTES / CAAM_CMD_SZ)
 
#define debug(format, arg...)
 
#define GIV_SRC_CONTIG   1
 
#define GIV_DST_CONTIG   (1 << 1)
 
#define template_aead   template_u.aead
 
#define template_ablkcipher   template_u.ablkcipher
 

Functions

 module_init (caam_algapi_init)
 
 module_exit (caam_algapi_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("FSL CAAM support for crypto API")
 
 MODULE_AUTHOR ("Freescale Semiconductor - NMG/STC")
 

Macro Definition Documentation

#define CAAM_CRA_PRIORITY   3000

Definition at line 60 of file caamalg.c.

#define CAAM_MAX_IV_LENGTH   16

Definition at line 65 of file caamalg.c.

#define CAAM_MAX_KEY_SIZE
Value:
SHA512_DIGEST_SIZE * 2)

Definition at line 62 of file caamalg.c.

#define debug (   format,
  arg... 
)

Definition at line 91 of file caamalg.c.

#define DESC_ABLKCIPHER_BASE   (3 * CAAM_CMD_SZ)

Definition at line 75 of file caamalg.c.

#define DESC_ABLKCIPHER_DEC_LEN
Value:

Definition at line 78 of file caamalg.c.

#define DESC_ABLKCIPHER_ENC_LEN
Value:

Definition at line 76 of file caamalg.c.

#define DESC_AEAD_BASE   (4 * CAAM_CMD_SZ)

Definition at line 70 of file caamalg.c.

#define DESC_AEAD_DEC_LEN   (DESC_AEAD_BASE + 21 * CAAM_CMD_SZ)

Definition at line 72 of file caamalg.c.

#define DESC_AEAD_ENC_LEN   (DESC_AEAD_BASE + 16 * CAAM_CMD_SZ)

Definition at line 71 of file caamalg.c.

#define DESC_AEAD_GIVENC_LEN   (DESC_AEAD_ENC_LEN + 7 * CAAM_CMD_SZ)

Definition at line 73 of file caamalg.c.

#define DESC_JOB_IO_LEN   (CAAM_CMD_SZ * 5 + CAAM_PTR_SZ * 3)

Definition at line 68 of file caamalg.c.

#define DESC_MAX_USED_BYTES
Value:
CAAM_MAX_KEY_SIZE)

Definition at line 81 of file caamalg.c.

#define DESC_MAX_USED_LEN   (DESC_MAX_USED_BYTES / CAAM_CMD_SZ)

Definition at line 83 of file caamalg.c.

#define GIV_DST_CONTIG   (1 << 1)

Definition at line 161 of file caamalg.c.

#define GIV_SRC_CONTIG   1

Definition at line 160 of file caamalg.c.

#define template_ablkcipher   template_u.ablkcipher

Definition at line 1633 of file caamalg.c.

#define template_aead   template_u.aead

Definition at line 1632 of file caamalg.c.

Function Documentation

MODULE_AUTHOR ( "Freescale Semiconductor - NMG/STC"  )
MODULE_DESCRIPTION ( "FSL CAAM support for crypto API"  )
module_exit ( caam_algapi_exit  )
module_init ( caam_algapi_init  )
MODULE_LICENSE ( "GPL"  )