Skip to content

Commit

Permalink
upstream: update the Streamlined NTRU Prime code from the "ref"
Browse files Browse the repository at this point in the history
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
  • Loading branch information
djmdjm committed Sep 15, 2024
1 parent 9306d60 commit 930cb02
Show file tree
Hide file tree
Showing 3 changed files with 1,926 additions and 1,023 deletions.
6 changes: 5 additions & 1 deletion kexsntrup761x25519.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: kexsntrup761x25519.c,v 1.2 2021/12/05 12:28:27 jsg Exp $ */
/* $OpenBSD: kexsntrup761x25519.c,v 1.3 2024/09/15 02:20:51 djm Exp $ */
/*
* Copyright (c) 2019 Markus Friedl. All rights reserved.
*
Expand Down Expand Up @@ -39,6 +39,10 @@
#include "digest.h"
#include "ssherr.h"

volatile crypto_int16 crypto_int16_optblocker = 0;
volatile crypto_int32 crypto_int32_optblocker = 0;
volatile crypto_int64 crypto_int64_optblocker = 0;

int
kex_kem_sntrup761x25519_keypair(struct kex *kex)
{
Expand Down
Loading

0 comments on commit 930cb02

Please sign in to comment.