1568 Commits

Author SHA1 Message Date
Jolene Tan
670cefd429
set_available_cpu_extensions with pthread_once (#1671) 2024-02-01 13:35:50 +01:00
Jolene Tan
688bdb431f
find_package(Threads) regardless of BUILD_ONLY_LIB (#1653)
* find_package(Threads) regardless of BUILD_ONLY_LIB

* New macro OQS_USE_PTHREADS conditioned on embedded
2024-01-31 09:17:56 +01:00
Spencer Wilson
6bce0103a0
Update BIKE documentation to exclude x86 (#1679)
* Update BIKE documentation to exclude x86; clarify comments in
alg_support

* Update Markdown
2024-01-30 16:03:15 -05:00
Spencer Wilson
7c56bcb6ce
Test against all 100 KAT values (#1560)
Run full KAT tests weekly. All should pass except Falcon-1024, which is pending upstream changes.

---------

Co-authored-by: Michael Baentsch <57787676+baentsch@users.noreply.github.com>
2024-01-30 16:01:46 -05:00
Spencer Wilson
f606d3d326
Fix memory sanitizer compile flag (#1680) 2024-01-30 16:00:00 -05:00
Douglas Stebila
2f4a25c8de Minor wording changes based on suggestions 2024-01-23 09:59:30 -05:00
Douglas Stebila
901cff8fd2 Update GOVERNANCE.md [skip ci]
Co-authored-by: Jason Goertzen <Martyrshot@gmail.com>
2024-01-23 09:59:30 -05:00
Michael Baentsch
0f245e76be Update GOVERNANCE.md
Co-authored-by: Jason Goertzen <Martyrshot@gmail.com>
2024-01-23 09:59:30 -05:00
Michael Baentsch
5fcc0def3e Update GOVERNANCE.md
Co-authored-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
2024-01-23 09:59:30 -05:00
Douglas Stebila
7f67d9175b Some more language about contributors 2024-01-23 09:59:30 -05:00
Douglas Stebila
d7c03c328b Edits to governance document 2024-01-23 09:59:30 -05:00
Michael Baentsch
3f67c90e9f explicitly adding lazy consensus as primary governance principle 2024-01-23 09:59:30 -05:00
Michael Baentsch
ce26db233b first cut at governance file [skip ci] 2024-01-23 09:59:30 -05:00
Spencer Wilson
93c5d489c7 Remove reference to old BIKE variants from CONFIGURE.md [skip ci] 2024-01-22 15:25:42 -05:00
Spencer Wilson
cc453db4a6
Make internal API available to (only) test programs (#1667)
* Separate public and internal headers

* Add necessary #include statements in FrodoKem code

* Build oqs-internal library

* Link test programs with oqs-internal

* Update header file documentation

* Refactor test Makefile

* Move rand_nist to internal API only

* Delete nistseedexpander shim

* Remove internal headers from Doxyfile
2024-01-22 09:03:35 -05:00
Douglas Stebila
88b69e441b Clarify that copyright is held by authors and not the project itself 2024-01-18 12:55:41 -05:00
Tobias Frauenschläger
61e0fa99da Zephyr: CMake fixes
* Minor fixes for the `CMakeLists.txt` file in the `zephyr` directory
propably happened during rebasing of #1641.
* Minor improvements to the Zephyr specific CMake workarounds
* RiscV distinct board references have been removed to
support all RiscV boards Zephyr supports.

Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com>
2024-01-16 14:51:59 +01:00
trigpolynom
bb23b3f61b
Riscv zephyr support (#1641)
* added riscv32 to zephyr (qemu)

* added to PLATFORMS.md
2024-01-14 08:37:50 +01:00
dependabot[bot]
5bee5aa2dd
Bump jinja2 from 2.11.3 to 3.1.3 in /scripts/copy_from_upstream (#1661)
* Bump jinja2 from 2.11.3 to 3.1.3 in /scripts/copy_from_upstream

Bumps [jinja2](https://github.com/pallets/jinja) from 2.11.3 to 3.1.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/2.11.3...3.1.3)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump MarkupSafe version for compatibility with Jinja2

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
2024-01-14 08:34:18 +01:00
Tobias Frauenschläger
eb4b71d207
Zephyr: fixes for platform support (#1658)
This commit fixes platform support for Zephyr. Mainly, x86_64 has been
missing. Furthermore, the 32/64 bit handling has been improved and
simplified.

Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com>
2024-01-13 07:36:48 +01:00
dependabot[bot]
62d0ec258c
Bump gitpython from 3.1.37 to 3.1.41 in /scripts/copy_from_upstream (#1659)
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.37 to 3.1.41.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.37...3.1.41)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-12 10:01:57 -05:00
Spencer Wilson
c2c969c028 Run copy_from_upstream 2024-01-08 11:51:01 -05:00
Spencer Wilson
0e0c2cfb18 Update to most recent Kyber commit 2024-01-08 11:51:01 -05:00
Spencer Wilson
1356ad102a Run copy_from_upstream 2024-01-08 11:51:01 -05:00
Spencer Wilson
2336702600 Update Kyber ARM patch to reflect pq-crystals/kyber@272125f 2024-01-08 11:51:01 -05:00
Pravek Sharma
bf294f9ba1 Run copy_from_upstream.py 2024-01-08 11:51:01 -05:00
Pravek Sharma
e33e7614f9 Update copy_from_upstream.py 2024-01-08 11:51:01 -05:00
Michael Baentsch
ed86578c03
Correct cmake version requirement (#1643)
* upgrade minimum cmake version supported: cmake 3.15 is first version accepting object lists for TARGET_OBJECTS
2024-01-04 11:05:47 +01:00
cothan
b19697422f Update tests/constant_time/sig/passes/falcon_keygen
Co-authored-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
2024-01-02 12:28:13 -05:00
cothan
f123fdc73a fix space 2024-01-02 12:28:13 -05:00
cothan
985336718f fix avx2 constant time 2024-01-02 12:28:13 -05:00
cothan
acc915dfdf fix falcon generic 2024-01-02 12:28:13 -05:00
Spencer Wilson
acac4e998a
Fix BIKE constant-time errors (#1632)
* Document BIKE CT issues

* Document / fix BIKE constant-time errors

* Revert "< 64" comparison change

* Add and use secure_cmpeq64_mask function

* Remove unnecessary static_assert
2024-01-02 09:40:34 -05:00
Basil Hess
6982f4c28f
Adds patch to aarch64 Kyber pulled from PQClean for variable-time division in poly_tomsg. (#1636) 2023-12-26 12:12:07 +01:00
Tobias Frauenschläger
4906c3fc88
Add support for embedded Zephyr RTOS (#1621)
* Zephyr RTOS support

This commit adds initial support for the zephyr operating system. Some
minor changes to the library build system have been made for it to be
compilable with zephyr. Furthermore, we added support for an embedded
build option to disable standard library methods for random number
generation.

* Zephyr: added algorithm selection

The algorithms can now be selected with Kconfig. Per default, we only
enable the algorithms selected by NIST to be standardized. However, all
supported algorithms can be enabled or disabled individually on a per
project basis.

* Zephyr: added testable samples

Added two sample applications within the zephyr directory for KEMs and
Signatures. These are also intended for CI testing.

* Zephyr: added CI tests

* Zephyr: Add documentation

Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com>
2023-12-20 08:20:56 +01:00
Michael Baentsch
8449e54649
platform support documentation (#1605)
* add platform support documentation

* Add CT-tested Tier 0

* Downgrade ppc and s390x to Tier 3

---------

Co-authored-by: Spencer Wilson <spencer.wilson@uwaterloo.ca>
Co-authored-by: Douglas Stebila <dstebila@users.noreply.github.com>
2023-12-16 14:31:51 +01:00
Basil Hess
0febc30848
pull kyber from upstream: dda29cc63af721981ee2c831cf00822e69be3220 (#1631) 2023-12-15 19:41:51 +01:00
Basil Hess
cd67eed98c
update .travis.yml (#1629) 2023-12-14 20:07:08 +01:00
Spencer Wilson
d1e99b3f85
Ensure generic OQS_OPT_TARGET in weekly CT tests (#1618) 2023-12-06 12:00:20 -05:00
Michael Baentsch
78e65bf143
add uninstall support (#1604) 2023-11-07 16:59:03 -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
Vlad Gheorghiu
b94ee464e9
minor updates (#1600)
* minor updates

* Update README.md [skip ci]

---------

Co-authored-by: Douglas Stebila <dstebila@users.noreply.github.com>
2023-11-02 21:07:11 -04:00
Jolene Tan
1bb9887e8a
Call Keccak_(X4_)Dispatch with pthread_once (#1549)
* Call Keccak_(X4_)Dispatch with pthread_once

* Link Threads in common and tests
2023-11-01 10:09:08 +01: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
Iyán
bac716cc91
Add section to CONFIGURE.md link (#1578)
Without it, doxygen (at least, version 1.9.8) gives the following error:
unable to resolve reference to '/liboqs/CONFIGURE.md' for \ref command

This makes scripts/run_doxygen.sh return exit code 1 instead of 0, and
causes `ninja gen_docs` to fail
2023-10-18 14:19:03 -04:00
Jolene Tan
b7f35d76c5
Use CMAKE_USE_PTHREADS_INIT (#1576) 2023-10-18 14:17:53 -04:00
Michael Baentsch
b7c623e732
PR template update & OpenSSL clarification (#1582)
* add test requirement to PR template

* add OpenSSL 1.1.1 caveat

* remove OQS-OpenSSL111 and OQS-BoringSSL from PR template checklist

* add link to documentation of OPENSSL_ROOT_DIR
2023-10-17 06:30:03 +02:00
Douglas Stebila
7c3a0e9aa7 liboqs 0.9.0 release 0.9.0 2023-10-12 16:42:15 -04:00
dependabot[bot]
3982ff7c39
Bump gitpython from 3.1.35 to 3.1.37 in /scripts/copy_from_upstream (#1575)
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.35 to 3.1.37.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.35...3.1.37)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-11 09:37:07 -04:00