Commit 0beeff9c authored by Niels Möller's avatar Niels Möller

Updated memxor documentation.

parent 1b5897ef
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.
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment