Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
algapi.c File Reference
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/rtnetlink.h>
#include <linux/slab.h>
#include <linux/string.h>
#include "internal.h"

Go to the source code of this file.

Functions

void crypto_remove_spawns (struct crypto_alg *alg, struct list_head *list, struct crypto_alg *nalg)
 
 EXPORT_SYMBOL_GPL (crypto_remove_spawns)
 
void crypto_alg_tested (const char *name, int err)
 
 EXPORT_SYMBOL_GPL (crypto_alg_tested)
 
void crypto_remove_final (struct list_head *list)
 
 EXPORT_SYMBOL_GPL (crypto_remove_final)
 
int crypto_register_alg (struct crypto_alg *alg)
 
 EXPORT_SYMBOL_GPL (crypto_register_alg)
 
int crypto_unregister_alg (struct crypto_alg *alg)
 
 EXPORT_SYMBOL_GPL (crypto_unregister_alg)
 
int crypto_register_algs (struct crypto_alg *algs, int count)
 
 EXPORT_SYMBOL_GPL (crypto_register_algs)
 
int crypto_unregister_algs (struct crypto_alg *algs, int count)
 
 EXPORT_SYMBOL_GPL (crypto_unregister_algs)
 
int crypto_register_template (struct crypto_template *tmpl)
 
 EXPORT_SYMBOL_GPL (crypto_register_template)
 
void crypto_unregister_template (struct crypto_template *tmpl)
 
 EXPORT_SYMBOL_GPL (crypto_unregister_template)
 
struct crypto_templatecrypto_lookup_template (const char *name)
 
 EXPORT_SYMBOL_GPL (crypto_lookup_template)
 
int crypto_register_instance (struct crypto_template *tmpl, struct crypto_instance *inst)
 
 EXPORT_SYMBOL_GPL (crypto_register_instance)
 
int crypto_unregister_instance (struct crypto_alg *alg)
 
 EXPORT_SYMBOL_GPL (crypto_unregister_instance)
 
int crypto_init_spawn (struct crypto_spawn *spawn, struct crypto_alg *alg, struct crypto_instance *inst, u32 mask)
 
 EXPORT_SYMBOL_GPL (crypto_init_spawn)
 
int crypto_init_spawn2 (struct crypto_spawn *spawn, struct crypto_alg *alg, struct crypto_instance *inst, const struct crypto_type *frontend)
 
 EXPORT_SYMBOL_GPL (crypto_init_spawn2)
 
void crypto_drop_spawn (struct crypto_spawn *spawn)
 
 EXPORT_SYMBOL_GPL (crypto_drop_spawn)
 
struct crypto_tfmcrypto_spawn_tfm (struct crypto_spawn *spawn, u32 type, u32 mask)
 
 EXPORT_SYMBOL_GPL (crypto_spawn_tfm)
 
voidcrypto_spawn_tfm2 (struct crypto_spawn *spawn)
 
 EXPORT_SYMBOL_GPL (crypto_spawn_tfm2)
 
