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
Brian Smith
nettle
Commits
0beeff9c
Commit
0beeff9c
authored
Apr 24, 2013
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated memxor documentation.
parent
1b5897ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
ChangeLog
ChangeLog
+3
-0
nettle.texinfo
nettle.texinfo
+7
-1
No files found.
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
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