]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(base64_encode_length, base64_decode_length): New
authorNiels Möller <nisse@lysator.liu.se>
Sat, 19 Oct 2002 10:49:58 +0000 (12:49 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 19 Oct 2002 10:49:58 +0000 (12:49 +0200)
functions, corresponding to the macros with the same name.

Rev: src/nettle/base64-meta.c:1.3

base64-meta.c

index 86785c3d7984ea5d3bcd2e5d57b1769df617d7a7..1c827db873786235e8dc85d34d8ca088edf9f258 100644 (file)
 
 #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);