]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Updated base16_encode_update and base64_encode_update documentation.
authorNiels Möller <nisse@lysator.liu.se>
Fri, 7 Feb 2014 08:23:23 +0000 (09:23 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 7 Feb 2014 08:23:23 +0000 (09:23 +0100)
ChangeLog
nettle.texinfo

index 69cd8764731e705a3245c5a30cc48fede2e0ccf1..fdc4a0f13e34369a8d4a295af64f3ded99615d87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-02-07  Niels Möller  <nisse@lysator.liu.se>
 
+       * nettle.texinfo (ASCII encoding): Document that
+       base16_encode_update and base64_encode_update now uses dst_length
+       as an output only.
+
        * testsuite/base64-test.c (test_main): Updated
        base64_decode_update test case.
 
index 71722a3a4017b06418e24c18047898101ba8faec..68883a5855474f61b0481dbdf09de5c804882f2f 100644 (file)
@@ -3700,12 +3700,11 @@ to @code{base64_decode_update}.
 @end deffn
 
 @deftypefun {void} base64_decode_update (struct base64_decode_ctx *@var{ctx}, size_t *@var{dst_length}, uint8_t *@var{dst}, size_t @var{src_length}, const uint8_t *@var{src})
-After @var{ctx} is initialized, this function may be called to decode @var{src_length}
-bytes from @var{src}. @var{dst} should point to an area of size at least
-BASE64_DECODE_LENGTH(@var{length}), and for sanity checking, @var{dst_length}
-should be initialized to the size of that area before the call.
-@var{dst_length} is updated to the amount of decoded output. The function will return
-1 on success and 0 on error.
+After @var{ctx} is initialized, this function may be called to decode
+@var{src_length} bytes from @var{src}. @var{dst} should point to an area
+of size at least BASE64_DECODE_LENGTH(@var{src_length}). The amount of data
+generated is returned in *@var{dst_length}. Returns 1 on success
+and 0 on error.
 @end deftypefun
 
 @deftypefun {int} base64_decode_final (struct base64_decode_ctx *@var{ctx})
@@ -3748,12 +3747,11 @@ to @code{base16_decode_update}.
 @end deffn
 
 @deftypefun {int} base16_decode_update (struct base16_decode_ctx *@var{ctx}, size_t *@var{dst_length}, uint8_t *@var{dst}, size_t @var{src_length}, const uint8_t *@var{src})
-After @var{ctx} is initialized, this function may be called to decode @var{src_length}
-bytes from @var{src}. @var{dst} should point to an area of size at least
-BASE16_DECODE_LENGTH(@var{length}), and for sanity checking, @var{dst_length}
-should be initialized to the size of that area before the call.
-@var{dst_length} is updated to the amount of decoded output. The function will return
-1 on success and 0 on error.
+After @var{ctx} is initialized, this function may be called to decode
+@var{src_length} bytes from @var{src}. @var{dst} should point to an area
+of size at least BASE16_DECODE_LENGTH(@var{src_length}). The amount of data
+generated is returned in *@var{dst_length}. Returns 1 on success
+and 0 on error.
 @end deftypefun
 
 @deftypefun {int} base16_decode_final (struct base16_decode_ctx *@var{ctx})