plan9fox/sys/include/ape
cinap_lenrek 57d95c7325 libsec: move zero check to curve25519_dh_finish()
As checking for all zero has to be done in a timing-safe
way to avoid a side channel, it is best todo this here
instead of letting the caller deal with it.

This adds a return type of int to curve25519_dh_finish()
where returning 0 means we got a all zero shared key.

RFC7748 states:

The check for the all-zero value results from the fact
that the X25519 function produces that value if it
operates on an input corresponding to a point with small
order, where the order divides the cofactor of the curve.
2021-06-20 14:41:26 +00:00
..
arpa ape: initial IPv6 support, inet_pton()/inet_ntop(), getaddrinfo()/getnameinfo() 2013-03-31 18:52:45 +02:00
netinet ape: add inet_aton() 2013-04-01 19:16:18 +02:00
sys ape: an implemenation of getitimer setitimer 2018-07-01 18:48:12 -04:00
ar.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
assert.h ape: improve assert macro 2018-04-02 21:44:21 -07:00
auth.h libauth: add procsetuser() function to change user id of the calling process 2020-12-19 17:46:55 +01:00
bio.h update ape/bio.h (thanks jpm) 2017-05-06 14:33:52 +00:00
bsd.h ape: declare gethostname 2018-12-02 03:30:22 -08:00
bzlib.h add zlib, bzlib and openssl ape ports 2011-05-03 09:56:35 +00:00
ctype.h ape/ctype.h: add isblank, fix functions (thanks staalmannen) 2020-08-29 11:09:20 -07:00
cursor.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
dirent.h ape: add d_stat struct in dirent struct allowing the avoidance of stats 2016-08-28 03:39:49 +02:00
draw.h libdraw: get rid of _drawdebug variable 2017-04-29 21:03:52 +02:00
errno.h python: update python build configuration to new ape capabilities like getaddrinfo(), ipv6 and fix EISCON typo in ape 2013-03-31 18:54:45 +02:00
error.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
event.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fcntl.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
fmt.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
grp.h ape: add some common fields for stat, grp and pwd 2018-06-17 17:38:00 -04:00
inttypes.h [9front] ape: remove _SUSV2_SOURCE guard from inttypes.h 2021-01-23 19:47:12 -08:00
keyboard.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
lib9.h ape/lib9: expose fd2path (thanks phil9) 2021-02-20 21:02:07 -08:00
libl.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
libnet.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
libsec.h libsec: move zero check to curve25519_dh_finish() 2021-06-20 14:41:26 +00:00
libv.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
limits.h ape/limits.h: fix typo in (U)LLONG_MAX 2020-09-21 11:43:31 -07:00
locale.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
lock.h reverting semaphore lock changes from sources (r41ccd6d221da, rb28756e5ba29) 2013-09-26 22:24:31 +02:00
math.h ape/libm: implement log2 in libc 2021-01-30 09:19:57 -08:00
mouse.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mp.h mptod/dtomp: add to mp.h 2018-03-09 21:30:06 +00:00
netdb.h ape: initial IPv6 support, inet_pton()/inet_ntop(), getaddrinfo()/getnameinfo() 2013-03-31 18:52:45 +02:00
Plan9libnet.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
plumb.h ape: make libplumb available under ape. 2020-06-05 11:28:47 -07:00
pwd.h ape: add some common fields for stat, grp and pwd 2018-06-17 17:38:00 -04:00
qlock.h libc: improve alignment of QLp structure on amd64, cosmetics 2017-10-28 18:53:27 +02:00
select.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
setjmp.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
signal.h ape: an implemenation of getitimer setitimer 2018-07-01 18:48:12 -04:00
stdbool.h Add stdbool.h to ape 2020-05-17 08:18:49 -07:00
stddef.h turn ptrdiff_t into a 64 bit type 2020-03-24 14:45:15 -07:00
stdint.h bring stdint.h closer to spec 2020-05-06 15:39:12 -07:00
stdio.h stdio.h: correct return type of putc 2020-08-10 19:36:09 -07:00
stdlib.h Add mkstemp to stdlib.h 2019-09-09 15:58:39 +01:00
string.h libap: add strndup 2020-12-17 19:20:04 -08:00
termios.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
time.h ape: implement altzone for tzset() 2015-08-04 02:01:41 +02:00
u.h ape: add signed fixed size integer typedefs to u.h 2018-05-13 07:13:00 +02:00
unistd.h use #error when missing define 2020-05-01 13:29:08 -07:00
utf.h change Rune from ushort to uint for to 21 bit runes (thanks mischief!) 2013-10-17 12:02:45 +02:00
utime.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
zlib.h add zlib, bzlib and openssl ape ports 2011-05-03 09:56:35 +00:00