Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
cryptocop.h File Reference
#include <linux/uio.h>

Go to the source code of this file.

Data Structures

struct  strcop_session_op
 
struct  strcop_crypto_op
 

Macros

#define CRYPTOCOP_SESSION_ID_NONE   (0)
 
#define ETRAXCRYPTOCOP_IOCTYPE   (250)
 
#define CRYPTOCOP_IO_CREATE_SESSION   _IOWR(ETRAXCRYPTOCOP_IOCTYPE, 1, struct strcop_session_op)
 
#define CRYPTOCOP_IO_CLOSE_SESSION   _IOW(ETRAXCRYPTOCOP_IOCTYPE, 2, struct strcop_session_op)
 
#define CRYPTOCOP_IO_PROCESS_OP   _IOWR(ETRAXCRYPTOCOP_IOCTYPE, 3, struct strcop_crypto_op)
 
#define CRYPTOCOP_IO_MAXNR   (3)
 
#define CRYPTOCOP_CSUM_LENGTH   (2)
 
#define CRYPTOCOP_MAX_DIGEST_LENGTH   (20) /* SHA-1 20, MD5 16 */
 
#define CRYPTOCOP_MAX_IV_LENGTH   (16) /* (3)DES==8, AES == 16 */
 
#define CRYPTOCOP_MAX_KEY_LENGTH   (32)
 

Typedefs

typedef unsigned long long int cryptocop_session_id
 

Enumerations

enum  cryptocop_cipher_type {
  cryptocop_cipher_des = 0, cryptocop_cipher_3des = 1, cryptocop_cipher_aes = 2, cryptocop_cipher_m2m = 3,
  cryptocop_cipher_none
}
 
enum  cryptocop_digest_type { cryptocop_digest_sha1 = 0, cryptocop_digest_md5 = 1, cryptocop_digest_none }
 
enum  cryptocop_csum_type { cryptocop_csum_le = 0, cryptocop_csum_be = 1, cryptocop_csum_none }
 
enum  cryptocop_cipher_mode { cryptocop_cipher_mode_ecb = 0, cryptocop_cipher_mode_cbc, cryptocop_cipher_mode_none }
 
enum  cryptocop_3des_mode {
  cryptocop_3des_eee = 0, cryptocop_3des_eed = 1, cryptocop_3des_ede = 2, cryptocop_3des_edd = 3,
  cryptocop_3des_dee = 4, cryptocop_3des_ded = 5, cryptocop_3des_dde = 6, cryptocop_3des_ddd = 7
}
 

Macro Definition Documentation

#define CRYPTOCOP_CSUM_LENGTH   (2)

Definition at line 78 of file cryptocop.h.

#define CRYPTOCOP_IO_CLOSE_SESSION   _IOW(ETRAXCRYPTOCOP_IOCTYPE, 2, struct strcop_session_op)

Definition at line 20 of file cryptocop.h.

#define CRYPTOCOP_IO_CREATE_SESSION   _IOWR(ETRAXCRYPTOCOP_IOCTYPE, 1, struct strcop_session_op)

Definition at line 19 of file cryptocop.h.

#define CRYPTOCOP_IO_MAXNR   (3)

Definition at line 22 of file cryptocop.h.

#define CRYPTOCOP_IO_PROCESS_OP   _IOWR(ETRAXCRYPTOCOP_IOCTYPE, 3, struct strcop_crypto_op)

Definition at line 21 of file cryptocop.h.

#define CRYPTOCOP_MAX_DIGEST_LENGTH   (20) /* SHA-1 20, MD5 16 */

Definition at line 79 of file cryptocop.h.

#define CRYPTOCOP_MAX_IV_LENGTH   (16) /* (3)DES==8, AES == 16 */

Definition at line 80 of file cryptocop.h.

#define CRYPTOCOP_MAX_KEY_LENGTH   (32)

Definition at line 81 of file cryptocop.h.

#define CRYPTOCOP_SESSION_ID_NONE   (0)

Definition at line 12 of file cryptocop.h.

#define ETRAXCRYPTOCOP_IOCTYPE   (250)

Definition at line 17 of file cryptocop.h.

Typedef Documentation

typedef unsigned long long int cryptocop_session_id

Definition at line 14 of file cryptocop.h.

Enumeration Type Documentation

Enumerator:
cryptocop_3des_eee 
cryptocop_3des_eed 
cryptocop_3des_ede 
cryptocop_3des_edd 
cryptocop_3des_dee 
cryptocop_3des_ded 
cryptocop_3des_dde 
cryptocop_3des_ddd 

Definition at line 50 of file cryptocop.h.

Enumerator:
cryptocop_cipher_mode_ecb 
cryptocop_cipher_mode_cbc 
cryptocop_cipher_mode_none 

Definition at line 44 of file cryptocop.h.

Enumerator:
cryptocop_cipher_des 
cryptocop_cipher_3des 
cryptocop_cipher_aes 
cryptocop_cipher_m2m 
cryptocop_cipher_none 

Definition at line 24 of file cryptocop.h.

Enumerator:
cryptocop_csum_le 
cryptocop_csum_be 
cryptocop_csum_none 

Definition at line 38 of file cryptocop.h.

Enumerator:
cryptocop_digest_sha1 
cryptocop_digest_md5 
cryptocop_digest_none 

Definition at line 32 of file cryptocop.h.