Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

update Kyber and Dilithium from upstream #1316

Merged
merged 1 commit into from
Nov 23, 2022
Merged
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: 2 additions & 2 deletions docs/algorithms/kem/kyber.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
- **Authors' website**: https://pq-crystals.org/
- **Specification version**: NIST Round 3 submission.
- **Primary Source**<a name="primary-source"></a>:
- **Source**: https://github.com/pq-crystals/kyber/commit/8e00ec73035147d18b27d06048dff322f8de1f29 with copy_from_upstream patches
- **Source**: https://github.com/pq-crystals/kyber/commit/1ee0baa2100a545ac852edea2e4441b8f742814d with copy_from_upstream patches
- **Implementation license (SPDX-Identifier)**: CC0-1.0
- **Optimized Implementation sources**: https://github.com/pq-crystals/kyber/commit/8e00ec73035147d18b27d06048dff322f8de1f29 with copy_from_upstream patches
- **Optimized Implementation sources**: https://github.com/pq-crystals/kyber/commit/1ee0baa2100a545ac852edea2e4441b8f742814d with copy_from_upstream patches
- **pqclean-aarch64**:<a name="pqclean-aarch64"></a>
- **Source**: https://github.com/PQClean/PQClean/commit/4c9e5a3aa715cc8d1d0e377e4e6e682ebd7602d6 with copy_from_upstream patches
- **Implementation license (SPDX-Identifier)**: CC0-1.0
Expand Down
2 changes: 1 addition & 1 deletion docs/algorithms/kem/kyber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ website: https://pq-crystals.org/
nist-round: 3
spec-version: NIST Round 3 submission
primary-upstream:
source: https://github.com/pq-crystals/kyber/commit/8e00ec73035147d18b27d06048dff322f8de1f29
source: https://github.com/pq-crystals/kyber/commit/1ee0baa2100a545ac852edea2e4441b8f742814d
with copy_from_upstream patches
spdx-license-identifier: CC0-1.0
optimized-upstreams:
Expand Down
4 changes: 2 additions & 2 deletions docs/algorithms/sig/dilithium.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
- **Authors' website**: https://pq-crystals.org/dilithium/
- **Specification version**: 3.1.
- **Primary Source**<a name="primary-source"></a>:
- **Source**: https://github.com/pq-crystals/dilithium/commit/61b51a71701b8ae9f546a1e5d220e1950ed20d06 with copy_from_upstream patches
- **Source**: https://github.com/pq-crystals/dilithium/commit/3e9b9f1412f6c7435dbeb4e10692ea58f181ee51 with copy_from_upstream patches
- **Implementation license (SPDX-Identifier)**: CC0-1.0
- **Optimized Implementation sources**: https://github.com/pq-crystals/dilithium/commit/61b51a71701b8ae9f546a1e5d220e1950ed20d06 with copy_from_upstream patches
- **Optimized Implementation sources**: https://github.com/pq-crystals/dilithium/commit/3e9b9f1412f6c7435dbeb4e10692ea58f181ee51 with copy_from_upstream patches
- **pqclean-aarch64**:<a name="pqclean-aarch64"></a>
- **Source**: https://github.com/PQClean/PQClean/commit/4c9e5a3aa715cc8d1d0e377e4e6e682ebd7602d6 with copy_from_upstream patches
- **Implementation license (SPDX-Identifier)**: CC0-1.0
Expand Down
2 changes: 1 addition & 1 deletion docs/algorithms/sig/dilithium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ website: https://pq-crystals.org/dilithium/
nist-round: 3
spec-version: 3.1
primary-upstream:
source: https://github.com/pq-crystals/dilithium/commit/61b51a71701b8ae9f546a1e5d220e1950ed20d06
source: https://github.com/pq-crystals/dilithium/commit/3e9b9f1412f6c7435dbeb4e10692ea58f181ee51
with copy_from_upstream patches
spdx-license-identifier: CC0-1.0
optimized-upstreams:
Expand Down
4 changes: 2 additions & 2 deletions scripts/copy_from_upstream/copy_from_upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ upstreams:
name: pqcrystals-kyber
git_url: https://github.com/pq-crystals/kyber.git
git_branch: master
git_commit: 8e00ec73035147d18b27d06048dff322f8de1f29
git_commit: 1ee0baa2100a545ac852edea2e4441b8f742814d
kem_meta_path: '{pretty_name_full}_META.yml'
kem_scheme_path: '.'
patches: [pqcrystals-kyber-yml.patch, pqcrystals-kyber-ref-shake-aes.patch, pqcrystals-kyber-avx2-shake-aes.patch]
-
name: pqcrystals-dilithium
git_url: https://github.com/pq-crystals/dilithium.git
git_branch: master
git_commit: 61b51a71701b8ae9f546a1e5d220e1950ed20d06
git_commit: 3e9b9f1412f6c7435dbeb4e10692ea58f181ee51
sig_meta_path: '{pretty_name_full}_META.yml'
sig_scheme_path: '.'
patches: [pqcrystals-dilithium-yml.patch, pqcrystals-dilithium-ref-shake-aes.patch, pqcrystals-dilithium-avx2-shake-aes.patch]
Expand Down
2 changes: 1 addition & 1 deletion src/kem/kyber/pqcrystals-kyber_kyber1024-90s_ref/poly.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/*
* Elements of R_q = Z_q[X]/(X^n + 1). Represents polynomial
* coeffs[0] + X*coeffs[1] + X^2*xoeffs[2] + ... + X^{n-1}*coeffs[n-1]
* coeffs[0] + X*coeffs[1] + X^2*coeffs[2] + ... + X^{n-1}*coeffs[n-1]
*/
typedef struct{
int16_t coeffs[KYBER_N];
Expand Down
2 changes: 1 addition & 1 deletion src/kem/kyber/pqcrystals-kyber_kyber1024_ref/poly.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/*
* Elements of R_q = Z_q[X]/(X^n + 1). Represents polynomial
* coeffs[0] + X*coeffs[1] + X^2*xoeffs[2] + ... + X^{n-1}*coeffs[n-1]
* coeffs[0] + X*coeffs[1] + X^2*coeffs[2] + ... + X^{n-1}*coeffs[n-1]
*/
typedef struct{
int16_t coeffs[KYBER_N];
Expand Down
2 changes: 1 addition & 1 deletion src/kem/kyber/pqcrystals-kyber_kyber512-90s_ref/poly.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/*
* Elements of R_q = Z_q[X]/(X^n + 1). Represents polynomial
* coeffs[0] + X*coeffs[1] + X^2*xoeffs[2] + ... + X^{n-1}*coeffs[n-1]
* coeffs[0] + X*coeffs[1] + X^2*coeffs[2] + ... + X^{n-1}*coeffs[n-1]
*/
typedef struct{
int16_t coeffs[KYBER_N];
Expand Down
2 changes: 1 addition & 1 deletion src/kem/kyber/pqcrystals-kyber_kyber512_ref/poly.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/*
* Elements of R_q = Z_q[X]/(X^n + 1). Represents polynomial
* coeffs[0] + X*coeffs[1] + X^2*xoeffs[2] + ... + X^{n-1}*coeffs[n-1]
* coeffs[0] + X*coeffs[1] + X^2*coeffs[2] + ... + X^{n-1}*coeffs[n-1]
*/
typedef struct{
int16_t coeffs[KYBER_N];
Expand Down
2 changes: 1 addition & 1 deletion src/kem/kyber/pqcrystals-kyber_kyber768-90s_ref/poly.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/*
* Elements of R_q = Z_q[X]/(X^n + 1). Represents polynomial
* coeffs[0] + X*coeffs[1] + X^2*xoeffs[2] + ... + X^{n-1}*coeffs[n-1]
* coeffs[0] + X*coeffs[1] + X^2*coeffs[2] + ... + X^{n-1}*coeffs[n-1]
*/
typedef struct{
int16_t coeffs[KYBER_N];
Expand Down
2 changes: 1 addition & 1 deletion src/kem/kyber/pqcrystals-kyber_kyber768_ref/poly.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/*
* Elements of R_q = Z_q[X]/(X^n + 1). Represents polynomial
* coeffs[0] + X*coeffs[1] + X^2*xoeffs[2] + ... + X^{n-1}*coeffs[n-1]
* coeffs[0] + X*coeffs[1] + X^2*coeffs[2] + ... + X^{n-1}*coeffs[n-1]
*/
typedef struct{
int16_t coeffs[KYBER_N];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/);
or Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).

For Keccak and the random number generator
we are using public-domain code from sources
Expand Down