aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/crypto/base64.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/base64.cc')
-rw-r--r--src/crypto/base64.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/base64.cc b/src/crypto/base64.cc
index ae38e3e..129aecb 100644
--- a/src/crypto/base64.cc
+++ b/src/crypto/base64.cc
@@ -39,6 +39,7 @@
static const char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static const unsigned char reverse[] = {
+ // clang-format off
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3e, 0xff, 0xff, 0xff, 0x3f,
@@ -55,6 +56,7 @@ static const unsigned char reverse[] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+ // clang-format on
};
/* Reverse maps from an ASCII char to a base64 sixbit value. Returns > 0x3f on failure. */