Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
aes_glue.c File Reference
#include <linux/crypto.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/types.h>
#include <crypto/algapi.h>
#include <crypto/aes.h>
#include <asm/fpumacro.h>
#include <asm/pstate.h>
#include <asm/elf.h>
#include "opcodes.h"
#include "crop_devid.c"

Go to the source code of this file.

Data Structures

struct  aes_ops
 
struct  crypto_sparc64_aes_ctx
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define AES_BLOCK_MASK   (~(AES_BLOCK_SIZE-1))
 

Functions

void aes_sparc64_encrypt_128 (const u64 *key, const u32 *input, u32 *output)
 
void aes_sparc64_encrypt_192 (const u64 *key, const u32 *input, u32 *output)
 
void aes_sparc64_encrypt_256 (const u64 *key, const u32 *input, u32 *output)
 
void aes_sparc64_decrypt_128 (const u64 *key, const u32 *input, u32 *output)
 
void aes_sparc64_decrypt_192 (const u64 *key, const u32 *input, u32 *output)
 
void aes_sparc64_decrypt_256 (const u64 *key, const u32 *input, u32 *output)
 
void aes_sparc64_load_encrypt_keys_128 (const u64 *key)
 
void aes_sparc64_load_encrypt_keys_192 (const u64 *key)
 
void aes_sparc64_load_encrypt_keys_256 (const u64 *key)
 
void aes_sparc64_load_decrypt_keys_128 (const u64 *key)
 
void aes_sparc64_load_decrypt_keys_192 (const u64 *key)
 
void aes_sparc64_load_decrypt_keys_256 (const u64 *key)
 
void aes_sparc64_ecb_encrypt_128 (const u64 *key, const u64 *input, u64 *output, unsigned int len)
 
void aes_sparc64_ecb_encrypt_192 (const u64 *key, const u64 *input, u64 *output, unsigned int len)
 
void aes_sparc64_ecb_encrypt_256 (const u64 *key, const u64 *input, u64 *output, unsigned int len)
 
void aes_sparc64_ecb_decrypt_128 (const u64 *key, const u64 *input, u64 *output, unsigned int len)
 
void aes_sparc64_ecb_decrypt_192 (const u64 *key, const u64 *input, u64 *output, unsigned int len)
 
void aes_sparc64_ecb_decrypt_256 (const u64 *key, const u64 *input, u64 *output, unsigned int len)
 
void aes_sparc64_cbc_encrypt_128 (const u64 *key, const u64 *input, u64 *output, unsigned int len, u64 *iv)
 
void aes_sparc64_cbc_encrypt_192 (const u64 *key, const u64 *input, u64 *output, unsigned int len, u64 *iv)
 
void aes_sparc64_cbc_encrypt_256 (const u64 *key, const u64 *input, u64 *output, unsigned int len, u64 *iv)
 
void aes_sparc64_cbc_decrypt_128 (const u64 *key, const u64 *input, u64 *output, unsigned int len, u64 *iv)
 
void aes_sparc64_cbc_decrypt_192 (const u64 *key, const u64 *input, u64 *output, unsigned int len, u64 *iv)
 
void aes_sparc64_cbc_decrypt_256 (const u64 *key, const u64 *input, u64 *output, unsigned int len, u64 *iv)
 
void aes_sparc64_ctr_crypt_128 (const u64 *key, const u64 *input, u64 *output, unsigned int len, u64 *iv)
 
void aes_sparc64_ctr_crypt_192 (const u64 *key, const u64 *input, u64 *output, unsigned int len, u64 *iv)
 
void aes_sparc64_ctr_crypt_256 (const u64 *key, const u64 *input, u64 *output, unsigned int len, u64 *iv)
 
void aes_sparc64_key_expand (const u32 *in_key, u64 *output_key, unsigned int key_len)
 
 module_init (aes_sparc64_mod_init)
 
 module_exit (aes_sparc64_mod_fini)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("AES Secure Hash Algorithm, sparc64 aes opcode accelerated")
 
 MODULE_ALIAS ("aes")
 

Variables

struct aes_ops aes128_ops
 
struct aes_ops aes192_ops
 
struct aes_ops aes256_ops
 

Macro Definition Documentation

#define AES_BLOCK_MASK   (~(AES_BLOCK_SIZE-1))

Definition at line 213 of file aes_glue.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 17 of file aes_glue.c.

Function Documentation

void aes_sparc64_cbc_decrypt_128 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len,
u64 iv 
)
void aes_sparc64_cbc_decrypt_192 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len,
u64 iv 
)
void aes_sparc64_cbc_decrypt_256 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len,
u64 iv 
)
void aes_sparc64_cbc_encrypt_128 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len,
u64 iv 
)
void aes_sparc64_cbc_encrypt_192 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len,
u64 iv 
)
void aes_sparc64_cbc_encrypt_256 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len,
u64 iv 
)
void aes_sparc64_ctr_crypt_128 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len,
u64 iv 
)
void aes_sparc64_ctr_crypt_192 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len,
u64 iv 
)
void aes_sparc64_ctr_crypt_256 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len,
u64 iv 
)
void aes_sparc64_decrypt_128 ( const u64 key,
const u32 input,
u32 output 
)
void aes_sparc64_decrypt_192 ( const u64 key,
const u32 input,
u32 output 
)
void aes_sparc64_decrypt_256 ( const u64 key,
const u32 input,
u32 output 
)
void aes_sparc64_ecb_decrypt_128 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len 
)
void aes_sparc64_ecb_decrypt_192 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len 
)
void aes_sparc64_ecb_decrypt_256 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len 
)
void aes_sparc64_ecb_encrypt_128 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len 
)
void aes_sparc64_ecb_encrypt_192 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len 
)
void aes_sparc64_ecb_encrypt_256 ( const u64 key,
const u64 input,
u64 output,
unsigned int  len 
)
void aes_sparc64_encrypt_128 ( const u64 key,
const u32 input,
u32 output 
)
void aes_sparc64_encrypt_192 ( const u64 key,
const u32 input,
u32 output 
)
void aes_sparc64_encrypt_256 ( const u64 key,
const u32 input,
u32 output 
)
void aes_sparc64_key_expand ( const u32 in_key,
u64 output_key,
unsigned int  key_len 
)
void aes_sparc64_load_decrypt_keys_128 ( const u64 key)
void aes_sparc64_load_decrypt_keys_192 ( const u64 key)
void aes_sparc64_load_decrypt_keys_256 ( const u64 key)
void aes_sparc64_load_encrypt_keys_128 ( const u64 key)
void aes_sparc64_load_encrypt_keys_192 ( const u64 key)
void aes_sparc64_load_encrypt_keys_256 ( const u64 key)
MODULE_ALIAS ( "aes"  )
MODULE_DESCRIPTION ( "AES Secure Hash  Algorithm,
sparc64 aes opcode accelerated"   
)
module_exit ( aes_sparc64_mod_fini  )
module_init ( aes_sparc64_mod_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct aes_ops aes128_ops
Initial value:

Definition at line 127 of file aes_glue.c.

struct aes_ops aes192_ops
Initial value:

Definition at line 139 of file aes_glue.c.

struct aes_ops aes256_ops
Initial value:

Definition at line 151 of file aes_glue.c.