diff options
Diffstat (limited to 'libs/libsignal/src/hkdf.h')
-rw-r--r-- | libs/libsignal/src/hkdf.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libs/libsignal/src/hkdf.h b/libs/libsignal/src/hkdf.h new file mode 100644 index 0000000000..43ee870401 --- /dev/null +++ b/libs/libsignal/src/hkdf.h @@ -0,0 +1,29 @@ +#ifndef HKDF_H +#define HKDF_H + +#include <stdint.h> +#include <stddef.h> +#include "signal_protocol_types.h" + +#ifdef __cplusplus +extern "C" { +#endif + +int hkdf_create(hkdf_context **context, int message_version, signal_context *global_context); + +ssize_t hkdf_derive_secrets(hkdf_context *context, + uint8_t **output, + const uint8_t *input_key_material, size_t input_key_material_len, + const uint8_t *salt, size_t salt_len, + const uint8_t *info, size_t info_len, + size_t output_len); + +int hkdf_compare(const hkdf_context *context1, const hkdf_context *context2); + +void hkdf_destroy(signal_type_base *type); + +#ifdef __cplusplus +} +#endif + +#endif /* HKDF_H */ |