From 7f53dedca667015013bd5307b9bfc0ad9dcf127c Mon Sep 17 00:00:00 2001 From: Lukas Lihotzki Date: Mon, 26 Apr 2021 12:54:48 +0200 Subject: [PATCH] Declare olm_sas_calculate_mac_fixed_base64 in header Signed-off-by: Lukas Lihotzki --- include/olm/sas.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/olm/sas.h b/include/olm/sas.h index 4a5e751..effa2cf 100644 --- a/include/olm/sas.h +++ b/include/olm/sas.h @@ -161,6 +161,15 @@ size_t olm_sas_calculate_mac( void * mac, size_t mac_length ); +// A version of the calculate mac function that produces base64 strings that are +// compatible with other base64 implementations. +size_t olm_sas_calculate_mac_fixed_base64( + OlmSAS * sas, + const void * input, size_t input_length, + const void * info, size_t info_length, + void * mac, size_t mac_length +); + // for compatibility with an old version of Riot size_t olm_sas_calculate_mac_long_kdf( OlmSAS * sas,