Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/extended.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ jobs:

libjadecheck:
name: Check libjade code is properly integrated
# TODO: Enable this job once the libjade upstream issue is resolved.
# See copy_from_libjade.yml for details.
# Tracked by: https://github.com/open-quantum-safe/liboqs/issues/2697
if: false
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion CONFIGURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Upstream projects can provide memory-optimized implementations by adding a separ
**Default**: `OFF`.

## OQS_LIBJADE_BUILD
Can be `ON` or `OFF`. When `ON` liboqs is built to use high assurance implementations of cryptographic algorithms from [Libjade](https://github.com/formosa-crypto/libjade). The cryptographic primitives in Libjade are written using [Jasmin](https://github.com/jasmin-lang/jasmin) and built using the Jasmin compiler. The Jasmin compiler is proven (in Coq) to preserve semantic correctness of a program, maintain secret-independence of control flow, and maintain secret independence of locations of memory access through compilation. Additionally, the Jasmin compiler guarantees thread safety because Jasmin doesn't support global variables.
Can be `ON` or `OFF`. When `ON` liboqs is built to use high assurance implementations of cryptographic algorithms from [Libjade](https://github.com/formosa-crypto/formosa-libjade). The cryptographic primitives in Libjade are written using [Jasmin](https://github.com/jasmin-lang/jasmin) and built using the Jasmin compiler. The Jasmin compiler is proven (in Coq) to preserve semantic correctness of a program, maintain secret-independence of control flow, and maintain secret independence of locations of memory access through compilation. Additionally, the Jasmin compiler guarantees thread safety because Jasmin doesn't support global variables.

At the moment, Libjade only provides Kyber512 and Kyber768 KEMs.

Expand Down
8 changes: 8 additions & 0 deletions scripts/copy_from_upstream/copy_from_libjade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
# must updated for the relevant algorithm in copy_from_upstream.yml
# Additionaly, the algorithm name must be appended to the GitHub repository
# environment variable LIBJADE_ALG_LIST.
#
# TODO: libjade upstream was moved from formosa-crypto/libjade to formosa-crypto/formosa-libjade.
# In this move, the branch and commit history of the original libjade repository were removed.
# This file records the old commit, but it is no longer fetchable, and now commit in the new
# repository's history matches the kyber state.
# To fix this, we need to port the import to formosa-libjade's ML-KEM layout, updating
# this file and the relevant sections of the code that depend on it.
# Tracked by: https://github.com/open-quantum-safe/liboqs/issues/2697
jasmin_version: '2023.06.3'
upstreams:
-
Expand Down
5 changes: 5 additions & 0 deletions scripts/copy_from_upstream/copy_from_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,11 @@ def verify_from_upstream():
os.chdir(os.path.join(os.environ['LIBOQS_DIR'],"scripts","copy_from_upstream"))
copy_from_upstream(slh_dsa_instruction)
elif args.operation == "libjade":
# TODO(#2697): remove once the import is ported to formosa-libjade.
sys.exit("The libjade upstream (formosa-crypto/libjade) moved to "
"formosa-crypto/formosa-libjade and its history was removed, so "
"this import cannot run. See "
"https://github.com/open-quantum-safe/liboqs/issues/2697.")
copy_from_libjade()
elif args.operation == "verify":
verify_from_upstream()
Loading