Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
glue_helper.h File Reference
#include <linux/kernel.h>
#include <linux/crypto.h>
#include <asm/i387.h>
#include <crypto/b128ops.h>

Go to the source code of this file.

Data Structures

struct  common_glue_func_entry
 
struct  common_glue_ctx
 

Macros

#define GLUE_FUNC_CAST(fn)   ((common_glue_func_t)(fn))
 
#define GLUE_CBC_FUNC_CAST(fn)   ((common_glue_cbc_func_t)(fn))
 
#define GLUE_CTR_FUNC_CAST(fn)   ((common_glue_ctr_func_t)(fn))
 

Typedefs

typedef void(* common_glue_func_t )(void *ctx, u8 *dst, const u8 *src)
 
typedef void(* common_glue_cbc_func_t )(void *ctx, u128 *dst, const u128 *src)
 
typedef void(* common_glue_ctr_func_t )(void *ctx, u128 *dst, const u128 *src, u128 *iv)
 

Functions

int glue_ecb_crypt_128bit (const struct common_glue_ctx *gctx, struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes)
 
int glue_cbc_encrypt_128bit (const common_glue_func_t fn, struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes)
 
int glue_cbc_decrypt_128bit (const struct common_glue_ctx *gctx, struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes)
 
int glue_ctr_crypt_128bit (const struct common_glue_ctx *gctx, struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes)
 

Macro Definition Documentation

#define GLUE_CBC_FUNC_CAST (   fn)    ((common_glue_cbc_func_t)(fn))

Definition at line 19 of file glue_helper.h.

#define GLUE_CTR_FUNC_CAST (   fn)    ((common_glue_ctr_func_t)(fn))

Definition at line 20 of file glue_helper.h.

#define GLUE_FUNC_CAST (   fn)    ((common_glue_func_t)(fn))

Definition at line 18 of file glue_helper.h.

Typedef Documentation

typedef void(* common_glue_cbc_func_t)(void *ctx, u128 *dst, const u128 *src)

Definition at line 14 of file glue_helper.h.

typedef void(* common_glue_ctr_func_t)(void *ctx, u128 *dst, const u128 *src, u128 *iv)

Definition at line 15 of file glue_helper.h.

typedef void(* common_glue_func_t)(void *ctx, u8 *dst, const u8 *src)

Definition at line 13 of file glue_helper.h.

Function Documentation

int glue_cbc_decrypt_128bit ( const struct common_glue_ctx gctx,
struct blkcipher_desc desc,
struct scatterlist dst,
struct scatterlist src,
unsigned int  nbytes 
)

Definition at line 191 of file glue_helper.c.

int glue_cbc_encrypt_128bit ( const common_glue_func_t  fn,
struct blkcipher_desc desc,
struct scatterlist dst,
struct scatterlist src,
unsigned int  nbytes 
)

Definition at line 117 of file glue_helper.c.

int glue_ctr_crypt_128bit ( const struct common_glue_ctx gctx,
struct blkcipher_desc desc,
struct scatterlist dst,
struct scatterlist src,
unsigned int  nbytes 
)

Definition at line 276 of file glue_helper.c.

int glue_ecb_crypt_128bit ( const struct common_glue_ctx gctx,
struct blkcipher_desc desc,
struct scatterlist dst,
struct scatterlist src,
unsigned int  nbytes 
)

Definition at line 81 of file glue_helper.c.