diff options
author | Niels Möller <nisse@lysator.liu.se> | 2002-10-19 12:49:58 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2002-10-19 12:49:58 +0200 |
commit | c0042966cfeebed28817a82edb42da4bc8d395e9 (patch) | |
tree | e5902bb30093bee4a70a1753122a108f57cec79b /base64-meta.c | |
parent | b50028eea5565d691c4d3a1602634724feccd055 (diff) | |
download | nettle-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.c | 13 |
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); |