Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
auth.c File Reference
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/crypto.h>
#include <linux/scatterlist.h>
#include <net/sctp/sctp.h>
#include <net/sctp/auth.h>

Go to the source code of this file.

Functions

void sctp_auth_key_put (struct sctp_auth_bytes *key)
 
struct sctp_shared_keysctp_auth_shkey_create (__u16 key_id, gfp_t gfp)
 
void sctp_auth_destroy_keys (struct list_head *keys)
 
int sctp_auth_asoc_copy_shkeys (const struct sctp_endpoint *ep, struct sctp_association *asoc, gfp_t gfp)
 
int sctp_auth_asoc_init_active_key (struct sctp_association *asoc, gfp_t gfp)
 
struct sctp_shared_keysctp_auth_get_shkey (const struct sctp_association *asoc, __u16 key_id)
 
int sctp_auth_init_hmacs (struct sctp_endpoint *ep, gfp_t gfp)
 
void sctp_auth_destroy_hmacs (struct crypto_hash *auth_hmacs[])
 
struct sctp_hmacsctp_auth_get_hmac (__u16 hmac_id)
 
struct sctp_hmacsctp_auth_asoc_get_hmac (const struct sctp_association *asoc)
 
int sctp_auth_asoc_verify_hmac_id (const struct sctp_association *asoc, __be16 hmac_id)
 
void sctp_auth_asoc_set_default_hmac (struct sctp_association *asoc, struct sctp_hmac_algo_param *hmacs)
 
int sctp_auth_send_cid (sctp_cid_t chunk, const struct sctp_association *asoc)
 
int sctp_auth_recv_cid (sctp_cid_t chunk, const struct sctp_association *asoc)
 
void sctp_auth_calculate_hmac (const struct sctp_association *asoc, struct sk_buff *skb, struct sctp_auth_chunk *auth, gfp_t gfp)
 
int sctp_auth_ep_add_chunkid (struct sctp_endpoint *ep, __u8 chunk_id)
 
int sctp_auth_ep_set_hmacs (struct sctp_endpoint *ep, struct sctp_hmacalgo *hmacs)
 
int sctp_auth_set_key (struct sctp_endpoint *ep, struct sctp_association *asoc, struct sctp_authkey *auth_key)
 
int sctp_auth_set_active_key (struct sctp_endpoint *ep, struct sctp_association *asoc, __u16 key_id)
 
int sctp_auth_del_key_id (struct sctp_endpoint *ep, struct sctp_association *asoc, __u16 key_id)
 

Function Documentation

int sctp_auth_asoc_copy_shkeys ( const struct sctp_endpoint ep,
struct sctp_association asoc,
gfp_t  gfp 
)

Definition at line 363 of file auth.c.

struct sctp_hmac* sctp_auth_asoc_get_hmac ( const struct sctp_association asoc)
read

Definition at line 525 of file auth.c.

int sctp_auth_asoc_init_active_key ( struct sctp_association asoc,
gfp_t  gfp 
)

Definition at line 393 of file auth.c.

void sctp_auth_asoc_set_default_hmac ( struct sctp_association asoc,
struct sctp_hmac_algo_param hmacs 
)

Definition at line 609 of file auth.c.

int sctp_auth_asoc_verify_hmac_id ( const struct sctp_association asoc,
__be16  hmac_id 
)

Definition at line 588 of file auth.c.

void sctp_auth_calculate_hmac ( const struct sctp_association asoc,
struct sk_buff skb,
struct sctp_auth_chunk auth,
gfp_t  gfp 
)

Definition at line 714 of file auth.c.

int sctp_auth_del_key_id ( struct sctp_endpoint ep,
struct sctp_association asoc,
__u16  key_id 
)

Definition at line 924 of file auth.c.

void sctp_auth_destroy_hmacs ( struct crypto_hash auth_hmacs[])

Definition at line 501 of file auth.c.

void sctp_auth_destroy_keys ( struct list_head keys)

Definition at line 128 of file auth.c.

int sctp_auth_ep_add_chunkid ( struct sctp_endpoint ep,
__u8  chunk_id 
)

Definition at line 771 of file auth.c.

int sctp_auth_ep_set_hmacs ( struct sctp_endpoint ep,
struct sctp_hmacalgo hmacs 
)

Definition at line 793 of file auth.c.

struct sctp_hmac* sctp_auth_get_hmac ( __u16  hmac_id)
read

Definition at line 517 of file auth.c.

struct sctp_shared_key* sctp_auth_get_shkey ( const struct sctp_association asoc,
__u16  key_id 
)
read

Definition at line 425 of file auth.c.

int sctp_auth_init_hmacs ( struct sctp_endpoint ep,
gfp_t  gfp 
)

Definition at line 447 of file auth.c.

void sctp_auth_key_put ( struct sctp_auth_bytes key)

Definition at line 68 of file auth.c.

int sctp_auth_recv_cid ( sctp_cid_t  chunk,
const struct sctp_association asoc 
)

Definition at line 691 of file auth.c.

int sctp_auth_send_cid ( sctp_cid_t  chunk,
const struct sctp_association asoc 
)

Definition at line 677 of file auth.c.

int sctp_auth_set_active_key ( struct sctp_endpoint ep,
struct sctp_association asoc,
__u16  key_id 
)

Definition at line 891 of file auth.c.

int sctp_auth_set_key ( struct sctp_endpoint ep,
struct sctp_association asoc,
struct sctp_authkey auth_key 
)

Definition at line 830 of file auth.c.

struct sctp_shared_key* sctp_auth_shkey_create ( __u16  key_id,
gfp_t  gfp 
)
read

Definition at line 101 of file auth.c.