corosync
2.4.3
|
#include <sys/types.h>
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_instance * | crypto_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) |
int crypto_authenticate_and_decrypt | ( | struct crypto_instance * | instance, |
unsigned char * | buf, | ||
int * | buf_len | ||
) |
Definition at line 842 of file totemcrypto.c.
References crypto_config_header::crypto_cipher_type, CRYPTO_CIPHER_TYPE_2_3, crypto_config_header::crypto_hash_type, CRYPTO_HASH_TYPE_2_3, crypto_instance::log_level_security, and log_printf.
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 | ||
) |
Definition at line 820 of file totemcrypto.c.
References crypto_config_header::__pad0, crypto_config_header::__pad1, crypto_config_header::crypto_cipher_type, CRYPTO_CIPHER_TYPE_2_3, crypto_config_header::crypto_hash_type, and CRYPTO_HASH_TYPE_2_3.
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 | ||
) |
Definition at line 895 of file totemcrypto.c.
References crypto_instance::crypto_cipher_type, crypto_instance::private_key, and crypto_instance::private_key_len.
size_t crypto_sec_header_size | ( | const char * | crypto_cipher_type, |
const char * | crypto_hash_type | ||
) |
Definition at line 771 of file totemcrypto.c.
Referenced by totemudp_net_mtu_adjust(), and totemudpu_net_mtu_adjust().