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

Go to the source code of this file.

Macros

#define smask(step)   ((1<<step)-1)
 
#define pstep(x, step)   (((x)&smask(step))^(((x)>>step)&smask(step)))
 
#define parity_char(x)   pstep(pstep(pstep((x), 4), 2), 1)
 

Functions

u32 krb5_derive_key (const struct gss_krb5_enctype *gk5e, const struct xdr_netobj *inkey, struct xdr_netobj *outkey, const struct xdr_netobj *in_constant, gfp_t gfp_mask)
 
u32 gss_krb5_des3_make_key (const struct gss_krb5_enctype *gk5e, struct xdr_netobj *randombits, struct xdr_netobj *key)
 
u32 gss_krb5_aes_make_key (const struct gss_krb5_enctype *gk5e, struct xdr_netobj *randombits, struct xdr_netobj *key)
 

Macro Definition Documentation

#define parity_char (   x)    pstep(pstep(pstep((x), 4), 2), 1)

Definition at line 257 of file gss_krb5_keys.c.

#define pstep (   x,
  step 
)    (((x)&smask(step))^(((x)>>step)&smask(step)))

Definition at line 256 of file gss_krb5_keys.c.

#define smask (   step)    ((1<<step)-1)

Definition at line 255 of file gss_krb5_keys.c.

Function Documentation

u32 gss_krb5_aes_make_key ( const struct gss_krb5_enctype gk5e,
struct xdr_netobj *  randombits,
struct xdr_netobj *  key 
)

Definition at line 311 of file gss_krb5_keys.c.

u32 gss_krb5_des3_make_key ( const struct gss_krb5_enctype gk5e,
struct xdr_netobj *  randombits,
struct xdr_netobj *  key 
)

Definition at line 271 of file gss_krb5_keys.c.

u32 krb5_derive_key ( const struct gss_krb5_enctype gk5e,
const struct xdr_netobj *  inkey,
struct xdr_netobj *  outkey,
const struct xdr_netobj *  in_constant,
gfp_t  gfp_mask 
)

Definition at line 150 of file gss_krb5_keys.c.