Go to the documentation of this file.
45 #define GSS_KRB5_K5CLENGTH (5)
48 #define GSS_KRB5_MAX_KEYLEN (32)
51 #define GSS_KRB5_MAX_CKSUM_LEN (20)
54 #define GSS_KRB5_MAX_BLOCKSIZE (16)
81 struct xdr_netobj *
in,
82 struct xdr_netobj *
out);
84 struct xdr_buf *
buf,
int ec,
87 struct xdr_buf *
buf,
u32 *headskip,
92 #define KRB5_CTX_FLAG_INITIATOR 0x00000001
93 #define KRB5_CTX_FLAG_CFX 0x00000002
94 #define KRB5_CTX_FLAG_ACCEPTOR_SUBKEY 0x00000004
124 #define GSS_KRB5_TOK_HDR_LEN (16)
126 #define KG_TOK_MIC_MSG 0x0101
127 #define KG_TOK_WRAP_MSG 0x0201
129 #define KG2_TOK_INITIAL 0x0101
130 #define KG2_TOK_RESPONSE 0x0202
131 #define KG2_TOK_MIC 0x0404
132 #define KG2_TOK_WRAP 0x0504
134 #define KG2_TOKEN_FLAG_SENTBYACCEPTOR 0x01
135 #define KG2_TOKEN_FLAG_SEALED 0x02
136 #define KG2_TOKEN_FLAG_ACCEPTORSUBKEY 0x04
138 #define KG2_RESP_FLAG_ERROR 0x0001
139 #define KG2_RESP_FLAG_DELEG_OK 0x0002
157 #define CKSUMTYPE_CRC32 0x0001
158 #define CKSUMTYPE_RSA_MD4 0x0002
159 #define CKSUMTYPE_RSA_MD4_DES 0x0003
160 #define CKSUMTYPE_DESCBC 0x0004
161 #define CKSUMTYPE_RSA_MD5 0x0007
162 #define CKSUMTYPE_RSA_MD5_DES 0x0008
163 #define CKSUMTYPE_NIST_SHA 0x0009
164 #define CKSUMTYPE_HMAC_SHA1_DES3 0x000c
165 #define CKSUMTYPE_HMAC_SHA1_96_AES128 0x000f
166 #define CKSUMTYPE_HMAC_SHA1_96_AES256 0x0010
167 #define CKSUMTYPE_HMAC_MD5_ARCFOUR -138
170 #define KG_CCACHE_NOMATCH (39756032L)
171 #define KG_KEYTAB_NOMATCH (39756033L)
172 #define KG_TGT_MISSING (39756034L)
173 #define KG_NO_SUBKEY (39756035L)
174 #define KG_CONTEXT_ESTABLISHED (39756036L)
175 #define KG_BAD_SIGN_TYPE (39756037L)
176 #define KG_BAD_LENGTH (39756038L)
177 #define KG_CTX_INCOMPLETE (39756039L)
178 #define KG_CONTEXT (39756040L)
179 #define KG_CRED (39756041L)
180 #define KG_ENC_DESC (39756042L)
181 #define KG_BAD_SEQ (39756043L)
182 #define KG_EMPTY_CCACHE (39756044L)
183 #define KG_NO_CTYPES (39756045L)
188 #define ENCTYPE_NULL 0x0000
189 #define ENCTYPE_DES_CBC_CRC 0x0001
190 #define ENCTYPE_DES_CBC_MD4 0x0002
191 #define ENCTYPE_DES_CBC_MD5 0x0003
192 #define ENCTYPE_DES_CBC_RAW 0x0004
194 #define ENCTYPE_DES3_CBC_SHA 0x0005
195 #define ENCTYPE_DES3_CBC_RAW 0x0006
196 #define ENCTYPE_DES_HMAC_SHA1 0x0008
197 #define ENCTYPE_DES3_CBC_SHA1 0x0010
198 #define ENCTYPE_AES128_CTS_HMAC_SHA1_96 0x0011
199 #define ENCTYPE_AES256_CTS_HMAC_SHA1_96 0x0012
200 #define ENCTYPE_ARCFOUR_HMAC 0x0017
201 #define ENCTYPE_ARCFOUR_HMAC_EXP 0x0018
202 #define ENCTYPE_UNKNOWN 0x01ff
208 #define KG_USAGE_SEAL (22)
209 #define KG_USAGE_SIGN (23)
210 #define KG_USAGE_SEQ (24)
213 #define KEY_USAGE_SEED_CHECKSUM (0x99)
214 #define KEY_USAGE_SEED_ENCRYPTION (0xAA)
215 #define KEY_USAGE_SEED_INTEGRITY (0x55)
218 #define KG_USAGE_ACCEPTOR_SEAL (22)
219 #define KG_USAGE_ACCEPTOR_SIGN (23)
220 #define KG_USAGE_INITIATOR_SEAL (24)
221 #define KG_USAGE_INITIATOR_SIGN (25)
228 #define GSS_KRB5_MAX_SLACK_NEEDED \
229 (GSS_KRB5_TOK_HDR_LEN \
230 + GSS_KRB5_MAX_CKSUM_LEN \
231 + GSS_KRB5_MAX_BLOCKSIZE \
232 + GSS_KRB5_MAX_BLOCKSIZE \
233 + GSS_KRB5_TOK_HDR_LEN \
234 + GSS_KRB5_MAX_CKSUM_LEN \
236 + GSS_KRB5_TOK_HDR_LEN \
237 + GSS_KRB5_MAX_CKSUM_LEN)
241 struct xdr_buf *
body,
int body_offset,
u8 *cksumkey,
242 unsigned int usage,
struct xdr_netobj *cksumout);
246 struct xdr_buf *
body,
int body_offset,
u8 *
key,
247 unsigned int usage,
struct xdr_netobj *
cksum);
250 struct xdr_netobj *);
253 struct xdr_netobj *);
257 struct xdr_buf *outbuf,
struct page **
pages);
261 struct xdr_buf *
buf);
288 unsigned char *
cksum,
296 const struct xdr_netobj *inkey,
297 struct xdr_netobj *outkey,
298 const struct xdr_netobj *in_constant,
303 struct xdr_netobj *randombits,
304 struct xdr_netobj *
key);
308 struct xdr_netobj *randombits,
309 struct xdr_netobj *
key);
313 struct xdr_buf *
buf,
int ec,
318 struct xdr_buf *
buf,
u32 *plainoffset,
324 unsigned char *
cksum);