Thom Wiggers
d4d6d09ff7
Fix makefiles
4 лет назад
Thom Wiggers
3d95a501a8
Fix haraka Makefile.Microsoft_nmake
4 лет назад
Thom Wiggers
eb59820e21
Add missing obj file to Windows SPHINCS+ AVX2 builds
4 лет назад
xvzcf
77e01fc95c
Update required_flags for Dilithium's META.ymls.
4 лет назад
Thom Wiggers
e22b54b8ba
Update MQDSS round numbers
Based on this change:
00608d7610
4 лет назад
Douglas Stebila
cf5107b69f
Split aes*_keyexp up into ecb and ctr variants
4 лет назад
Michael Baentsch
9248977595
Wshadow at Dilithium/avx2
4 лет назад
Douglas Stebila
5a4b5f7358
Trigger build
4 лет назад
Douglas Stebila
ca0e28bc43
Change formatting
[skip ci]
4 лет назад
Douglas Stebila
f4f51db4eb
Avoid type-punning error when strict-aliasing turned on
4 лет назад
Thom Wiggers
d257525360
Fix UB in qTESLA
Lots of shifts left of signed integers
4 лет назад
Thom Wiggers
160030400d
Fix FIPS202 API memory leaks in Dilithium
4 лет назад
Thom Wiggers
b6b4c7d8ed
Fix SHAKE256 memory leak in Dilithium ( #271 )
4 лет назад
Thom Wiggers
07db9c1e60
Put all common primitives on the heap ( #266 )
* Put AES ctx on the heap
This forces people to use the ``ctx_release`` functions, because otherwise there will be leaks
* Put fips202 on the heap
* Add much more docs for fips202.h
* fixup! Put fips202 on the heap
* Put SHA2 on the heap-supporting API
* Fix clang-tidy warnings
* Fix unreachable free() in falcon
* Fix McEliece8192128f-sse GNU Makefile
4 лет назад
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
4 лет назад
Thom Wiggers
7dc03bfc44
Specify arrays with sizes again
4 лет назад
Thom Wiggers
2b9759912d
Matthias' feedback
4 лет назад
Thom Wiggers
08f96e8c71
fixup! Add MacOS support for Dilithium
4 лет назад
Thom Wiggers
44b0522070
Add MacOS support for Dilithium
4 лет назад
Thom Wiggers
ebb416a2ba
Use more robust macro syntax
4 лет назад
Thom Wiggers
a037d6ccf6
Don't use const integer arguments
4 лет назад
Thom Wiggers
862d0d3094
Use PQClean int guidelines
4 лет назад
Thom Wiggers
6cd265f5b9
fixup! Add Dilithium's AVX2 implementations
4 лет назад
Thom Wiggers
6682216791
Add Dilithium's AVX2 implementations
4 лет назад
Matthias J. Kannwischer
963e87af64
rainbow: memcpy -> memmove since buffers may overlap
5 лет назад
Matthias J. Kannwischer
d1f2d16f46
remove ternary operator in rainbow to compute max
clang-tidy9.0.0 added a new check: bugprone-branch-clone
(https://releases.llvm.org/9.0.0/tools/clang/tools/extra/docs/ReleaseNotes.html )
This doesn't like both branches of an if are the same.
This lead to a warning in rainbow, as where the maximum of two values (which
are always the same) is computed in a macro.
I don't always agree with this warning, but here I think it's worth to
remove the macro.
5 лет назад
Sebastian
56a0fcb135
qTESLA ( #239 )
* Copied qTESLA-p-I round2 (2019-08-19) code
* Code compiles, NIST-KAT works
* Included detached signature API
* Generated testvectors
* Fixed name in api.h
* code style
* Fixed error in Makefile
* Passing pytest
* Fixing types (uint8_t bytes and size_t indices)
* Replaced SHAKE with SHAKE128 where necessary
* Fixed bug: (signed) integer overflow
* Added qTESLA-p-III
* Code is now independent of machine endianness
* repaired Microsoft makefile
5 лет назад
Thom Wiggers
f792b925b4
Enable optimizers on Windows ( #244 )
5 лет назад
Sebastian
298dd2cf22
fix clang-tidy complaint about falcon ( #242 )
See https://circleci.com/gh/PQClean/PQClean/7991
5 лет назад
Matthias J. Kannwischer
db7200dc54
fix algorithm names in META.yml
5 лет назад
Matthias J. Kannwischer
f08f65c8b6
remove unsupported -Wcast-align=strict
5 лет назад
Matthias J. Kannwischer
3a4673bfd6
refactor gf16+gf256 arithmetic of rainbow to fix undefined behaviour
5 лет назад
Matthias J. Kannwischer
0523cd693b
fix and re-add rainbow
5 лет назад
Thom Wiggers
993803e02d
Ignore pointless clang-tidy warning. ( #237 )
* Ignore pointless clang-tidy warning.
It wants you to write type suffixes for integers using uppercase. Let's
just disable this warning.
https://clang.llvm.org/extra/clang-tidy/checks/readability-uppercase-literal-suffix.html
* Clean up bugprone-narrowing-conversion
5 лет назад
Thomas Pornin
2515f13378
Updated version number, and added an explicit cast to appease some versions of clang-tidy.
5 лет назад
Thomas Pornin
44a050106a
Fixed sampler bug (update to new upstream Falcon code 2019-09-18).
5 лет назад
Matthias J. Kannwischer
7d10484030
fix algo names for schemes that are inconsistent with the api.h
5 лет назад
Thom Wiggers
aa46b5239d
Enable valgrind exit errorcode and remove Rainbow ( #223 )
* Enable valgrind exit errorcode
It seems we were not doing anything with the valgrind results... D:
* Use --exit-on-first-error if available
* Revert "Merge pull request #182 from PQClean/rainbow"
This reverts commit 8a008417fe988b48c8acc4aefc9c299a4d3c1645, reversing
changes made to d4b612fe9a
.
5 лет назад
Thom Wiggers
210937a66f
Fix SPHINCS+ clang-tidy warnings
5 лет назад
Thomas Pornin
bad9956869
Fixed some buffer handling bugs that should never happen in practice (but may occur if reusing the internal functions with different parameters).
5 лет назад
Douglas Stebila
4d7e5886c9
Rename dupe to clone
5 лет назад
Thom Wiggers
575d2d688b
Update hashes in META files
5 лет назад
Matthias J. Kannwischer
1fca5ec068
unsigned -> unsigned int
5 лет назад
Matthias J. Kannwischer
2bf9d8b3e9
ran clang-format
5 лет назад
kste
1a27f40937
Only absorb root part of pk in haraka message hashing.
5 лет назад
Thomas Pornin
65e6514be0
Set the version for "round two".
5 лет назад
Thom Wiggers
3c2967b5a1
Fix documentation for Dilithium `crypto_sign_open`
It mentioned `sk` instead of `pk` as specified in the arguments.
Closes #205 .
5 лет назад
Thomas Pornin
7175413a5c
Renamed local variable to avoid a warning about a redefinition; also disabled the MSVC warning C4146 (it is raised whenever negation is applied on an unsigned type, but this has a portable and standard behaviour, and there are good reasons to do that).
5 лет назад
Thomas Pornin
dba40c7d43
Removed 'restrict' keyword (it's C99, but MSVC 2017 does not support it...). This does not seem to impact performance.
5 лет назад
Thomas Pornin
87bc13c761
Some cosmetic changes to appease clang-tidy.
5 лет назад