Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
ecryptfs.h File Reference

Go to the source code of this file.

Data Structures

struct  ecryptfs_session_key
 
struct  ecryptfs_password
 
struct  ecryptfs_private_key
 
struct  ecryptfs_auth_tok
 

Macros

#define ECRYPTFS_VERSION_MAJOR   0x00
 
#define ECRYPTFS_VERSION_MINOR   0x04
 
#define ECRYPTFS_SUPPORTED_FILE_VERSION   0x03
 
#define ECRYPTFS_VERSIONING_PASSPHRASE   0x00000001
 
#define ECRYPTFS_VERSIONING_PUBKEY   0x00000002
 
#define ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH   0x00000004
 
#define ECRYPTFS_VERSIONING_POLICY   0x00000008
 
#define ECRYPTFS_VERSIONING_XATTR   0x00000010
 
#define ECRYPTFS_VERSIONING_MULTKEY   0x00000020
 
#define ECRYPTFS_VERSIONING_DEVMISC   0x00000040
 
#define ECRYPTFS_VERSIONING_HMAC   0x00000080
 
#define ECRYPTFS_VERSIONING_FILENAME_ENCRYPTION   0x00000100
 
#define ECRYPTFS_VERSIONING_GCM   0x00000200
 
#define ECRYPTFS_VERSIONING_MASK
 
#define ECRYPTFS_MAX_PASSWORD_LENGTH   64
 
#define ECRYPTFS_MAX_PASSPHRASE_BYTES   ECRYPTFS_MAX_PASSWORD_LENGTH
 
#define ECRYPTFS_SALT_SIZE   8
 
#define ECRYPTFS_SALT_SIZE_HEX   (ECRYPTFS_SALT_SIZE*2)
 
#define ECRYPTFS_SIG_SIZE   8
 
#define ECRYPTFS_SIG_SIZE_HEX   (ECRYPTFS_SIG_SIZE*2)
 
#define ECRYPTFS_PASSWORD_SIG_SIZE   ECRYPTFS_SIG_SIZE_HEX
 
#define ECRYPTFS_MAX_KEY_BYTES   64
 
#define ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES   512
 
#define ECRYPTFS_FILE_VERSION   0x03
 
#define ECRYPTFS_MAX_PKI_NAME_BYTES   16
 
#define RFC2440_CIPHER_DES3_EDE   0x02
 
#define RFC2440_CIPHER_CAST_5   0x03
 
#define RFC2440_CIPHER_BLOWFISH   0x04
 
#define RFC2440_CIPHER_AES_128   0x07
 
#define RFC2440_CIPHER_AES_192   0x08
 
#define RFC2440_CIPHER_AES_256   0x09
 
#define RFC2440_CIPHER_TWOFISH   0x0a
 
#define RFC2440_CIPHER_CAST_6   0x0b
 
#define RFC2440_CIPHER_RSA   0x01
 
#define ECRYPTFS_USERSPACE_SHOULD_TRY_TO_DECRYPT   0x00000001
 
#define ECRYPTFS_USERSPACE_SHOULD_TRY_TO_ENCRYPT   0x00000002
 
#define ECRYPTFS_CONTAINS_DECRYPTED_KEY   0x00000004
 
#define ECRYPTFS_CONTAINS_ENCRYPTED_KEY   0x00000008
 
#define ECRYPTFS_PERSISTENT_PASSWORD   0x01
 
#define ECRYPTFS_SESSION_KEY_ENCRYPTION_KEY_SET   0x02
 
#define ECRYPTFS_ENCRYPT_ONLY   0x00000001
 

Enumerations

enum  ecryptfs_token_types { ECRYPTFS_PASSWORD, ECRYPTFS_PRIVATE_KEY }
 

Functions

struct ecryptfs_auth_tok __attribute__ ((packed))
 

Variables

struct ecryptfs_session_key __attribute__
 
u16 version
 
u16 token_type
 
u32 flags
 
struct ecryptfs_session_key session_key
 
u8 reserved [32]
 
union {
   struct ecryptfs_password   password
 
