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

Go to the source code of this file.

Data Structures

struct  cop_symcpb_aes_ecb
 
struct  cop_symcpb_aes_cbc
 
struct  cop_symcpb_aes_gca
 
struct  cop_symcpb_aes_gcm
 
struct  cop_symcpb_aes_ctr
 
struct  cop_symcpb_aes_cca
 
struct  cop_symcpb_aes_ccm
 
struct  cop_symcpb_aes_xcbc
 
struct  cop_symcpb_sha256
 
struct  cop_symcpb_sha512
 
struct  cop_symcpb_header
 
struct  cop_parameter_block
 
struct  cop_status_block
 
struct  nx_csbcpb
 

Macros

#define NX_FDM_INTERMEDIATE   0x01
 
#define NX_FDM_CONTINUATION   0x02
 
#define NX_FDM_ENDE_ENCRYPT   0x80
 
#define NX_CPB_FDM(c)   ((c)->cpb.hdr.fdm)
 
#define NX_CPB_KS_DS(c)   ((c)->cpb.hdr.ks_ds)
 
#define NX_CPB_KEY_SIZE(c)   (NX_CPB_KS_DS(c) >> 4)
 
#define NX_CPB_SET_KEY_SIZE(c, x)   NX_CPB_KS_DS(c) |= ((x) << 4)
 
#define NX_CPB_SET_DIGEST_SIZE(c, x)   NX_CPB_KS_DS(c) |= (x)
 
#define NX_CSB_VALID_BIT   0x80
 
#define NX_MODE_AES_ECB   0
 
#define NX_MODE_AES_CBC   1
 
#define NX_MODE_AES_GMAC   2
 
#define NX_MODE_AES_GCA   3
 
#define NX_MODE_AES_GCM   4
 
#define NX_MODE_AES_CCA   5
 
#define NX_MODE_AES_CCM   6
 
#define NX_MODE_AES_CTR   7
 
#define NX_MODE_AES_XCBC_MAC   20
 
#define NX_MODE_SHA   0
 
#define NX_MODE_SHA_HMAC   1
 
#define NX_MODE_AES_CBC_HMAC_ETA   8
 
#define NX_MODE_AES_CBC_HMAC_ATE   9
 
#define NX_MODE_AES_CBC_HMAC_EAA   10
 
#define NX_MODE_AES_CTR_HMAC_ETA   12
 
#define NX_MODE_AES_CTR_HMAC_ATE   13
 
#define NX_MODE_AES_CTR_HMAC_EAA   14
 
#define NX_FDM_CI_FULL   0
 
#define NX_FDM_CI_FIRST   1
 
#define NX_FDM_CI_LAST   2
 
#define NX_FDM_CI_MIDDLE   3
 
#define NX_FDM_PR_NONE   0
 
#define NX_FDM_PR_PAD   1
 
#define NX_KS_AES_128   1
 
#define NX_KS_AES_192   2
 
#define NX_KS_AES_256   3
 
#define NX_DS_SHA256   2
 
#define NX_DS_SHA512   3
 
#define NX_FC_AES   0
 
#define NX_FC_SHA   2
 
#define NX_FC_AES_HMAC   6
 
#define NX_MAX_FC   (NX_FC_AES_HMAC + 1)
 
#define NX_MAX_MODE   (NX_MODE_AES_XCBC_MAC + 1)
 
#define HCOP_FC_AES   NX_FC_AES
 
#define HCOP_FC_SHA   NX_FC_SHA
 
#define HCOP_FC_AES_HMAC   NX_FC_AES_HMAC
 
#define NX_PROPS_AES_128   0
 
#define NX_PROPS_AES_192   1
 
#define NX_PROPS_AES_256   2
 
#define NX_PROPS_SHA256   1
 
#define NX_PROPS_SHA512   2
 

Variables

struct cop_symcpb_aes_ecb __packed
 

Macro Definition Documentation

#define HCOP_FC_AES   NX_FC_AES

Definition at line 194 of file nx_csbcpb.h.

#define HCOP_FC_AES_HMAC   NX_FC_AES_HMAC

Definition at line 196 of file nx_csbcpb.h.

#define HCOP_FC_SHA   NX_FC_SHA

Definition at line 195 of file nx_csbcpb.h.

#define NX_CPB_FDM (   c)    ((c)->cpb.hdr.fdm)

Definition at line 103 of file nx_csbcpb.h.

#define NX_CPB_KEY_SIZE (   c)    (NX_CPB_KS_DS(c) >> 4)

Definition at line 106 of file nx_csbcpb.h.

#define NX_CPB_KS_DS (   c)    ((c)->cpb.hdr.ks_ds)

Definition at line 104 of file nx_csbcpb.h.

#define NX_CPB_SET_DIGEST_SIZE (   c,
  x 
)    NX_CPB_KS_DS(c) |= (x)

