Lines Matching +full:0 +full:xff000
14 SPU2_CIPHER_TYPE_NONE = 0x0,
15 SPU2_CIPHER_TYPE_AES128 = 0x1,
16 SPU2_CIPHER_TYPE_AES192 = 0x2,
17 SPU2_CIPHER_TYPE_AES256 = 0x3,
18 SPU2_CIPHER_TYPE_DES = 0x4,
19 SPU2_CIPHER_TYPE_3DES = 0x5,
24 SPU2_CIPHER_MODE_ECB = 0x0,
25 SPU2_CIPHER_MODE_CBC = 0x1,
26 SPU2_CIPHER_MODE_CTR = 0x2,
27 SPU2_CIPHER_MODE_CFB = 0x3,
28 SPU2_CIPHER_MODE_OFB = 0x4,
29 SPU2_CIPHER_MODE_XTS = 0x5,
30 SPU2_CIPHER_MODE_CCM = 0x6,
31 SPU2_CIPHER_MODE_GCM = 0x7,
36 SPU2_HASH_TYPE_NONE = 0x0,
37 SPU2_HASH_TYPE_AES128 = 0x1,
38 SPU2_HASH_TYPE_AES192 = 0x2,
39 SPU2_HASH_TYPE_AES256 = 0x3,
40 SPU2_HASH_TYPE_MD5 = 0x6,
41 SPU2_HASH_TYPE_SHA1 = 0x7,
42 SPU2_HASH_TYPE_SHA224 = 0x8,
43 SPU2_HASH_TYPE_SHA256 = 0x9,
44 SPU2_HASH_TYPE_SHA384 = 0xa,
45 SPU2_HASH_TYPE_SHA512 = 0xb,
46 SPU2_HASH_TYPE_SHA512_224 = 0xc,
47 SPU2_HASH_TYPE_SHA512_256 = 0xd,
48 SPU2_HASH_TYPE_SHA3_224 = 0xe,
49 SPU2_HASH_TYPE_SHA3_256 = 0xf,
50 SPU2_HASH_TYPE_SHA3_384 = 0x10,
51 SPU2_HASH_TYPE_SHA3_512 = 0x11,
56 SPU2_HASH_MODE_CMAC = 0x0,
57 SPU2_HASH_MODE_CBC_MAC = 0x1,
58 SPU2_HASH_MODE_XCBC_MAC = 0x2,
59 SPU2_HASH_MODE_HMAC = 0x3,
60 SPU2_HASH_MODE_RABIN = 0x4,
61 SPU2_HASH_MODE_CCM = 0x5,
62 SPU2_HASH_MODE_GCM = 0x6,
63 SPU2_HASH_MODE_RESERVED = 0x7,
68 SPU2_RET_NO_MD = 0, /* return no metadata */
90 #define SPU2_CIPH_ENCRYPT_EN 0x1 /* 0: decrypt, 1: encrypt */
91 #define SPU2_CIPH_TYPE 0xF0 /* one of spu2_cipher_type */
93 #define SPU2_CIPH_MODE 0xF00 /* one of spu2_cipher_mode */
95 #define SPU2_CFB_MASK 0x7000 /* cipher feedback mask */
97 #define SPU2_PROTO_SEL 0xF00000 /* MACsec, IPsec, TLS... */
99 #define SPU2_HASH_FIRST 0x1000000 /* 1: hash input is input pkt
102 #define SPU2_CHK_TAG 0x2000000 /* 1: check digest provided */
103 #define SPU2_HASH_TYPE 0x1F0000000 /* one of spu2_hash_type */
105 #define SPU2_HASH_MODE 0xF000000000 /* one of spu2_hash_mode */
107 #define SPU2_CIPH_PAD_EN 0x100000000000 /* 1: Add pad to end of payload for
110 #define SPU2_CIPH_PAD 0xFF000000000000 /* cipher pad value */
114 #define SPU2_TAG_LOC 0x1 /* 1: end of payload, 0: undef */
115 #define SPU2_HAS_FR_DATA 0x2 /* 1: msg has frame data */
116 #define SPU2_HAS_AAD1 0x4 /* 1: msg has AAD1 field */
117 #define SPU2_HAS_NAAD 0x8 /* 1: msg has NAAD field */
118 #define SPU2_HAS_AAD2 0x10 /* 1: msg has AAD2 field */
119 #define SPU2_HAS_ESN 0x20 /* 1: msg has ESN field */
120 #define SPU2_HASH_KEY_LEN 0xFF00 /* len of hash key in bytes.
124 #define SPU2_CIPH_KEY_LEN 0xFF00000 /* len of cipher key in bytes */
126 #define SPU2_GENIV 0x10000000 /* 1: hw generates IV */
127 #define SPU2_HASH_IV 0x20000000 /* 1: IV incl in hash */
128 #define SPU2_RET_IV 0x40000000 /* 1: return IV in output msg
131 #define SPU2_RET_IV_LEN 0xF00000000 /* length in bytes of IV returned.
132 * 0 = 16 bytes
135 #define SPU2_IV_OFFSET 0xF000000000 /* gen IV offset */
137 #define SPU2_IV_LEN 0x1F0000000000 /* length of input IV in bytes */
139 #define SPU2_HASH_TAG_LEN 0x7F000000000000 /* hash tag length in bytes */
141 #define SPU2_RETURN_MD 0x300000000000000 /* return metadata */
143 #define SPU2_RETURN_FD 0x400000000000000
144 #define SPU2_RETURN_AAD1 0x800000000000000
145 #define SPU2_RETURN_NAAD 0x1000000000000000
146 #define SPU2_RETURN_AAD2 0x2000000000000000
147 #define SPU2_RETURN_PAY 0x4000000000000000 /* return payload */
150 #define SPU2_AAD1_OFFSET 0xFFF /* byte offset of AAD1 field */
151 #define SPU2_AAD1_LEN 0xFF000 /* length of AAD1 in bytes */
153 #define SPU2_AAD2_OFFSET 0xFFF00000 /* byte offset of AAD2 field */
155 #define SPU2_PL_OFFSET 0xFFFFFFFF00000000 /* payload offset from AAD2 */
159 #define SPU2_PL_LEN 0xFFFFFFFF /* payload length in bytes */
160 #define SPU2_TLS_LEN 0xFFFF00000000 /* TLS encrypt: cipher len