corosync  2.3.5
Functions
totemcrypto.h File Reference
#include <sys/types.h>
Include dependency graph for totemcrypto.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

size_t crypto_sec_header_size (const char *crypto_cipher_type, const char *crypto_hash_type)
 
int crypto_authenticate_and_decrypt (struct crypto_instance *instance, unsigned char *buf, int *buf_len)
 
int crypto_encrypt_and_sign (struct crypto_instance *instance, const unsigned char *buf_in, const size_t buf_in_len, unsigned char *buf_out, size_t *buf_out_len)
 
struct crypto_instancecrypto_init (const unsigned char *private_key, unsigned int private_key_len, const char *crypto_cipher_type, const char *crypto_hash_type, void(*log_printf_func)(int level, int subsys, const char *function, const char *file, int line, const char *format,...) __attribute__((format(printf, 6, 7))), int log_level_security, int log_level_notice, int log_level_error, int log_subsys_id)
 

Function Documentation

int crypto_authenticate_and_decrypt ( struct crypto_instance instance,
unsigned char *  buf,
int *  buf_len 
)
int crypto_encrypt_and_sign ( struct crypto_instance instance,
const unsigned char *  buf_in,
const size_t  buf_in_len,
unsigned char *  buf_out,
size_t *  buf_out_len 
)
struct crypto_instance* crypto_init ( const unsigned char *  private_key,
unsigned int  private_key_len,
const char *  crypto_cipher_type,
const char *  crypto_hash_type,
void(*)(int level, int subsys, const char *function, const char *file, int line, const char *format,...) __attribute__ log_printf_func((format(printf, 6, 7)))  ,
int  log_level_security,
int  log_level_notice,
int  log_level_error,
int  log_subsys_id 
)
size_t crypto_sec_header_size ( const char *  crypto_cipher_type,
const char *  crypto_hash_type 
)

Definition at line 662 of file totemcrypto.c.

References SALT_SIZE.

Referenced by crypto_init(), totemudp_net_mtu_adjust(), and totemudpu_net_mtu_adjust().