Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
crypto.h File Reference
#include <linux/ceph/types.h>
#include <linux/ceph/buffer.h>

Go to the source code of this file.

Data Structures

struct  ceph_crypto_key
 

Functions

int ceph_crypto_key_clone (struct ceph_crypto_key *dst, const struct ceph_crypto_key *src)
 
int ceph_crypto_key_encode (struct ceph_crypto_key *key, void **p, void *end)
 
int ceph_crypto_key_decode (struct ceph_crypto_key *key, void **p, void *end)
 
int ceph_crypto_key_unarmor (struct ceph_crypto_key *key, const char *in)
 
int ceph_decrypt (struct ceph_crypto_key *secret, void *dst, size_t *dst_len, const void *src, size_t src_len)
 
int ceph_encrypt (struct ceph_crypto_key *secret, void *dst, size_t *dst_len, const void *src, size_t src_len)
 
int ceph_decrypt2 (struct ceph_crypto_key *secret, void *dst1, size_t *dst1_len, void *dst2, size_t *dst2_len, const void *src, size_t src_len)
 
int ceph_encrypt2 (struct ceph_crypto_key *secret, void *dst, size_t *dst_len, const void *src1, size_t src1_len, const void *src2, size_t src2_len)
 
int ceph_crypto_init (void)
 
void ceph_crypto_shutdown (void)
 
int ceph_armor (char *dst, const char *src, const char *end)
 
int ceph_unarmor (char *dst, const char *src, const char *end)
 

Function Documentation

int ceph_armor ( char dst,
const char src,
const char end 
)

Definition at line 36 of file armor.c.

int ceph_crypto_init ( void  )

Definition at line 480 of file crypto.c.

int ceph_crypto_key_clone ( struct ceph_crypto_key dst,
const struct ceph_crypto_key src 
)

Definition at line 14 of file crypto.c.

int ceph_crypto_key_decode ( struct ceph_crypto_key key,
void **  p,
void end 
)

Definition at line 36 of file crypto.c.

int ceph_crypto_key_encode ( struct ceph_crypto_key key,
void **  p,
void end 
)

Definition at line 24 of file crypto.c.

int ceph_crypto_key_unarmor ( struct ceph_crypto_key key,
const char in 
)

Definition at line 54 of file crypto.c.

void ceph_crypto_shutdown ( void  )

Definition at line 484 of file crypto.c.

int ceph_decrypt ( struct ceph_crypto_key secret,
void dst,
size_t dst_len,
const void src,
size_t  src_len 
)

Definition at line 331 of file crypto.c.

int ceph_decrypt2 ( struct ceph_crypto_key secret,
void dst1,
size_t dst1_len,
void dst2,
size_t dst2_len,
const void src,
size_t  src_len 
)

Definition at line 351 of file crypto.c.

int ceph_encrypt ( struct ceph_crypto_key secret,
void dst,
size_t dst_len,
const void src,
size_t  src_len 
)

Definition at line 384 of file crypto.c.

int ceph_encrypt2 ( struct ceph_crypto_key secret,
void dst,
size_t dst_len,
const void src1,
size_t  src1_len,
const void src2,
size_t  src2_len 
)

Definition at line 404 of file crypto.c.

int ceph_unarmor ( char dst,
const char src,
const char end 
)

Definition at line 74 of file armor.c.