Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
nettle
Commits
61761611
Commit
61761611
authored
Feb 07, 2014
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated base16_encode_update and base64_encode_update documentation.
parent
afe7c047
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
ChangeLog
ChangeLog
+4
-0
nettle.texinfo
nettle.texinfo
+10
-12
No files found.
ChangeLog
View file @
61761611
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.
...
...
nettle.texinfo
View file @
61761611
...
...
@@ -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
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment