aboutsummaryrefslogtreecommitdiff
path: root/include/olm/base64.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/olm/base64.hh')
-rw-r--r--include/olm/base64.hh6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/olm/base64.hh b/include/olm/base64.hh
index da4641d..dfdccd0 100644
--- a/include/olm/base64.hh
+++ b/include/olm/base64.hh
@@ -23,11 +23,9 @@ namespace olm {
/**
* The number of bytes of unpadded base64 needed to encode a length of input.
*/
-static std::size_t encode_base64_length(
+std::size_t encode_base64_length(
std::size_t input_length
-) {
- return 4 * ((input_length + 2) / 3) + (input_length + 2) % 3 - 2;
-}
+);
/**
* Encode the raw input as unpadded base64.