   struct ecryptfs_private_key   private_key
 
token
 

Macro Definition Documentation

#define ECRYPTFS_CONTAINS_DECRYPTED_KEY   0x00000004

Definition at line 65 of file ecryptfs.h.

#define ECRYPTFS_CONTAINS_ENCRYPTED_KEY   0x00000008

Definition at line 66 of file ecryptfs.h.

#define ECRYPTFS_ENCRYPT_ONLY   0x00000001

Definition at line 114 of file ecryptfs.h.

#define ECRYPTFS_FILE_VERSION   0x03

Definition at line 41 of file ecryptfs.h.

#define ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES   512

Definition at line 40 of file ecryptfs.h.

#define ECRYPTFS_MAX_KEY_BYTES   64

Definition at line 39 of file ecryptfs.h.

#define ECRYPTFS_MAX_PASSPHRASE_BYTES   ECRYPTFS_MAX_PASSWORD_LENGTH

Definition at line 30 of file ecryptfs.h.

#define ECRYPTFS_MAX_PASSWORD_LENGTH   64

Definition at line 29 of file ecryptfs.h.

#define ECRYPTFS_MAX_PKI_NAME_BYTES   16

Definition at line 42 of file ecryptfs.h.

#define ECRYPTFS_PASSWORD_SIG_SIZE   ECRYPTFS_SIG_SIZE_HEX

Definition at line 38 of file ecryptfs.h.

#define ECRYPTFS_PERSISTENT_PASSWORD   0x01

Definition at line 79 of file ecryptfs.h.

#define ECRYPTFS_SALT_SIZE   8

Definition at line 31 of file ecryptfs.h.

#define ECRYPTFS_SALT_SIZE_HEX   (ECRYPTFS_SALT_SIZE*2)

Definition at line 32 of file ecryptfs.h.

#define ECRYPTFS_SESSION_KEY_ENCRYPTION_KEY_SET   0x02

Definition at line 80 of file ecryptfs.h.

#define ECRYPTFS_SIG_SIZE   8

Definition at line 36 of file ecryptfs.h.

#define ECRYPTFS_SIG_SIZE_HEX   (ECRYPTFS_SIG_SIZE*2)

Definition at line 37 of file ecryptfs.h.

#define ECRYPTFS_SUPPORTED_FILE_VERSION   0x03

Definition at line 7 of file ecryptfs.h.

#define ECRYPTFS_USERSPACE_SHOULD_TRY_TO_DECRYPT   0x00000001

Definition at line 63 of file ecryptfs.h.

#define ECRYPTFS_USERSPACE_SHOULD_TRY_TO_ENCRYPT   0x00000002

Definition at line 64 of file ecryptfs.h.

#define ECRYPTFS_VERSION_MAJOR   0x00

Definition at line 5 of file ecryptfs.h.

#define ECRYPTFS_VERSION_MINOR   0x04

Definition at line 6 of file ecryptfs.h.

#define ECRYPTFS_VERSIONING_DEVMISC   0x00000040

Definition at line 18 of file ecryptfs.h.

#define ECRYPTFS_VERSIONING_FILENAME_ENCRYPTION   0x00000100

Definition at line 20 of file ecryptfs.h.

#define ECRYPTFS_VERSIONING_GCM   0x00000200

Definition at line 21 of file ecryptfs.h.

#define ECRYPTFS_VERSIONING_HMAC   0x00000080

Definition at line 19 of file ecryptfs.h.

#define ECRYPTFS_VERSIONING_MASK
#define ECRYPTFS_VERSIONING_MULTKEY   0x00000020

Definition at line 17 of file ecryptfs.h.

#define ECRYPTFS_VERSIONING_PASSPHRASE   0x00000001

Definition at line 12 of file ecryptfs.h.

#define ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH   0x00000004

Definition at line 14 of file ecryptfs.h.

#define ECRYPTFS_VERSIONING_POLICY   0x00000008

Definition at line 15 of file ecryptfs.h.

#define ECRYPTFS_VERSIONING_PUBKEY   0x00000002

Definition at line 13 of file ecryptfs.h.

#define ECRYPTFS_VERSIONING_XATTR   0x00000010

Definition at line 16 of file ecryptfs.h.

#define RFC2440_CIPHER_AES_128   0x07

Definition at line 47 of file ecryptfs.h.

#define RFC2440_CIPHER_AES_192   0x08

Definition at line 48 of file ecryptfs.h.

#define RFC2440_CIPHER_AES_256   0x09

Definition at line 49 of file ecryptfs.h.

#define RFC2440_CIPHER_BLOWFISH   0x04

Definition at line 46 of file ecryptfs.h.

#define RFC2440_CIPHER_CAST_5   0x03

Definition at line 45 of file ecryptfs.h.

#define RFC2440_CIPHER_CAST_6   0x0b

Definition at line 51 of file ecryptfs.h.

#define RFC2440_CIPHER_DES3_EDE   0x02

Definition at line 44 of file ecryptfs.h.

#define RFC2440_CIPHER_RSA   0x01

Definition at line 53 of file ecryptfs.h.

#define RFC2440_CIPHER_TWOFISH   0x0a

Definition at line 50 of file ecryptfs.h.

Enumeration Type Documentation

Enumerator:
ECRYPTFS_PASSWORD 
ECRYPTFS_PRIVATE_KEY 

Definition at line 89 of file ecryptfs.h.

Function Documentation

struct ecryptfs_auth_tok __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

u32 flags

Definition at line 115 of file ecryptfs.h.

Definition at line 119 of file ecryptfs.h.

Definition at line 120 of file ecryptfs.h.

u8 reserved[32]

Definition at line 117 of file ecryptfs.h.

Definition at line 116 of file ecryptfs.h.

union { ... } token

Definition at line 113 of file ecryptfs.h.

u16 version

Definition at line 112 of file ecryptfs.h.