mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 15:39:07 +00:00
Merge pull request #86 from PQClean/reduce-iterations
Use 5 iterations for functional tests and test vectors
This commit is contained in:
commit
5bec3e77f2
@ -5,7 +5,7 @@ length-public-key: 9616
|
||||
length-secret-key: 19888
|
||||
length-ciphertext: 9720
|
||||
length-shared-secret: 16
|
||||
testvectors-sha256: 521ff891de20efe74e6584d09612dae989427ac76261a41630c4e4d6a4fc78a4
|
||||
testvectors-sha256: 8f922de02d41005fcc3c4164b2ab74c4c7b588ed69e34e22607d1ae4ab13d2c5
|
||||
principal-submitter: Douglas Stebila, University of Waterloo
|
||||
auxiliary-submitters:
|
||||
- Erdem Alkim
|
||||
|
@ -5,7 +5,7 @@ length-public-key: 1088
|
||||
length-secret-key: 2400
|
||||
length-ciphertext: 1152
|
||||
length-shared-secret: 32
|
||||
testvectors-sha256: 0e002ee528febdab1709f100df79ceb00b31a809e03a4fb84e3a72c39235d372
|
||||
testvectors-sha256: 2f5cf9937959eb4a3bc910f71e830e9e0de029b28093c6192d2c3e915913016f
|
||||
principal-submitter: Peter Schwabe
|
||||
auxiliary-submitters:
|
||||
- Roberto Avanzi
|
||||
|
@ -4,7 +4,7 @@ claimed-nist-level: 3
|
||||
length-public-key: 1472
|
||||
length-secret-key: 3504
|
||||
length-signature: 2701
|
||||
testvectors-sha256: e1852a975842c44a683c914ed131d95bee9b786c36c41e47bb77d7dd3c0c07be
|
||||
testvectors-sha256: 0d9d7a41b24ab8b250c352fdb50318193f2f66c6c582d7721b785b1a4618b493
|
||||
principal-submitter: Vadim Lyubashevsky
|
||||
auxiliary-submitters:
|
||||
- Léo Ducas
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "api.h"
|
||||
#include "randombytes.h"
|
||||
|
||||
#define NTESTS 10
|
||||
#define NTESTS 5
|
||||
|
||||
const uint8_t canary[8] = {
|
||||
0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "api.h"
|
||||
#include "randombytes.h"
|
||||
|
||||
#define NTESTS 100
|
||||
#define NTESTS 5
|
||||
|
||||
static void printbytes(const uint8_t *x, size_t xlen) {
|
||||
size_t i;
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "api.h"
|
||||
#include "randombytes.h"
|
||||
|
||||
#define NTESTS 15
|
||||
#define NTESTS 5
|
||||
#define MLEN 32
|
||||
|
||||
const uint8_t canary[8] = {
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include "api.h"
|
||||
#include "randombytes.h"
|
||||
|
||||
#define NTESTS 100
|
||||
#define MAXMLEN 2048
|
||||
|
||||
static void printbytes(const uint8_t *x, size_t xlen) {
|
||||
@ -43,7 +42,8 @@ int main(void) {
|
||||
int r;
|
||||
size_t i, k;
|
||||
|
||||
for (i = 0; i < MAXMLEN; i = (i == 0) ? i + 1 : i << 1) {
|
||||
/* i = 0, 1, 4, 16, 64, 256, 1024 */
|
||||
for (i = 0; i < MAXMLEN; i = (i == 0) ? i + 1 : i << 2) {
|
||||
randombytes(mi, i);
|
||||
|
||||
crypto_sign_keypair(pk, sk);
|
||||
|
Loading…
Reference in New Issue
Block a user