aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/gss_krb5.h
diff options
context:
space:
mode:
authorKevin Coffman <kwc@citi.umich.edu>2010-03-17 13:03:00 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-05-14 15:09:19 -0400
commit934a95aa1c9c6ad77838800b79c306e982437605 (patch)
tree0f7000ffce214a156737fddc127fb0af238dfcff /include/linux/sunrpc/gss_krb5.h
parentde9c17eb4a912c9028f7b470eb80815144883b26 (diff)
gss_krb5: add remaining pieces to enable AES encryption support
Add the remaining pieces to enable support for Kerberos AES encryption types. Signed-off-by: Kevin Coffman <kwc@citi.umich.edu> Signed-off-by: Steve Dickson <steved@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc/gss_krb5.h')
-rw-r--r--include/linux/sunrpc/gss_krb5.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/sunrpc/gss_krb5.h b/include/linux/sunrpc/gss_krb5.h
index 0085a30fd204..43148ec9a46c 100644
--- a/include/linux/sunrpc/gss_krb5.h
+++ b/include/linux/sunrpc/gss_krb5.h
@@ -99,6 +99,8 @@ struct krb5_ctx {
99 struct crypto_blkcipher *seq; 99 struct crypto_blkcipher *seq;
100 struct crypto_blkcipher *acceptor_enc; 100 struct crypto_blkcipher *acceptor_enc;
101 struct crypto_blkcipher *initiator_enc; 101 struct crypto_blkcipher *initiator_enc;
102 struct crypto_blkcipher *acceptor_enc_aux;
103 struct crypto_blkcipher *initiator_enc_aux;
102 u8 cksum[GSS_KRB5_MAX_KEYLEN]; 104 u8 cksum[GSS_KRB5_MAX_KEYLEN];
103 s32 endtime; 105 s32 endtime;
104 u32 seq_send; 106 u32 seq_send;
@@ -294,3 +296,21 @@ u32
294gss_krb5_des3_make_key(const struct gss_krb5_enctype *gk5e, 296gss_krb5_des3_make_key(const struct gss_krb5_enctype *gk5e,
295 struct xdr_netobj *randombits, 297 struct xdr_netobj *randombits,
296 struct xdr_netobj *key); 298 struct xdr_netobj *key);
299
300u32
301gss_krb5_aes_make_key(const struct gss_krb5_enctype *gk5e,
302 struct xdr_netobj *randombits,
303 struct xdr_netobj *key);
304
305u32
306gss_krb5_aes_encrypt(struct krb5_ctx *kctx, u32 offset,
307 struct xdr_buf *buf, int ec,
308 struct page **pages);
309
310u32
311gss_krb5_aes_decrypt(struct krb5_ctx *kctx, u32 offset,
312 struct xdr_buf *buf, u32 *plainoffset,
313 u32 *plainlen);
314
315void
316gss_krb5_make_confounder(char *p, u32 conflen);