Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
salsa20_glue.c File Reference
#include <crypto/algapi.h>
#include <linux/module.h>
#include <linux/crypto.h>

Go to the source code of this file.

Data Structures

struct  salsa20_ctx
 

Macros

#define SALSA20_IV_SIZE   8U
 
#define SALSA20_MIN_KEY_SIZE   16U
 
#define SALSA20_MAX_KEY_SIZE   32U
 
#define salsa20_keysetup   ECRYPT_keysetup
 
#define salsa20_ivsetup   ECRYPT_ivsetup
 
#define salsa20_encrypt_bytes   ECRYPT_encrypt_bytes
 

Functions

asmlinkage void salsa20_keysetup (struct salsa20_ctx *ctx, const u8 *k, u32 keysize, u32 ivsize)
 
asmlinkage void salsa20_ivsetup (struct salsa20_ctx *ctx, const u8 *iv)
 
asmlinkage void salsa20_encrypt_bytes (struct salsa20_ctx *ctx, const u8 *src, u8 *dst, u32 bytes)
 
 module_init (init)
 
 module_exit (fini)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Salsa20 stream cipher algorithm (optimized assembly version)")
 
 MODULE_ALIAS ("salsa20")
 
 MODULE_ALIAS ("salsa20-asm")
 

Macro Definition Documentation

#define salsa20_encrypt_bytes   ECRYPT_encrypt_bytes

Definition at line 32 of file salsa20_glue.c.

#define SALSA20_IV_SIZE   8U

Definition at line 25 of file salsa20_glue.c.

#define salsa20_ivsetup   ECRYPT_ivsetup

Definition at line 31 of file salsa20_glue.c.

#define salsa20_keysetup   ECRYPT_keysetup

Definition at line 30 of file salsa20_glue.c.

#define SALSA20_MAX_KEY_SIZE   32U

Definition at line 27 of file salsa20_glue.c.

#define SALSA20_MIN_KEY_SIZE   16U

Definition at line 26 of file salsa20_glue.c.

Function Documentation

MODULE_ALIAS ( "salsa20"  )
MODULE_ALIAS ( "salsa20-asm )
MODULE_DESCRIPTION ( "Salsa20 stream cipher algorithm (optimized assembly version)"  )
module_exit ( fini  )
module_init ( init  )
MODULE_LICENSE ( "GPL"  )
asmlinkage void salsa20_encrypt_bytes ( struct salsa20_ctx ctx,
const u8 src,
u8 dst,
u32  bytes 
)
asmlinkage void salsa20_ivsetup ( struct salsa20_ctx ctx,
const u8 iv 
)
asmlinkage void salsa20_keysetup ( struct salsa20_ctx ctx,
const u8 k,
u32  keysize,
u32  ivsize 
)