Scroll to navigation

libfcrypto(3) Library Functions Manual libfcrypto(3)

NAME

libfcrypto.hLibrary to support encryption formats

SYNOPSIS

#include <libfcrypto.h>

Support functions
const char *
libfcrypto_get_version(void);

Error functions
void
libfcrypto_error_free(libfcrypto_error_t **error);

int
libfcrypto_error_fprint(libfcrypto_error_t *error, FILE *stream);

int
libfcrypto_error_sprint(libfcrypto_error_t *error, char *string, size_t size);

int
libfcrypto_error_backtrace_fprint(libfcrypto_error_t *error, FILE *stream);

int
libfcrypto_error_backtrace_sprint(libfcrypto_error_t *error, char *string, size_t size);

Blowfish context functions
int
libfcrypto_blowfish_context_initialize(libfcrypto_blowfish_context_t **context, libfcrypto_error_t **error);

int
libfcrypto_blowfish_context_free(libfcrypto_blowfish_context_t **context, libfcrypto_error_t **error);

int
libfcrypto_blowfish_context_set_key(libfcrypto_blowfish_context_t *context, const uint8_t *key, size_t key_bit_size, libfcrypto_error_t **error);

int
libfcrypto_blowfish_crypt_cbc(libfcrypto_blowfish_context_t *context, int mode, const uint8_t *initialization_vector, size_t initialization_vector_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libfcrypto_error_t **error);

int
libfcrypto_blowfish_crypt_ecb(libfcrypto_blowfish_context_t *context, int mode, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libfcrypto_error_t **error);

DESCRIPTION

DES3 context functions int (libfcrypto_des3_context_t **context, libfcrypto_error_t **error) int (libfcrypto_des3_context_t **context, libfcrypto_error_t **error) int (libfcrypto_des3_context_t *context, const uint8_t *key, size_t key_bit_size, libfcrypto_error_t **error) int (libfcrypto_des3_context_t *context, int mode, const uint8_t *initialization_vector, size_t initialization_vector_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libfcrypto_error_t **error) int (libfcrypto_des3_context_t *context, int mode, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libfcrypto_error_t **error)

RC4 context functions int (libfcrypto_rc4_context_t **context, libfcrypto_error_t **error) int (libfcrypto_rc4_context_t **context, libfcrypto_error_t **error) int (libfcrypto_rc4_context_t *context, const uint8_t *key, size_t key_bit_size, libfcrypto_error_t **error) int (libfcrypto_rc4_context_t *context, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libfcrypto_error_t **error)

Serpent context functions int (libfcrypto_serpent_context_t **context, libfcrypto_error_t **error) int (libfcrypto_serpent_context_t **context, libfcrypto_error_t **error) int (libfcrypto_serpent_context_t *context, const uint8_t *key, size_t key_bit_size, libfcrypto_error_t **error) int (libfcrypto_serpent_context_t *context, int mode, const uint8_t *initialization_vector, size_t initialization_vector_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libfcrypto_error_t **error) int (libfcrypto_serpent_context_t *context, int mode, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libfcrypto_error_t **error)

DESCRIPTION

The () function is used to retrieve the library version.

RETURN VALUES

Most of the functions return NULL or -1 on error, dependent on the return type. For the actual return values see "libfcrypto.h".

ENVIRONMENT

None

FILES

None

BUGS

Please report bugs of any kind on the project issue tracker: https://github.com/libyal/libfcrypto/issues

AUTHOR

These man pages are generated from "libfcrypto.h".

COPYRIGHT

Copyright (C) 2017-2024, Joachim Metz <joachim.metz@gmail.com>.

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

the libfcrypto.h include file

January 115, 2024 libfcrypto