Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
0beeff9c
Commit
0beeff9c
authored
Apr 24, 2013
by
Niels Möller
Browse files
Updated memxor documentation.
parent
1b5897ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
0beeff9c
2013-04-24 Niels Möller <nisse@lysator.liu.se>
* nettle.texinfo (Miscellaneous functions): Updated memxor
prototype. Document memxor3.
* salsa20-crypt.c (salsa20_crypt): Deleted cast of memxor
argument, no longer needed.
* salsa20r12-crypt.c (salsa20r12_crypt): Likewise.
...
...
nettle.texinfo
View file @
0beeff9c
...
...
@@ -3717,12 +3717,18 @@ error.
@comment node-name, next, previous, up
@section Miscellaneous functions
@deftypefun
{
uint8
_
t
*
}
memxor (
uint8
_
t
*@var
{
dst
}
, const
uint8
_
t
*@var
{
src
}
, size
_
t @var
{
n
}
)
@deftypefun
{
void
*
}
memxor (
void
*@var
{
dst
}
, const
void
*@var
{
src
}
, size
_
t @var
{
n
}
)
XORs the source area on top of the destination area. The interface
doesn't follow the Nettle conventions, because it is intended to be
similar to the ANSI-C @code
{
memcpy
}
function.
@end deftypefun
@deftypefun
{
void *
}
memxor3 (void *@var
{
dst
}
, const void *@var
{
a
}
, const void *@var
{
b
}
, size
_
t @var
{
n
}
)
Like @code
{
memxor
}
, but takes two source areas and separate
destination area.
@end deftypefun
@code
{
memxor
}
is declared in @file
{
<nettle/memxor.h>
}
.
@node Compatibility functions, , Miscellaneous functions, Reference
...
...
Write
Preview
Supports
Markdown
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