corosync
2.4.5
|
#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) |
size_t | crypto_get_current_sec_header_size (const struct crypto_instance *instance) |
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 879 of file totemcrypto.c.
References crypto_config_header::__pad0, crypto_config_header::__pad1, crypto_config_header::crypto_cipher_type, CRYPTO_CIPHER_TYPE_2_2, 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 857 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.
size_t crypto_get_current_sec_header_size | ( | const struct crypto_instance * | instance | ) |
Definition at line 836 of file totemcrypto.c.
References crypto_instance::crypto_header_size.
|
read |
Definition at line 955 of file totemcrypto.c.
References crypto_instance::crypto_cipher_type, crypto_instance::crypto_hash_type, crypto_instance::crypto_header_size, crypto_sec_header_size(), crypto_instance::log_level_error, crypto_instance::log_level_notice, crypto_instance::log_level_security, crypto_instance::log_printf_func, crypto_instance::log_subsys_id, crypto_instance::private_key, and crypto_instance::private_key_len.
Referenced by totemudp_initialize(), and totemudpu_initialize().
size_t crypto_sec_header_size | ( | const char * | crypto_cipher_type, |
const char * | crypto_hash_type | ||
) |
Definition at line 801 of file totemcrypto.c.
References SALT_SIZE.
Referenced by crypto_init(), totemudp_net_mtu_adjust(), and totemudpu_net_mtu_adjust().