mirror of https://github.com/OISF/suricata
util/crypt: Add macro for max base64encode len
Maximum length of a base64 encoded string can be 33% over the actual length of the input string. The formula to best cover all the edge cases is mathematically (4 * (input_length + 2) / 3) + 1 Add a macro to calculate this for a given input length.pull/5627/head
parent
057c4b34c8
commit
02942a123a
Loading…
Reference in New Issue