summaryrefslogtreecommitdiff
path: root/base64-meta.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2002-10-19 12:49:58 +0200
committerNiels Möller <nisse@lysator.liu.se>2002-10-19 12:49:58 +0200
commitc0042966cfeebed28817a82edb42da4bc8d395e9 (patch)
treee5902bb30093bee4a70a1753122a108f57cec79b /base64-meta.c
parentb50028eea5565d691c4d3a1602634724feccd055 (diff)
downloadnettle-c0042966cfeebed28817a82edb42da4bc8d395e9.tar.gz
(base64_encode_length, base64_decode_length): New
functions, corresponding to the macros with the same name. Rev: src/nettle/base64-meta.c:1.3
Diffstat (limited to 'base64-meta.c')
-rw-r--r--base64-meta.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/base64-meta.c b/base64-meta.c
index 86785c3d..1c827db8 100644
--- a/base64-meta.c
+++ b/base64-meta.c
@@ -24,5 +24,18 @@
#include "base64.h"
+/* Same as the macros with the same name */
+static unsigned
+base64_encode_length(unsigned length)
+{
+ return BASE64_ENCODE_LENGTH(length);
+}
+
+static unsigned
+base64_decode_length(unsigned length)
+{
+ return BASE64_DECODE_LENGTH(length);
+}
+
const struct nettle_armor nettle_base64
= _NETTLE_ARMOR(base64, BASE64);