nettle: Miscellaneous functions
1
1 6.10 Miscellaneous functions
1 ============================
1
1 -- Function: void * memxor (void *DST, const void *SRC, size_t N)
1 XORs the source area on top of the destination area. The interface
1 doesn’t follow the Nettle conventions, because it is intended to be
1 similar to the ANSI-C ‘memcpy’ function.
1
1 -- Function: void * memxor3 (void *DST, const void *A, const void *B,
1 size_t N)
1 Like ‘memxor’, but takes two source areas and separate destination
1 area.
1
1 -- Function: int memeql_sec (const void *A, const void *B, size_t N)
1 Side-channel silent comparison of the N bytes at A and B. I.e.,
1 instructions executed and memory accesses are identical no matter
1 where the areas differ, ⇒Side-channel silence. Return
1 non-zero if the areas are equal, and zero if they differ.
1
1 These functions are declared in ‘<nettle/memops.h>’. For
1 compatibility with earlier versions of Nettle, ‘memxor’ and ‘memxor3’
1 are also declared in ‘<nettle/memxor.h>’.
1