Thom Wiggers
303a741192
Move keys in crypto_sign/functest.c to the heap
...
Having the keys on the stack increases the stack space consumption by
quite a bit, and this in turn results in the sanitizer tests failing
for Rainbow.
Moving the keys to the heap in the test seems like a harmless change.
2021-03-24 21:02:45 +00:00
Thom Wiggers
facb527c7c
SPHINCS+ optimized implementations ( #253 )
...
* Add state destroy to SHA2 API
* Include optimized SPHINCS+ implementations
I've generated new implementations from the sphincsplus repository.
* Don't destroy sha256ctx after finalize
* Attempt to shut up MSVC
* Make sure to drop errors in rmtree
2021-03-24 21:02:45 +00:00
Matthias J. Kannwischer
1d789dc90d
check algo names
2019-09-19 12:43:57 +02:00
Matthias J. Kannwischer
d5818a40b0
change include order; add missing includes ( #185 )
2019-06-11 15:09:07 +02:00
Matthias J. Kannwischer
0dd0a4a528
fix format strings for Windows
2019-05-16 11:30:24 +02:00
Matthias J. Kannwischer
951f7a0824
check nist kats for signatures. resolves #169
2019-05-16 11:20:18 +02:00
Thom Wiggers
f39b300e4e
Reduce number of tests for functest
2019-04-18 11:26:28 +02:00
Joost Rijneveld
87a3c6ab39
Add functest/testvectors for detached signatures
2019-04-08 10:23:24 +02:00
Joost Rijneveld
e2fcad2823
Merge branch 'master' into reduce-iterations
2019-04-06 13:10:21 +02:00
Thom Wiggers
d1fd8aa934
Check the specified sizes of the metadata match api.h consts
...
Fixes #88
2019-04-05 17:04:37 +02:00
Joost Rijneveld
f355e77407
Clarify and reduce iterations for sig testvectors
...
This is actually different from signature functests,
which only tests mlen=32. Can be fixed later as that does
not impact the testvectors.
2019-04-05 16:32:39 +02:00
Douglas Stebila
19d177efb3
Use 5 iteractions for functional tests and test vectors
2019-04-05 10:22:52 -04:00
Douglas Stebila
4162be0401
Switch for int and unsigned char to size_to and uint8_t
2019-04-02 14:06:06 -04:00
Thom Wiggers
e811376a95
Do the test more properly
2019-03-19 15:20:59 +00:00
Thom Wiggers
6558773b21
Check if header guard is defined properly
...
Does this slightly uglily, but it should work.
2019-03-19 15:02:09 +00:00
Thom Wiggers
05b0f6d9cc
Namespace the #define constants.
2019-03-19 13:28:15 +00:00
Thom Wiggers
7ad19a30a4
First start of windows test support
2019-03-06 17:14:31 +01:00
Thom Wiggers
07b8c2ebe9
Make all apis use the uint8_t and size_t types
2019-03-05 14:14:47 +01:00
Thom Wiggers
f3e38dbfb2
Merge pull request #62 from PQClean/functestunalign
...
Un-align input byte arrays to catch assumptions about data alignment
2019-02-28 15:57:06 +01:00
Matthias J. Kannwischer
27344bd7ca
un-align pointers. Resolves #24
2019-02-28 09:15:09 +01:00
Thom Wiggers
58aba49ca2
take out assignment in conditional because windows is not happy about it
2019-02-27 17:08:59 +01:00
Thom Wiggers
3b73ea134d
Formatted everything with astyle
...
clang-format was not flexible enough to allow lining out things on
columns with spaces.
2019-02-14 14:08:16 +01:00
Thom Wiggers
fe46514836
Include full clangformat config.
...
Hopefully stabilizes behaviour between versions.
2019-02-11 10:05:54 +01:00
Peter Schwabe
69e593427a
Removed need for aligned types (which are not portable)
...
Resolves #22
2019-02-11 09:41:32 +01:00
d781d0d6ed
enable undefined behaviour sanitizer
2019-02-09 01:09:46 +00:00
Thom Wiggers
31449679bd
Partially validate return codes
2019-01-23 13:09:18 +01:00
Joost Rijneveld
8228363495
Include scheme namespace in tests
2019-01-22 17:40:27 +01:00
Joost Rijneveld
e61a320aed
Move tests to separate directory
2019-01-17 17:44:55 +01:00