summaryrefslogtreecommitdiffstats
path: root/kexsntrup761x25519.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* upstream: update the Streamlined NTRU Prime code from the "ref"djm@openbsd.org2024-09-151-1/+5
| | | | | | | | | | | implementation in SUPERCOP 20201130 to the "compact" implementation in SUPERCOP 20240808. The new version is substantially faster. Thanks to Daniel J Bernstein for pointing out the new implementation (and of course for writing it). tested in snaps/ok deraadt@ OpenBSD-Commit-ID: bf1a77924c125ecdbf03e2f3df8ad13bd3dafdcb
* upstream: fix unintended sizeof pointer in debug path ok markus@jsg@openbsd.org2021-12-071-2/+2
| | | | OpenBSD-Commit-ID: b9c0481ffc0cd801e0840e342e6a282a85aac93c
* Disable sntrup761 if compiler doesn't support VLAs.Darren Tucker2021-01-261-0/+32
| | | | | | | | | | | The sntrup761 code sourced from supercop uses variable length arrays. Although widely supported, they are not part of the ANSI C89 spec so if the compiler does not support VLAs, disable the sntrup761x25519-sha512@openssh.com KEX method by replacing the kex functions with no-op ones similar to what we do in kexecdh.c. This should allow OpenSSH to build with a plain C89 compiler again. Spotted by tim@, ok djm@.
* upstream: Adapt to replacement ofdjm@openbsd.org2020-12-291-26/+26
| | | | | | | | | sntrup4591761x25519-sha512@tinyssh.org with sntrup761x25519-sha512@openssh.com. Also test sntrup761x25519-sha512@openssh.com in unittests/kex OpenBSD-Regress-ID: cfa3506b2b077a9cac1877fb521efd2641b6030c
* upstream: Update/replace the experimental post-quantim hybrid keydjm@openbsd.org2020-12-291-0/+219
exchange method based on Streamlined NTRU Prime (coupled with X25519). The previous sntrup4591761x25519-sha512@tinyssh.org method is replaced with sntrup761x25519-sha512@openssh.com. Per the authors, sntrup4591761 was replaced almost two years ago by sntrup761. The sntrup761 implementaion, like sntrup4591761 before it, is public domain code extracted from the SUPERCOP cryptography benchmark suite (https://bench.cr.yp.to/supercop.html). Thanks for Daniel J Bernstein for guidance on algorithm selection. Patch from Tobias Heider; feedback & ok markus@ and myself (note this both the updated method and the one that it replaced are disabled by default) OpenBSD-Commit-ID: 2bf582b772d81ee24e911bb6f4b2aecfd39338ae