36
36
*
37
37
*/
38
38
39
- #include <linux/ crypto.h>
39
+ #include <crypto/skcipher .h>
40
40
#include <linux/sunrpc/auth_gss.h>
41
41
#include <linux/sunrpc/gss_err.h>
42
42
#include <linux/sunrpc/gss_asn1.h>
@@ -71,10 +71,10 @@ struct gss_krb5_enctype {
71
71
const u32 keyed_cksum ; /* is it a keyed cksum? */
72
72
const u32 keybytes ; /* raw key len, in bytes */
73
73
const u32 keylength ; /* final key len, in bytes */
74
- u32 (* encrypt ) (struct crypto_blkcipher * tfm ,
74
+ u32 (* encrypt ) (struct crypto_skcipher * tfm ,
75
75
void * iv , void * in , void * out ,
76
76
int length ); /* encryption function */
77
- u32 (* decrypt ) (struct crypto_blkcipher * tfm ,
77
+ u32 (* decrypt ) (struct crypto_skcipher * tfm ,
78
78
void * iv , void * in , void * out ,
79
79
int length ); /* decryption function */
80
80
u32 (* mk_key ) (const struct gss_krb5_enctype * gk5e ,
@@ -98,12 +98,12 @@ struct krb5_ctx {
98
98
u32 enctype ;
99
99
u32 flags ;
100
100
const struct gss_krb5_enctype * gk5e ; /* enctype-specific info */
101
- struct crypto_blkcipher * enc ;
102
- struct crypto_blkcipher * seq ;
103
- struct crypto_blkcipher * acceptor_enc ;
104
- struct crypto_blkcipher * initiator_enc ;
105
- struct crypto_blkcipher * acceptor_enc_aux ;
106
- struct crypto_blkcipher * initiator_enc_aux ;
101
+ struct crypto_skcipher * enc ;
102
+ struct crypto_skcipher * seq ;
103
+ struct crypto_skcipher * acceptor_enc ;
104
+ struct crypto_skcipher * initiator_enc ;
105
+ struct crypto_skcipher * acceptor_enc_aux ;
106
+ struct crypto_skcipher * initiator_enc_aux ;
107
107
u8 Ksess [GSS_KRB5_MAX_KEYLEN ]; /* session key */
108
108
u8 cksum [GSS_KRB5_MAX_KEYLEN ];
109
109
s32 endtime ;
@@ -262,24 +262,24 @@ gss_unwrap_kerberos(struct gss_ctx *ctx_id, int offset,
262
262
263
263
264
264
u32
265
- krb5_encrypt (struct crypto_blkcipher * key ,
265
+ krb5_encrypt (struct crypto_skcipher * key ,
266
266
void * iv , void * in , void * out , int length );
267
267
268
268
u32
269
- krb5_decrypt (struct crypto_blkcipher * key ,
269
+ krb5_decrypt (struct crypto_skcipher * key ,
270
270
void * iv , void * in , void * out , int length );
271
271
272
272
int
273
- gss_encrypt_xdr_buf (struct crypto_blkcipher * tfm , struct xdr_buf * outbuf ,
273
+ gss_encrypt_xdr_buf (struct crypto_skcipher * tfm , struct xdr_buf * outbuf ,
274
274
int offset , struct page * * pages );
275
275
276
276
int
277
- gss_decrypt_xdr_buf (struct crypto_blkcipher * tfm , struct xdr_buf * inbuf ,
277
+ gss_decrypt_xdr_buf (struct crypto_skcipher * tfm , struct xdr_buf * inbuf ,
278
278
int offset );
279
279
280
280
s32
281
281
krb5_make_seq_num (struct krb5_ctx * kctx ,
282
- struct crypto_blkcipher * key ,
282
+ struct crypto_skcipher * key ,
283
283
int direction ,
284
284
u32 seqnum , unsigned char * cksum , unsigned char * buf );
285
285
@@ -320,12 +320,12 @@ gss_krb5_aes_decrypt(struct krb5_ctx *kctx, u32 offset,
320
320
321
321
int
322
322
krb5_rc4_setup_seq_key (struct krb5_ctx * kctx ,
323
- struct crypto_blkcipher * cipher ,
323
+ struct crypto_skcipher * cipher ,
324
324
unsigned char * cksum );
325
325
326
326
int
327
327
krb5_rc4_setup_enc_key (struct krb5_ctx * kctx ,
328
- struct crypto_blkcipher * cipher ,
328
+ struct crypto_skcipher * cipher ,
329
329
s32 seqnum );
330
330
void
331
331
gss_krb5_make_confounder (char * p , u32 conflen );
0 commit comments