00001 /* memxor.h -- perform binary exclusive OR operation on memory blocks. 00002 Copyright (C) 2005, 2009, 2010 Free Software Foundation, Inc. 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2, or (at your option) 00007 any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software Foundation, 00016 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 00017 00018 /* Written by Simon Josefsson. The interface was inspired by memxor 00019 in Niels Möller's Nettle. */ 00020 00021 #ifndef MEMXOR_H 00022 # define MEMXOR_H 00023 00024 #include <stddef.h> 00025 00026 /* Compute binary exclusive OR of memory areas DEST and SRC, putting 00027 the result in DEST, of length N bytes. Returns a pointer to 00028 DEST. */ 00029 void *memxor (void * /*restrict*/ dest, const void * /*restrict*/ src, size_t n); 00030 00031 #endif /* MEMXOR_H */