-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NTRUPrime: Remove aes aborts as PQClean aes cannot fail
- Loading branch information
Showing
4 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
supercop-20210529 | ||
supercop-20210604 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- upstream/crypto_kem/sntrup761/ref/kem.c | ||
+++ upstream-patched/crypto_kem/sntrup761/ref/kem.c | ||
@@ -1,4 +1,3 @@ | ||
-#include <stdlib.h> /* for abort() in case of OpenSSL failures */ | ||
#include "params.h" | ||
|
||
#include "randombytes.h" | ||
@@ -473,7 +472,7 @@ | ||
static void Expand(uint32 *L,const unsigned char *k) | ||
{ | ||
int i; | ||
- if (crypto_stream_aes256ctr((unsigned char *) L,4*p,aes_nonce,k) != 0) abort(); | ||
+ crypto_stream_aes256ctr((unsigned char *) L,4*p,aes_nonce,k); | ||
for (i = 0;i < p;++i) { | ||
uint32 L0 = ((unsigned char *) L)[4*i]; | ||
uint32 L1 = ((unsigned char *) L)[4*i+1]; | ||
|