mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-05 00:05:12 -04:00
Merged commit dcaabb from qtesla upstream.
This commit is contained in:
parent
c24c926d90
commit
8202cc2aff
@ -24,7 +24,7 @@ Implementation
|
||||
--------------
|
||||
|
||||
- **Source of implementation:** https://github.com/qtesla/qTesla
|
||||
- **Implementation version:** https://github.com/microsoft/qTESLA-Library/commit/86656c56f9df80abcaed818d691e934542a3f201
|
||||
- **Implementation version:** https://github.com/microsoft/qTESLA-Library/commit/dcaabbff1ef2c1e993c4bca7eb9d4821f2f56bd5
|
||||
- **License:** public domain
|
||||
- **Language:** C
|
||||
- **Constant-time:** Yes
|
||||
|
1
src/sig/qtesla/external/poly.c
vendored
1
src/sig/qtesla/external/poly.c
vendored
@ -141,6 +141,7 @@ static void poly_add_correct(poly result, const poly x, const poly y) { // Polyn
|
||||
|
||||
for (int i = 0; i < PARAM_N; i++) {
|
||||
result[i] = x[i] + y[i];
|
||||
result[i] += (result[i] >> (RADIX32-1)) & PARAM_Q; // If result[i] < 0 then add q
|
||||
result[i] -= PARAM_Q;
|
||||
result[i] += (result[i] >> (RADIX32 - 1)) & PARAM_Q; // If result[i] >= q then subtract q
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ OQS_SIG *OQS_SIG_qTesla_p_I_new() {
|
||||
return NULL;
|
||||
}
|
||||
sig->method_name = OQS_SIG_alg_qTesla_p_I;
|
||||
sig->alg_version = "https://github.com/microsoft/qTESLA-Library/commit/86656c56f9df80abcaed818d691e934542a3f201";
|
||||
sig->alg_version = "https://github.com/microsoft/qTESLA-Library/commit/dcaabbff1ef2c1e993c4bca7eb9d4821f2f56bd5";
|
||||
|
||||
sig->claimed_nist_level = 1;
|
||||
sig->euf_cma = true;
|
||||
@ -38,7 +38,7 @@ OQS_SIG *OQS_SIG_qTesla_p_III_new() {
|
||||
return NULL;
|
||||
}
|
||||
sig->method_name = OQS_SIG_alg_qTesla_p_III;
|
||||
sig->alg_version = "https://github.com/microsoft/qTESLA-Library/commit/86656c56f9df80abcaed818d691e934542a3f201";
|
||||
sig->alg_version = "https://github.com/microsoft/qTESLA-Library/commit/dcaabbff1ef2c1e993c4bca7eb9d4821f2f56bd5";
|
||||
|
||||
sig->claimed_nist_level = 3;
|
||||
sig->euf_cma = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user