Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
encrypted.c File Reference
#include <linux/uaccess.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/parser.h>
#include <linux/string.h>
#include <linux/err.h>
#include <keys/user-type.h>
#include <keys/trusted-type.h>
#include <keys/encrypted-type.h>
#include <linux/key-type.h>
#include <linux/random.h>
#include <linux/rcupdate.h>
#include <linux/scatterlist.h>
#include <linux/crypto.h>
#include <linux/ctype.h>
#include <crypto/hash.h>
#include <crypto/sha.h>
#include <crypto/aes.h>
#include "encrypted.h"
#include "ecryptfs_format.h"

Go to the source code of this file.

Data Structures

struct  sdesc
 

Macros

#define KEY_TRUSTED_PREFIX_LEN   (sizeof (KEY_TRUSTED_PREFIX) - 1)
 
#define KEY_USER_PREFIX_LEN   (sizeof (KEY_USER_PREFIX) - 1)
 
#define KEY_ECRYPTFS_DESC_LEN   16
 
#define HASH_SIZE   SHA256_DIGEST_SIZE
 
#define MAX_DATA_SIZE   4096
 
#define MIN_DATA_SIZE   20
 

Enumerations

enum  { Opt_err = -1, Opt_new, Opt_load, Opt_update }
 
enum  { Opt_error = -1, Opt_default, Opt_ecryptfs }
 
enum  derived_key_type { ENC_KEY, AUTH_KEY }
 

Functions

 EXPORT_SYMBOL_GPL (key_type_encrypted)
 
 late_initcall (init_encrypted)
 
 module_exit (cleanup_encrypted)
 
 MODULE_LICENSE ("GPL")
 

Variables

struct key_type key_type_encrypted
 

Macro Definition Documentation

#define HASH_SIZE   SHA256_DIGEST_SIZE

Definition at line 53 of file encrypted.c.

#define KEY_ECRYPTFS_DESC_LEN   16

Definition at line 52 of file encrypted.c.

#define KEY_TRUSTED_PREFIX_LEN   (sizeof (KEY_TRUSTED_PREFIX) - 1)

Definition at line 50 of file encrypted.c.

#define KEY_USER_PREFIX_LEN   (sizeof (KEY_USER_PREFIX) - 1)

Definition at line 51 of file encrypted.c.

#define MAX_DATA_SIZE   4096

Definition at line 54 of file encrypted.c.

#define MIN_DATA_SIZE   20

Definition at line 55 of file encrypted.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
Opt_err 
Opt_new 
Opt_load 
Opt_update 

Definition at line 65 of file encrypted.c.

anonymous enum
Enumerator:
Opt_error 
Opt_default 
Opt_ecryptfs 

Definition at line 69 of file encrypted.c.

Enumerator:
ENC_KEY 
AUTH_KEY 

Definition at line 373 of file encrypted.c.

Function Documentation

EXPORT_SYMBOL_GPL ( key_type_encrypted  )
late_initcall ( init_encrypted  )
module_exit ( cleanup_encrypted  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct key_type key_type_encrypted
Initial value:
= {
.name = "encrypted",
.instantiate = encrypted_instantiate,
.update = encrypted_update,
.match = user_match,
.destroy = encrypted_destroy,
.describe = user_describe,
.read = encrypted_read,
}

Definition at line 969 of file encrypted.c.