Bruce
f629296e28
Remove Dilithium ( #2275 )
...
* Removed upstream `name: pqcrystals-dilithium` and signature `name: dilithium` from `copy_from_upstream.yml`.
Removed everything under `src/sig/dilithium`
Re-run `copy_from_upstream.py -d copy`, which produced downstream changes to various build files.
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* remove Dilithium entries from kats.json
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* remove Dilithium entries from constant_time tests
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* Removed dilithium.yml and dilithium.md. Re-run copy_from_upstream.py, which also updated README.md and cbom.json
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* Removed Dilithium from FUZZING.md
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* removed license information about pqclean Dilithium and pqcrystals-dilithium from README.md. README.md still mentions Dilithium but only to say that it has been excluded
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* Upgraded CONFIGURE.md minimal build example to ML-KEM-768 and ML-DSA-44
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* Upgraded C++ sig linking test to ML-DSA-44; also added option to make the test fail hard if the algorithm is not enabled
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* remove Dilithium from GitHub action workflows
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* removed Dilithium from zephyr configuration and examples
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* Removed scripts/copy_from_upstream/patches/pqclean-dilithium-arm-randomized-signing.patch
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* Removed dilithium from upstream.name==pqclean.ignore
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
* Removed orphaned patches
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
---------
Signed-off-by: Ganyu (Bruce) Xu <g66xu@uwaterloo.ca>
2025-09-22 20:52:14 -04:00
Marco Gianvecchio
f58b45a087
Update CROSS to version 2.2 ( #2247 )
...
* update CROSS to version 2.2
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* in CROSS-RSDPG memset vector to 0 before AVX2 exponentiation
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* in CROSS-RSDPG memset vector to 0 before AVX2 exponentiation
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
2025-09-09 17:03:45 -04:00
h2parson
9e964cad5b
Integrate SLH-DSA-C Library ( #2175 )
...
* copy from slhdsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* integrate with copy from upstream
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* explicitly list slhdsa files to include and push generated code
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* format code script
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* add to requirements.in
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* fix code conventions
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* copy from upstream changes
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* add chdir to copy from slh dsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* modify template
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* generate requirements.txt
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* modify requirments in workflows
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* format
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* a
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* sort filenames in cmake file generation for slh dsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* add newline at end of header file
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* add whitespace and fix alg info tests
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* update docs with copy from upstream
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* add whitespace to src files
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* initialize ctx in slh
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* explicitly set little endian for windows x86
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* temporarily disable ctx signing for slh tests
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* disable kats until hashes available for slh dsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* fix issues in test sig mem
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* temporarily add namespaces so that slh dsa will not break test namespace
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* updates
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* formatted file
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* align jinja template to astyle
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* change addrnd size
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* copy from slhdsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* integrate with copy from upstream
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* explicitly list slhdsa files to include and push generated code
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* format code script
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* add to requirements.in
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* fix code conventions
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* copy from upstream changes
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* add chdir to copy from slh dsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* modify template
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* generate requirements.txt
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* modify requirments in workflows
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* format
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* a
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* sort filenames in cmake file generation for slh dsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* add newline at end of header file
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* add whitespace and fix alg info tests
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* update docs with copy from upstream
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* add whitespace to src files
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* initialize ctx in slh
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* explicitly set little endian for windows x86
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* temporarily disable ctx signing for slh tests
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* disable kats until hashes available for slh dsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* fix issues in test sig mem
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* temporarily add namespaces so that slh dsa will not break test namespace
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* updates
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* formatted file
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* align jinja template to astyle
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* change addrnd size
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* fix std algs filtering issue
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* modifying windows amd toolchain file to fix endianness issue
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* disable leak testing on slh dsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* disable slh dsa for arm emulated linux and zephyr tests
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* fix zephyr test skip logic
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* fix upstream issue with prehash naming and add variant specific nist levels
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* automatically update slh dsa yml file
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* get slh dsa md file generation working
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* fix naming in slh wrapper files
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* minor changes from review
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* separate slh dsa jobs from stfl sigs
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* separate slhdsa from sig stfl tests on mac and windows
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* fix macos yml format
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* modify zephyr timeout
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* re-enable some tests for slh dsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* separate leak tests
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* allow algorithm family level enablement and reconfigure slhdsa CI jobs
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* move slh dsa address sanitizer to extended tests and extend time limit to 90 minutes
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
* remove package deb from CI job, remove auto gen kat sig for slhdsa, add prime ctx step for sig testing slhdsa
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
---------
Signed-off-by: h2parson <h2parson@uwaterloo.ca>
2025-08-13 15:41:47 -04:00
Jan Adriaan Leegwater
429c98ee7e
Integrate SNOVA into liboqs ( #2109 )
...
* Integrate SNOVA into liboqs
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
* Remove SNOVA_66_15_3
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
* Add ARM NEON
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
* Update, tighter constant_time passes and issues [full tests] [extended tests]
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
* Update remote commit
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
* Review comments SWilson4 [full tests] [extended tests]
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
* Fix newline at end of file [full tests] [extended tests]
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
* Restrict zephyr algorithms to the low stack ones. [full tests] [extended tests]
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
* Disable SNOVA_24_5_5 in zephyr test [full tests] [extended tests]
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
* Fix typos in KAT [full tests] [extended tests]
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
* Use Constant Time version for sign [full tests] [extended tests]
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
---------
Signed-off-by: Jan Adriaan Leegwater <info@vacuas.nl>
2025-05-01 11:41:57 -04:00
Basil Hess
fe11b6a9fd
Update nist-round in UOV and MAYO data sheet ( #2105 )
...
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
2025-03-19 11:56:15 -04:00
Basil Hess
940d2d0bb8
chore: update MAYO version in datasheet ( #2103 )
...
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
2025-03-18 11:10:20 -04:00
Marco Gianvecchio
8ee6039c74
Add bitflip test for trivial SUF-CMA forgeries ( #2090 )
...
* add bitflip test to test_sig.c
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* format code
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* - add sig->suf_cma
- add command-line argument to test_sig.c (the number of bitflips)
- update CROSS upstream to SUF-CMA
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* %d to %ld for size_t bitflips
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* cast argument bitflips to size_t
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* replace atoi() with strtol()
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* cast bit_index to %llu
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* update bitflip tests:
- revert CROSS to EUF-CMA
- add test_bitflip_message
- exclude stateful signatures for now
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* remove bitflips_as_str in printf
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* test_bitflip as a single function, add support for stateful signatures
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* add OQS_TEST_CT_DECLASSIFY after test_bitflip_stfl
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* [extended tests]
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* more OQS_TEST_CT_DECLASSIFY [extended tests]
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* patch dilithium to add suf-cma
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* run copy_from_upstream.py
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* SUF-CMA in dilithium docs, run copy_from_upstream.py
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* correct sizeof in OQS_randombytes call (thank you @SWilson4!)
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* factor bitflip testing functions out into test_helpers.c
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* --allow-multiple-definition for Windows .dll in test_kem_mem
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* --allow-multiple-definition for Windows .dll in test_sig and test_sig_stfl
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
---------
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
2025-03-14 11:53:05 -04:00
Matthias J. Kannwischer
8ed50816c1
Add UOV ( #2094 )
...
* update_docs_from_yaml.py: Do not rely on SPHINCS being last
Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
* allow pqov namespace
Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
* add uov implementations [full tests] [extended tests]
Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
* Typo [skip ci]
Signed-off-by: Douglas Stebila <dstebila@users.noreply.github.com>
* add UOV to NIST_SIG_ONRAMP
Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
---------
Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
Signed-off-by: Douglas Stebila <dstebila@users.noreply.github.com>
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
Co-authored-by: Thing-han, Lim <15379156+potsrevennil@users.noreply.github.com>
Co-authored-by: Douglas Stebila <dstebila@users.noreply.github.com>
Co-authored-by: Basil Hess <bhe@zurich.ibm.com>
2025-03-10 10:33:27 -04:00
Basil Hess
fa5f792906
Update MAYO to NIST round 2 ( #2095 )
...
* Update MAYO to NIST round 2 [full tests] [extended tests] [trigger downstream]
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
* Update mayo yml with neon
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
---------
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
2025-03-07 18:31:41 +01:00
Marco Gianvecchio
77917043c4
Update CROSS to version 2.0 ( #2078 )
...
* Update CROSS to version 2.0
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* implementations-switch-on-runtime-cpu-features: false in CROSS [skip ci]
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* update KAT "all" for CROSS [extended tests]
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* update cross.md [extended tests]
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* correct call stack in the suppression file for CROSS [extended tests]
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
---------
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
2025-02-20 07:51:12 +01:00
Spencer Wilson
af78b87869
Update PQClean commit and delete patch for HQC ( #2026 )
...
* Update script info
Signed-off-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
* Run copy_from_upstream
Signed-off-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
---------
Signed-off-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
2024-12-22 00:34:13 -05:00
Basil Hess
d9c214cc64
Add ML-DSA / FIPS 204 final ( #1919 )
...
* Pull ML-DSA from pq-crystals upstream.
* Removes ML-DSA-ipd
* Adds support for context strings to OQS SIG API.
* Adding _with_ctx_str APIs, templating
* Adds ACVP tests for ML-DSA
* export symbols for acvp tests (dynamic linking)
* remove IPD intermediate values
* adds flag for ctx support
* Update constant-time passes after line nubmer and function name changes
* Update KATs
* API with checks for signatures without ctx support
* Additional test for signatures with ctx
* Change alg_version to FIPS204
* Update ML-DSA security claim to SUF-CMA, according to FIPS204
* Update src/sig/sig.h
* Fix test_alg_info
---------
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
Co-authored-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
2024-11-26 13:45:10 +01:00
Marco Gianvecchio
1dfb70bca8
imported fix from CROSS upstream: endianness-aware csprng ( #1983 )
...
* Revert "Disable erroring TravisCI build"
This reverts commit b59d78c0f02455da91ce8a34fa742c2b063ccddd.
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
* disable cross on s390x
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
* remove status badge
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
* imported fix from CROSS upstream: endianness-aware csprng
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* reenable cross on s390x
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* fix more endianness issues, add file creation to copy_from_upstream.py
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* revert: add file creation to copy_from_upstream.py
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
---------
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
Co-authored-by: Basil Hess <bhe@zurich.ibm.com>
2024-11-11 13:14:40 -05:00
Marco Gianvecchio
d93a431aaf
Add CROSS ( #1881 )
...
* add CROSS upstream
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* add KATs
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* add docs
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* add Zephyr config
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* run copy_from_upstream.py
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* fix: counter i in generate_merkle_proof shadows previous declaration
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* "claimed-security" is BUFF (instead of EUF-CMA)
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* add CROSS to NIST_SIG_ONRAMP
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* "claimed-security" is set to EUF-CMA by liboqs
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* don't use threads for CROSS variants with large stack usage
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* int defines in api.h don't need to be "L"
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* added auxiliary-submitters
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* fixed indentation
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* disabled variants with large stack usage in zephyr
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* added contributors
[trigger downstream]
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* updated codeowners and contributors
[trigger downstream]
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
* moved test from ubuntu-focal-clang15 to ubuntu-jammy-clang14
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
---------
Signed-off-by: rtjk <47841774+rtjk@users.noreply.github.com>
Signed-off-by: Pravek Sharma <sharmapravek@gmail.com>
Co-authored-by: Pravek Sharma <sharmapravek@gmail.com>
2024-09-03 15:45:37 -04:00
Basil Hess
4cc88845e8
Add MAYO signature scheme from NIST onramp ( #1707 )
...
Add MAYO signature scheme from NIST onramp, C and AVX2 versions
Add AES128CTR to common code
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
2024-07-13 21:38:01 +02:00
Spencer Wilson
7e5dbaf2e8
Support Falcon PADDED format ( #1710 )
...
Additionally:
- re-enable Falcon-1024 in weekly KAT tests
- Update Falcon licence documentation
- Update deprecated CircleCI image
2024-03-06 12:02:43 -05:00
Basil Hess
60adf53107
Add ML-DSA-ipd and ML-KEM-ipd & NIST supplied test vectors ( #1626 )
...
Pulls ML-DSA-ipd and ML-KEM-ipd
Adds test cases with NIST supplied test vectors for ML-DSA/ML-KEM
Adds aliases (ML-<name> are aliases of ML-<name>-ipd)
[trigger downstream]
2024-02-19 10:28:28 +01:00
Spencer Wilson
f468d212f2
Update Markdown from YAML ( #1690 )
2024-02-07 16:32:06 -05:00
Spencer Wilson
da3dab860d
Update SPHINCS+ "clean" suppression files ( #1683 )
2024-02-07 13:30:32 -05:00
Spencer Wilson
aeac3a441d
Pull new HQC implementation from upstream ( #1585 )
...
* Update Sphincs+ PQClean patch
* Don't apply PQClean Dilithium and Kyber patches
* Run copy_from_upstream; don't apply Dilithium and Kyber changes
* Run HQC KATs with custom PRNG
* Satisfy astyle
* Add licence for common code
* Fix CI build errors
* Update HQC version, OQS version, and SOVERSION
* Move HQC PRNG into test file
* Satisfy astyle
* Fix SHA3 link error
* Reset HQC issues/passes
* fixup! Fix SHA3 link error
* fix kat_kem linkage to make HQC PR pass CI (#1601 )
* fix kat_kem linkage
* remove armhf CI support
* Revert "remove armhf CI support"
This reverts commit af759bbf743bb3ecc2e7315cf10c1785e93bcc05.
---------
Co-authored-by: Michael Baentsch <57787676+baentsch@users.noreply.github.com>
2023-11-06 16:40:50 -05:00
Michael Baentsch
02da5677ea
enable several pqclean upstreams ( #1595 )
2023-10-30 16:43:10 +01:00
Michael Baentsch
bd943ce5ee
Run copy_from_upstream and test ( #1589 )
...
* update docs from copy_from_upstream
* move cleanup code to the end to ensure documentation patches survive
2023-10-30 06:32:31 +01:00
Pravek Sharma
e6c650c2ef
Document Falcon constant time errors ( #1552 )
...
* Document Falcon constant time errors.
* Update McEliece docs.
* Update Falcon YML to include aarch64 implementation
* Correct Falcon docs.
---------
Co-authored-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
2023-09-18 13:04:41 -04:00
Spencer Wilson
f761b06c3d
Pull Neon implementation of Falcon from PQClean ( #1547 )
...
Pull aarch64 implementation of Falcon from PQClean
---------
Co-authored-by: Duc Nguyen <ductri.nguyen@sandboxquantum.com>
2023-09-13 08:59:11 -04:00
Douglas Stebila
d14825a755
Pull Falcon updates from PQClean ( #1523 )
...
c3abebf4ab
2023-08-10 13:43:23 -04:00
Basil Hess
be678118a5
kyber/dilithium aarch64 pull from pqclean + patches ( #1512 )
...
* fix compiler warning/error in aes256_armv8.c
* pull pqclean+paches
* pull pqclean+paches
* remove old patches & update algorithm md/yml
* add new patches
* add patch with fixes for arm/kyber768+kyber1024
* update licenses in yamls and mds
* update kyber/dil suppression files
* removes superfluous pqclean Makefiles & updates copy_from_upstream script to handle this case
* update license infos
2023-08-04 16:52:49 -04:00
Pravek Sharma
0b64ca3c91
Update Classic McEliece ( #1470 )
...
* Update Classic McEliece
* Run copy_from_upstream.py
* Change crypto_declassify.h license
* Remove old McEliece vec/avx directories
* Add add_compile_options(-Wno-language-extension-token) to comipler_opts.cmake
* Fix CI errors. Reduce McEliece optimisation from -03 to -01. Patch PQClean McEliece.
* Update liboqs version number. Fix comments.
* Increment SOVERSION.
* Update Classic McEliece advisories. Replace
* Update Classic McEliece documentation YAML. Update KEM CMakeLists Jinja template.
2023-07-17 09:43:45 -04:00
Douglas Stebila
36f3994388
Update SPHINCS+ specification version [skip ci] ( #1477 )
2023-05-19 11:36:48 -04:00
Goutam Tamvada
4d10a58abc
Renamed sphincs-sha256-X to sphincs-sha2-X and sphincs-shake256-X to sphincs-shake-X. ( #1467 )
...
Co-authored-by: Douglas Stebila <dstebila@uwaterloo.ca>
2023-05-17 13:12:03 -04:00
Douglas Stebila
fd1b89724a
Update SPHINCS+ ( #1420 )
...
* Switch to new PQClean commit for SPHINCS+ and remove old patch file
* Improve "compilability" on Apple M1 (ARM) (#1421 )
* correct ARM SHA3 extension addition
* correct compile option for ARM SHA
* correct SHA3 enablement
* Remove SPHINCS+ robust and Haraka variants
* Fix SHA2 block sizes in OpenSSL wrapper
* enable Keccak for Sphincs even if OpenSSL shall provide SHA3
* properly handle xkcp enablement if only specific algorithms are selected
* correct conditional setting
* re-enable XKCP for other platforms
* Windows support
* alternate pqcrystals-AES removal
---------
Co-authored-by: Michael Baentsch <57787676+baentsch@users.noreply.github.com>
2023-05-16 10:54:28 -04:00
Basil Hess
4c7ced218a
Copy_from_upstream: no subprocess call & update_cbom fix for CI. ( #1412 )
...
* Refactor update_cbom and update_docs_from_yaml, allow copy_from_upstream to import them.
Workaround for issue in GitPython, caused update_cbom to fail in Github CI.
* updates after copy_from_upstream
2023-03-06 09:54:43 -05:00
Thom Wiggers
ec5c3be1ca
Update Falcon implementation ( #1395 )
...
* Update Falcon implementation
* Update license and upstream documentation
* Update Falcon constant-time suppressions
* Whitespace tweak from linter [skip ci]
* Update Falcon spec version [skip ci]
---------
Co-authored-by: Douglas Stebila <dstebila@uwaterloo.ca>
2023-03-01 11:03:38 -05:00
Basil Hess
341cf22427
Copy from upstream (Kyber), add pqcrystals-* licenses to README ( #1403 )
...
* Copy from upstream (Kyber), add pqcrystals-* licenses to README
* update algorithm docs
2023-02-25 08:20:41 +01:00
Michael Baentsch
f96d9c2fff
Revert "Update Falcon to 20230207 (PQClean commit 96dfee95cc56207d1ec5e3a2df306d6614ad7c6c) ( #1386 )" ( #1392 )
...
This reverts commit 40b01fdbb270f8614fde30e65d30e9da18c02393.
2023-02-17 07:43:26 +01:00
Douglas Stebila
40b01fdbb2
Update Falcon to 20230207 (PQClean commit 96dfee95cc56207d1ec5e3a2df306d6614ad7c6c) ( #1386 )
...
Fixes #1315
2023-02-10 10:58:42 -05:00
Goutam Tamvada
f214011218
Fixed mismatch between YAML and markdown docs for some algorithms. ( #1365 )
2023-01-17 16:22:07 -05:00
Goutam Tamvada
924ea88cb0
Updated PQClean commit in copy_from_upstream.yml
( #1359 )
2023-01-16 11:06:08 -05:00
Basil Hess
63d4a00d07
Adds CBOM for liboqs ( #1337 )
...
* Adds CBOM:
- CBOM generator: update_cbom.py
- CBOM: cbom.json
- CBOM schema validation: validate_cbom.sh
- CBOM schema validation added to github actions
Adds oqs_alg to docs yml.
Corrects common crypto sources in Kyber and Dilithium docs.
* - removes forward references to OpenSSL OIDs
- move cbom to docs dir
- move update and validate cbom files to scripts dir
- update copy_from_upstream: scripts runs update_cbom.py (after update_docs_from_yaml.py)
2023-01-11 18:32:08 -05:00
Goutam Tamvada
fac5a818ed
Removed the Picnic signature scheme. ( #1323 )
2022-11-28 15:29:10 -05:00
Goutam Tamvada
203c9c269b
Removed the rainbow signature scheme ( #1321 ).
2022-11-28 11:34:59 -05:00
Basil Hess
2e2ddb4e04
Update Kyber and Dilithium from upstream ( #1316 )
2022-11-23 15:15:27 -05:00
thb@sb
c5b8cfe478
Solve '-Wstrict-prototypes' for clang >= 15.0 ( #1293 )
...
* Solve '-Wstrict-prototypes'
Manual changes are applied to the following algorithms only:
* Bike
* Frodo
* Picnic
* Add prototype for implementation of `OQS_SIG_alg_count`
* Add prototype for implementation of `OQS_KEM_alg_count`
* Run `copy_from_upstream.py`
Now, the constructors have a full prototype. It compiles with clang 16.0
2022-08-30 11:20:05 +02:00
Sebastian Ramacher
0511af68d7
Update to Picnic 3.0.17 ( #1280 )
...
* Update to Picnic 3.0.17
* Added valgrind constant time execptions for picnic
Co-authored-by: Christian Paquin <cpaquin@microsoft.com>
2022-08-08 17:02:00 +02:00
Sebastian Ramacher
af76ca3b1f
Update to Picnic 3.0.16 ( fixes #1253 ) ( #1271 )
...
This update fixes alignment issues when built with MSVC.
2022-08-02 09:43:21 -04:00
Douglas Stebila
478ccba970
Remove Rainbow level 1 ( #1263 )
...
Fixes #1260
2022-07-27 15:12:16 -04:00
Sebastian Ramacher
0efa4b97e0
Bump Picnic to 3.0.15 ( #1241 )
...
* Bump Picnic to 3.0.15
2022-06-29 09:01:59 +02:00
Sebastian Ramacher
c0db3d9ce3
Update Picnic to 3.0.14 ( fixes #1212 ) ( #1237 )
...
This commit also corrects incorrect information in picnic.yml
2022-06-28 09:58:15 -04:00
Michael Baentsch
b5484ce92e
workaround for picnic under msys2 ( #1220 )
2022-06-06 17:39:32 +02:00
Jason Goertzen
55bc8cb38d
ARMv8 optimized Dilithium ( #1194 )
...
* Updated sig templates to add support for arch specific upstreams. Currently behaves as expected, but still need to test (and integrate) dilithium
* Fixed a couple of build errors, and started work on dilithium integration from pqclean. Currently failing kat tests
* Updated templating for both sig and kem to make them look a little better
* Renamed dilithium folders so they are consistent across pqclean and pqcrystals so that copy_from_upstream script will function correctly
* Added arm optimized version of dilithium[2|3|5]
* Updating other signature schemes CMakeLists.txt to be the output of the updated templates
* Arm optimized implementation of dilithium is added, with randomized signing patched into it. copy_from_upstream script is working properly. Still need to update the update_docs scripts before ready to merge
* Finished updating docs scripts and yml files. Builds pass, so should be ready for a merge
* Fixed template issue with multiple compile flags
* Updated doc generation scripts so that all '_' in scheme names are replaced with '\_'
2022-03-09 15:17:42 -05:00
Michael Baentsch
6639d3b465
adding warning re Rainbow to documentation [skip ci] ( #1193 )
2022-03-04 17:25:03 +01:00