Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtl_crypto.h File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/string.h>
#include <asm/page.h>
#include <asm/errno.h>

Go to the source code of this file.

Data Structures

struct  cipher_alg
 
struct  digest_alg
 
struct  compress_alg
 
struct  crypto_alg
 
struct  cipher_tfm
 
struct  digest_tfm
 
struct  compress_tfm
 
struct  crypto_tfm
 

Macros

#define crypto_register_alg   crypto_register_alg_rsl
 
#define crypto_unregister_alg   crypto_unregister_alg_rsl
 
#define crypto_alloc_tfm   crypto_alloc_tfm_rsl
 
#define crypto_free_tfm   crypto_free_tfm_rsl
 
#define crypto_alg_available   crypto_alg_available_rsl
 
#define CRYPTO_ALG_TYPE_MASK   0x000000ff
 
#define CRYPTO_ALG_TYPE_CIPHER   0x00000001
 
#define CRYPTO_ALG_TYPE_DIGEST   0x00000002
 
#define CRYPTO_ALG_TYPE_COMPRESS   0x00000004
 
#define CRYPTO_TFM_MODE_MASK   0x000000ff
 
#define CRYPTO_TFM_REQ_MASK   0x000fff00
 
#define CRYPTO_TFM_RES_MASK   0xfff00000
 
#define CRYPTO_TFM_MODE_ECB   0x00000001
 
#define CRYPTO_TFM_MODE_CBC   0x00000002
 
#define CRYPTO_TFM_MODE_CFB   0x00000004
 
#define CRYPTO_TFM_MODE_CTR   0x00000008
 
#define CRYPTO_TFM_REQ_WEAK_KEY   0x00000100
 
#define CRYPTO_TFM_RES_WEAK_KEY   0x00100000
 
#define CRYPTO_TFM_RES_BAD_KEY_LEN   0x00200000
 
#define CRYPTO_TFM_RES_BAD_KEY_SCHED   0x00400000
 
#define CRYPTO_TFM_RES_BAD_BLOCK_LEN   0x00800000
 
#define CRYPTO_TFM_RES_BAD_FLAGS   0x01000000
 
#define CRYPTO_UNSPEC   0
 
#define CRYPTO_MAX_ALG_NAME   64
 
#define cra_cipher   cra_u.cipher
 
#define cra_digest   cra_u.digest
 
#define cra_compress   cra_u.compress
 
#define crt_cipher   crt_u.cipher
 
#define crt_digest   crt_u.digest
 
#define crt_compress   crt_u.compress
 

Functions

int crypto_register_alg (struct crypto_alg *alg)
 
int crypto_unregister_alg (struct crypto_alg *alg)
 
int crypto_alg_available (const char *name, u32 flags)
 
struct crypto_tfmcrypto_alloc_tfm (const char *alg_name, u32 tfm_flags)
 
void crypto_free_tfm (struct crypto_tfm *tfm)
 

Macro Definition Documentation

#define cra_cipher   cra_u.cipher

Definition at line 99 of file rtl_crypto.h.

#define cra_compress   cra_u.compress

Definition at line 101 of file rtl_crypto.h.

#define cra_digest   cra_u.digest

Definition at line 100 of file rtl_crypto.h.

#define crt_cipher   crt_u.cipher

Definition at line 185 of file rtl_crypto.h.

#define crt_compress   crt_u.compress

Definition at line 187 of file rtl_crypto.h.

#define crt_digest   crt_u.digest

Definition at line 186 of file rtl_crypto.h.

#define crypto_alg_available   crypto_alg_available_rsl

Definition at line 31 of file rtl_crypto.h.

#define CRYPTO_ALG_TYPE_CIPHER   0x00000001

Definition at line 37 of file rtl_crypto.h.

#define CRYPTO_ALG_TYPE_COMPRESS   0x00000004

Definition at line 39 of file rtl_crypto.h.

#define CRYPTO_ALG_TYPE_DIGEST   0x00000002

Definition at line 38 of file rtl_crypto.h.

#define CRYPTO_ALG_TYPE_MASK   0x000000ff

Definition at line 36 of file rtl_crypto.h.

#define crypto_alloc_tfm   crypto_alloc_tfm_rsl

Definition at line 29 of file rtl_crypto.h.

#define crypto_free_tfm   crypto_free_tfm_rsl

Definition at line 30 of file rtl_crypto.h.

#define CRYPTO_MAX_ALG_NAME   64

Definition at line 64 of file rtl_crypto.h.

#define crypto_register_alg   crypto_register_alg_rsl

Definition at line 27 of file rtl_crypto.h.

#define CRYPTO_TFM_MODE_CBC   0x00000002

Definition at line 49 of file rtl_crypto.h.

#define CRYPTO_TFM_MODE_CFB   0x00000004

Definition at line 50 of file rtl_crypto.h.

#define CRYPTO_TFM_MODE_CTR   0x00000008

Definition at line 51 of file rtl_crypto.h.

#define CRYPTO_TFM_MODE_ECB   0x00000001

Definition at line 48 of file rtl_crypto.h.

#define CRYPTO_TFM_MODE_MASK   0x000000ff

Definition at line 44 of file rtl_crypto.h.

#define CRYPTO_TFM_REQ_MASK   0x000fff00

Definition at line 45 of file rtl_crypto.h.

#define CRYPTO_TFM_REQ_WEAK_KEY   0x00000100

Definition at line 53 of file rtl_crypto.h.

#define CRYPTO_TFM_RES_BAD_BLOCK_LEN   0x00800000

Definition at line 57 of file rtl_crypto.h.

#define CRYPTO_TFM_RES_BAD_FLAGS   0x01000000

Definition at line 58 of file rtl_crypto.h.

#define CRYPTO_TFM_RES_BAD_KEY_LEN   0x00200000

Definition at line 55 of file rtl_crypto.h.

#define CRYPTO_TFM_RES_BAD_KEY_SCHED   0x00400000

Definition at line 56 of file rtl_crypto.h.

#define CRYPTO_TFM_RES_MASK   0xfff00000

Definition at line 46 of file rtl_crypto.h.

#define CRYPTO_TFM_RES_WEAK_KEY   0x00100000

Definition at line 54 of file rtl_crypto.h.

#define crypto_unregister_alg   crypto_unregister_alg_rsl

Definition at line 28 of file rtl_crypto.h.

#define CRYPTO_UNSPEC   0

Definition at line 63 of file rtl_crypto.h.

Function Documentation

int crypto_alg_available ( const char name,
u32  flags 
)
struct crypto_tfm* crypto_alloc_tfm ( const char alg_name,
u32  tfm_flags 
)
read

Definition at line 33 of file crypto_compat.h.

void crypto_free_tfm ( struct crypto_tfm tfm)
int crypto_register_alg ( struct crypto_alg alg)

Definition at line 335 of file algapi.c.

int crypto_unregister_alg ( struct crypto_alg alg)

Definition at line 370 of file algapi.c.