]> git.ipfire.org Git - thirdparty/suricata.git/commit
base64: expose no padding and padding optional variants
authorJason Ish <jason.ish@oisf.net>
Thu, 30 Jan 2025 16:49:37 +0000 (10:49 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 13 Feb 2025 18:21:05 +0000 (19:21 +0100)
commit7a936cb4868a801a2f6e9b3197fa92f52b98bcdb
tree1826a3a453ced9b073e4e96787200ac37bc9ba07
parentad6d9e0d936f14d12c0800d624fbfb9cf31af981
base64: expose no padding and padding optional variants

A no padding option is provided as a mode, as its a variant suitable
for encoding and decoding.

A padding optional function is added that is indifferent to padding
when decoding. This can be useful when you're not sure if padding
exists, and don't really care.
rust/src/ffi/base64.rs