int crypto_register_notifier (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (crypto_register_notifier)
 
int crypto_unregister_notifier (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (crypto_unregister_notifier)
 
struct crypto_attr_typecrypto_get_attr_type (struct rtattr **tb)
 
 EXPORT_SYMBOL_GPL (crypto_get_attr_type)
 
int crypto_check_attr_type (struct rtattr **tb, u32 type)
 
 EXPORT_SYMBOL_GPL (crypto_check_attr_type)
 
const charcrypto_attr_alg_name (struct rtattr *rta)
 
 EXPORT_SYMBOL_GPL (crypto_attr_alg_name)
 
struct crypto_algcrypto_attr_alg2 (struct rtattr *rta, const struct crypto_type *frontend, u32 type, u32 mask)
 
 EXPORT_SYMBOL_GPL (crypto_attr_alg2)
 
int crypto_attr_u32 (struct rtattr *rta, u32 *num)
 
 EXPORT_SYMBOL_GPL (crypto_attr_u32)
 
voidcrypto_alloc_instance2 (const char *name, struct crypto_alg *alg, unsigned int head)
 
 EXPORT_SYMBOL_GPL (crypto_alloc_instance2)
 
struct crypto_instancecrypto_alloc_instance (const char *name, struct crypto_alg *alg)
 
 EXPORT_SYMBOL_GPL (crypto_alloc_instance)
 
void crypto_init_queue (struct crypto_queue *queue, unsigned int max_qlen)
 
 EXPORT_SYMBOL_GPL (crypto_init_queue)
 
int crypto_enqueue_request (struct crypto_queue *queue, struct crypto_async_request *request)
 
 EXPORT_SYMBOL_GPL (crypto_enqueue_request)
 
void__crypto_dequeue_request (struct crypto_queue *queue, unsigned int offset)
 
 EXPORT_SYMBOL_GPL (__crypto_dequeue_request)
 
struct crypto_async_requestcrypto_dequeue_request (struct crypto_queue *queue)
 
 EXPORT_SYMBOL_GPL (crypto_dequeue_request)
 
int crypto_tfm_in_queue (struct crypto_queue *queue, struct crypto_tfm *tfm)
 
 EXPORT_SYMBOL_GPL (crypto_tfm_in_queue)
 
void crypto_inc (u8 *a, unsigned int size)
 
 EXPORT_SYMBOL_GPL (crypto_inc)
 
void crypto_xor (u8 *dst, const u8 *src, unsigned int size)
 
 EXPORT_SYMBOL_GPL (crypto_xor)
 
 module_init (crypto_algapi_init)
 
 module_exit (crypto_algapi_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Cryptographic algorithms API")
 

Function Documentation

void* __crypto_dequeue_request ( struct crypto_queue queue,
unsigned int  offset 
)

Definition at line 871 of file algapi.c.

void crypto_alg_tested ( const char name,
int  err 
)

Definition at line 226 of file algapi.c.

struct crypto_instance* crypto_alloc_instance ( const char name,
struct crypto_alg alg 
)
read

Definition at line 812 of file algapi.c.

void* crypto_alloc_instance2 ( const char name,
struct crypto_alg alg,
unsigned int  head 
)

Definition at line 781 of file algapi.c.

struct crypto_alg* crypto_attr_alg2 ( struct rtattr rta,
const struct crypto_type frontend,
u32  type,
u32  mask 
)
read

Definition at line 747 of file algapi.c.

const char* crypto_attr_alg_name ( struct rtattr rta)

Definition at line 729 of file algapi.c.

int crypto_attr_u32 ( struct rtattr rta,
u32 num 
)

Definition at line 763 of file algapi.c.

int crypto_check_attr_type ( struct rtattr **  tb,
u32  type 
)

Definition at line 714 of file algapi.c.

struct crypto_async_request* crypto_dequeue_request ( struct crypto_queue queue)
read

Definition at line 891 of file algapi.c.

void crypto_drop_spawn ( struct crypto_spawn spawn)

Definition at line 605 of file algapi.c.

int crypto_enqueue_request ( struct crypto_queue queue,
struct crypto_async_request request 
)

Definition at line 850 of file algapi.c.

struct crypto_attr_type* crypto_get_attr_type ( struct rtattr **  tb)
read

Definition at line 696 of file algapi.c.

void crypto_inc ( u8 a,
unsigned int  size 
)

Definition at line 923 of file algapi.c.

void crypto_init_queue ( struct crypto_queue queue,
unsigned int  max_qlen 
)

Definition at line 841 of file algapi.c.

int crypto_init_spawn ( struct crypto_spawn spawn,
struct crypto_alg alg,
struct crypto_instance inst,
u32  mask 
)

Definition at line 568 of file algapi.c.

int crypto_init_spawn2 ( struct crypto_spawn spawn,
struct crypto_alg alg,
struct crypto_instance inst,
const struct crypto_type frontend 
)

Definition at line 588 of file algapi.c.

struct crypto_template* crypto_lookup_template ( const char name)
read

Definition at line 496 of file algapi.c.

int crypto_register_alg ( struct crypto_alg alg)

Definition at line 335 of file algapi.c.

int crypto_register_algs ( struct crypto_alg algs,
int  count 
)

Definition at line 391 of file algapi.c.

int crypto_register_instance ( struct crypto_template tmpl,
struct crypto_instance inst 
)

Definition at line 502 of file algapi.c.

int crypto_register_notifier ( struct notifier_block nb)

Definition at line 684 of file algapi.c.

int crypto_register_template ( struct crypto_template tmpl)

Definition at line 426 of file algapi.c.

void crypto_remove_final ( struct list_head list)

Definition at line 305 of file algapi.c.

void crypto_remove_spawns ( struct crypto_alg alg,
struct list_head list,
struct crypto_alg nalg 
)

Definition at line 114 of file algapi.c.

struct crypto_tfm* crypto_spawn_tfm ( struct crypto_spawn spawn,
u32  type,
u32  mask 
)
read

Definition at line 637 of file algapi.c.

void* crypto_spawn_tfm2 ( struct crypto_spawn spawn)

Definition at line 663 of file algapi.c.

int crypto_tfm_in_queue ( struct crypto_queue queue,
struct crypto_tfm tfm 
)

Definition at line 897 of file algapi.c.

int crypto_unregister_alg ( struct crypto_alg alg)

Definition at line 370 of file algapi.c.

int crypto_unregister_algs ( struct crypto_alg algs,
int  count 
)

Definition at line 411 of file algapi.c.

int crypto_unregister_instance ( struct crypto_alg alg)

Definition at line 539 of file algapi.c.

int crypto_unregister_notifier ( struct notifier_block nb)

Definition at line 690 of file algapi.c.

void crypto_unregister_template ( struct crypto_template tmpl)

Definition at line 447 of file algapi.c.

void crypto_xor ( u8 dst,
const u8 src,
unsigned int  size 
)

Definition at line 945 of file algapi.c.

EXPORT_SYMBOL_GPL ( crypto_remove_spawns  )
EXPORT_SYMBOL_GPL ( crypto_alg_tested  )
EXPORT_SYMBOL_GPL ( crypto_remove_final  )
EXPORT_SYMBOL_GPL ( crypto_register_alg  )
EXPORT_SYMBOL_GPL ( crypto_unregister_alg  )
EXPORT_SYMBOL_GPL ( crypto_register_algs  )
EXPORT_SYMBOL_GPL ( crypto_unregister_algs  )
EXPORT_SYMBOL_GPL ( crypto_register_template  )
EXPORT_SYMBOL_GPL ( crypto_unregister_template  )
EXPORT_SYMBOL_GPL ( crypto_lookup_template  )
EXPORT_SYMBOL_GPL ( crypto_register_instance  )
EXPORT_SYMBOL_GPL ( crypto_unregister_instance  )
EXPORT_SYMBOL_GPL ( crypto_init_spawn  )
EXPORT_SYMBOL_GPL ( crypto_init_spawn2  )
EXPORT_SYMBOL_GPL ( crypto_drop_spawn  )
EXPORT_SYMBOL_GPL ( crypto_spawn_tfm  )
EXPORT_SYMBOL_GPL ( crypto_spawn_tfm2  )
EXPORT_SYMBOL_GPL ( crypto_register_notifier  )
EXPORT_SYMBOL_GPL ( crypto_unregister_notifier  )
EXPORT_SYMBOL_GPL ( crypto_get_attr_type  )
EXPORT_SYMBOL_GPL ( crypto_check_attr_type  )
EXPORT_SYMBOL_GPL ( crypto_attr_alg_name  )
EXPORT_SYMBOL_GPL ( crypto_attr_alg2  )
EXPORT_SYMBOL_GPL ( crypto_attr_u32  )
EXPORT_SYMBOL_GPL ( crypto_alloc_instance2  )
EXPORT_SYMBOL_GPL ( crypto_alloc_instance  )
EXPORT_SYMBOL_GPL ( crypto_init_queue  )
EXPORT_SYMBOL_GPL ( crypto_enqueue_request  )
EXPORT_SYMBOL_GPL ( __crypto_dequeue_request  )
EXPORT_SYMBOL_GPL ( crypto_dequeue_request  )
EXPORT_SYMBOL_GPL ( crypto_tfm_in_queue  )
EXPORT_SYMBOL_GPL ( crypto_inc  )
EXPORT_SYMBOL_GPL ( crypto_xor  )
MODULE_DESCRIPTION ( "Cryptographic algorithms API"  )
module_exit ( crypto_algapi_exit  )
module_init ( crypto_algapi_init  )
MODULE_LICENSE ( "GPL"  )