Definition at line 108 of file nx_csbcpb.h.

#define NX_CPB_SET_KEY_SIZE (   c,
  x 
)    NX_CPB_KS_DS(c) |= ((x) << 4)

Definition at line 107 of file nx_csbcpb.h.

#define NX_CSB_VALID_BIT   0x80

Definition at line 134 of file nx_csbcpb.h.

#define NX_DS_SHA256   2

Definition at line 184 of file nx_csbcpb.h.

#define NX_DS_SHA512   3

Definition at line 185 of file nx_csbcpb.h.

#define NX_FC_AES   0

Definition at line 187 of file nx_csbcpb.h.

#define NX_FC_AES_HMAC   6

Definition at line 189 of file nx_csbcpb.h.

#define NX_FC_SHA   2

Definition at line 188 of file nx_csbcpb.h.

#define NX_FDM_CI_FIRST   1

Definition at line 173 of file nx_csbcpb.h.

#define NX_FDM_CI_FULL   0

Definition at line 172 of file nx_csbcpb.h.

#define NX_FDM_CI_LAST   2

Definition at line 174 of file nx_csbcpb.h.

#define NX_FDM_CI_MIDDLE   3

Definition at line 175 of file nx_csbcpb.h.

#define NX_FDM_CONTINUATION   0x02

Definition at line 100 of file nx_csbcpb.h.

#define NX_FDM_ENDE_ENCRYPT   0x80

Definition at line 101 of file nx_csbcpb.h.

#define NX_FDM_INTERMEDIATE   0x01

Definition at line 99 of file nx_csbcpb.h.

#define NX_FDM_PR_NONE   0

Definition at line 177 of file nx_csbcpb.h.

#define NX_FDM_PR_PAD   1

Definition at line 178 of file nx_csbcpb.h.

#define NX_KS_AES_128   1

Definition at line 180 of file nx_csbcpb.h.

#define NX_KS_AES_192   2

Definition at line 181 of file nx_csbcpb.h.

#define NX_KS_AES_256   3

Definition at line 182 of file nx_csbcpb.h.

#define NX_MAX_FC   (NX_FC_AES_HMAC + 1)

Definition at line 191 of file nx_csbcpb.h.

#define NX_MAX_MODE   (NX_MODE_AES_XCBC_MAC + 1)

Definition at line 192 of file nx_csbcpb.h.

#define NX_MODE_AES_CBC   1

Definition at line 155 of file nx_csbcpb.h.

#define NX_MODE_AES_CBC_HMAC_ATE   9

Definition at line 166 of file nx_csbcpb.h.

#define NX_MODE_AES_CBC_HMAC_EAA   10

Definition at line 167 of file nx_csbcpb.h.

#define NX_MODE_AES_CBC_HMAC_ETA   8

Definition at line 165 of file nx_csbcpb.h.

#define NX_MODE_AES_CCA   5

Definition at line 159 of file nx_csbcpb.h.

#define NX_MODE_AES_CCM   6

Definition at line 160 of file nx_csbcpb.h.

#define NX_MODE_AES_CTR   7

Definition at line 161 of file nx_csbcpb.h.

#define NX_MODE_AES_CTR_HMAC_ATE   13

Definition at line 169 of file nx_csbcpb.h.

#define NX_MODE_AES_CTR_HMAC_EAA   14

Definition at line 170 of file nx_csbcpb.h.

#define NX_MODE_AES_CTR_HMAC_ETA   12

Definition at line 168 of file nx_csbcpb.h.

#define NX_MODE_AES_ECB   0

Definition at line 154 of file nx_csbcpb.h.

#define NX_MODE_AES_GCA   3

Definition at line 157 of file nx_csbcpb.h.

#define NX_MODE_AES_GCM   4

Definition at line 158 of file nx_csbcpb.h.

#define NX_MODE_AES_GMAC   2

Definition at line 156 of file nx_csbcpb.h.

#define NX_MODE_AES_XCBC_MAC   20

Definition at line 162 of file nx_csbcpb.h.

#define NX_MODE_SHA   0

Definition at line 163 of file nx_csbcpb.h.

#define NX_MODE_SHA_HMAC   1

Definition at line 164 of file nx_csbcpb.h.

#define NX_PROPS_AES_128   0

Definition at line 199 of file nx_csbcpb.h.

#define NX_PROPS_AES_192   1

Definition at line 200 of file nx_csbcpb.h.

#define NX_PROPS_AES_256   2

Definition at line 201 of file nx_csbcpb.h.

#define NX_PROPS_SHA256   1

Definition at line 202 of file nx_csbcpb.h.

#define NX_PROPS_SHA512   2

Definition at line 203 of file nx_csbcpb.h.

Variable Documentation