Merged commit dcaabb from qtesla upstream.

This commit is contained in:
Christian Paquin 2019-09-19 21:41:45 -04:00
parent c24c926d90
commit 8202cc2aff
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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;