summaryrefslogtreecommitdiff
path: root/nettle.texinfo
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2016-09-07 22:06:43 +0200
committerNiels Möller <nisse@lysator.liu.se>2016-09-07 22:06:43 +0200
commit73097b61d310ec224f8e917a0193d9a4200ec102 (patch)
treec61de779b40e3b4c1a6fd66eeeca7b959f778463 /nettle.texinfo
parentdc249daad01665367985c22d167a6bea37f899d3 (diff)
downloadnettle-73097b61d310ec224f8e917a0193d9a4200ec102.tar.gz
Document memeql_sec.
Diffstat (limited to 'nettle.texinfo')
-rw-r--r--nettle.texinfo13
1 files changed, 11 insertions, 2 deletions
diff --git a/nettle.texinfo b/nettle.texinfo
index 291ebcec..3ea0600a 100644
--- a/nettle.texinfo
+++ b/nettle.texinfo
@@ -4207,7 +4207,8 @@ it. If you have a process operating on the secret data, and this process
does memory accesses depending on the data, e.g, an internal lookup
table in some cryptographic algorithm, an attacker running a separate
process on the same system may use behavior of internal CPU caches to
-get information about your secrets.
+get information about your secrets. This type of attack can even cross
+virtual machine boundaries.
@end itemize
Nettle's ECC implementation is designed to be @dfn{side-channel silent},
@@ -4937,8 +4938,16 @@ Like @code{memxor}, but takes two source areas and separate
destination area.
@end deftypefun
+@deftypefun int memeql_sec (const void *@var{a}, const void *@var{b}, size_t @var{n})
+Side-channel silent comparison of the @var{n} bytes at @var{a} and
+@var{b}. I.e., instructions executed and memory accesses are identical
+no matter where the areas differ, @pxref{Side-channel silence}. Return
+non-zero if the areas are equal, and zero if they differ.
+@end deftypefun
-@code{memxor} is declared in @file{<nettle/memxor.h>}.
+These functions are declared in @file{<nettle/memops.h>}. For
+compatibility with earlier versions of Nettle, @code{memxor} and
+@code{memxor3} are also declared in @file{<nettle/memxor.h>}.
@node Compatibility functions, , Miscellaneous functions, Reference
@comment node-name, next, previous, up