Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
gss_krb5_crypto.c File Reference
#include <linux/err.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/scatterlist.h>
#include <linux/crypto.h>
#include <linux/highmem.h>
#include <linux/pagemap.h>
#include <linux/random.h>
#include <linux/sunrpc/gss_krb5.h>
#include <linux/sunrpc/xdr.h>

Go to the source code of this file.

Data Structures

struct  encryptor_desc
 
struct  decryptor_desc
 

Functions

u32 krb5_encrypt (struct crypto_blkcipher *tfm, void *iv, void *in, void *out, int length)
 
u32 krb5_decrypt (struct crypto_blkcipher *tfm, void *iv, void *in, void *out, int length)
 
u32 make_checksum (struct krb5_ctx *kctx, char *header, int hdrlen, struct xdr_buf *body, int body_offset, u8 *cksumkey, unsigned int usage, struct xdr_netobj *cksumout)
 
u32 make_checksum_v2 (struct krb5_ctx *kctx, char *header, int hdrlen, struct xdr_buf *body, int body_offset, u8 *cksumkey, unsigned int usage, struct xdr_netobj *cksumout)
 
int gss_encrypt_xdr_buf (struct crypto_blkcipher *tfm, struct xdr_buf *buf, int offset, struct page **pages)
 
int gss_decrypt_xdr_buf (struct crypto_blkcipher *tfm, struct xdr_buf *buf, int offset)
 
int xdr_extend_head (struct xdr_buf *buf, unsigned int base, unsigned int shiftlen)
 
u32 gss_krb5_aes_encrypt (struct krb5_ctx *kctx, u32 offset, struct xdr_buf *buf, int ec, struct page **pages)
 
u32 gss_krb5_aes_decrypt (struct krb5_ctx *kctx, u32 offset, struct xdr_buf *buf, u32 *headskip, u32 *tailskip)
 
int krb5_rc4_setup_seq_key (struct krb5_ctx *kctx, struct crypto_blkcipher *cipher, unsigned char *cksum)
 
int krb5_rc4_setup_enc_key (struct krb5_ctx *kctx, struct crypto_blkcipher *cipher, s32 seqnum)
 

Function Documentation

int gss_decrypt_xdr_buf ( struct crypto_blkcipher tfm,
struct xdr_buf *  buf,
int  offset 
)

Definition at line 538 of file gss_krb5_crypto.c.

int gss_encrypt_xdr_buf ( struct crypto_blkcipher tfm,
struct xdr_buf *  buf,
int  offset,
struct page **  pages 
)

Definition at line 462 of file gss_krb5_crypto.c.

u32 gss_krb5_aes_decrypt ( struct krb5_ctx kctx,
u32  offset,
struct xdr_buf *  buf,
u32 headskip,
u32 tailskip 
)

Definition at line 765 of file gss_krb5_crypto.c.

u32 gss_krb5_aes_encrypt ( struct krb5_ctx kctx,
u32  offset,
struct xdr_buf *  buf,
int  ec,
struct page **  pages 
)

Definition at line 643 of file gss_krb5_crypto.c.

u32 krb5_decrypt ( struct crypto_blkcipher tfm,
void iv,
void in,
void out,
int  length 
)

Definition at line 87 of file gss_krb5_crypto.c.

u32 krb5_encrypt ( struct crypto_blkcipher tfm,
void iv,
void in,
void out,
int  length 
)

Definition at line 53 of file gss_krb5_crypto.c.

int krb5_rc4_setup_enc_key ( struct krb5_ctx kctx,
struct crypto_blkcipher cipher,
s32  seqnum 
)

Definition at line 924 of file gss_krb5_crypto.c.

int krb5_rc4_setup_seq_key ( struct krb5_ctx kctx,
struct crypto_blkcipher cipher,
unsigned char cksum 
)

Definition at line 858 of file gss_krb5_crypto.c.

u32 make_checksum ( struct krb5_ctx kctx,
char header,
int  hdrlen,
struct xdr_buf *  body,
int  body_offset,
u8 cksumkey,
unsigned int  usage,
struct xdr_netobj *  cksumout 
)

Definition at line 241 of file gss_krb5_crypto.c.

u32 make_checksum_v2 ( struct krb5_ctx kctx,
char header,
int  hdrlen,
struct xdr_buf *  body,
int  body_offset,
u8 cksumkey,
unsigned int  usage,
struct xdr_netobj *  cksumout 
)

Definition at line 322 of file gss_krb5_crypto.c.

int xdr_extend_head ( struct xdr_buf *  buf,
unsigned int  base,
unsigned int  shiftlen 
)

Definition at line 576 of file gss_krb5_crypto.c.