add byte_start, byte_starts

add a man page for byte_equal_notimingattack
This commit is contained in:
leitner
2020-10-22 20:43:13 +00:00
parent 48f7fea2c1
commit 32eb43f99c
8 changed files with 125 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
.TH byte_equal_notimingattack 3
.SH NAME
byte_equal_notimingattack \- compare two strings
.SH SYNTAX
.B #include <libowfat/byte.h>
int \fBbyte_equal_notimingattack\fP(const char *\fIone\fR,size_t \fIlen\fR,const char *\fItwo\fR);
.SH DESCRIPTION
\fIbyte_equal_notimingattack\fR returns 1 if the strings are equal, 0 otherwise.
When the strings are different, byte_equal_notimingattack will still
read and compare all the other bytes. That way, an attacker observing
the timing of the execution can not learn where the first mismatch
occurred.
.SH "SEE ALSO"
byte_diff(3), byte_equal(3)