mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 20:19:34 +00:00
rctSigs - loop invariant code removed from the loop
This commit is contained in:
parent
421ab3119c
commit
34a2a08530
1 changed files with 3 additions and 2 deletions
|
@ -505,11 +505,12 @@ namespace rct {
|
||||||
keyV sk(rows + 1);
|
keyV sk(rows + 1);
|
||||||
size_t i;
|
size_t i;
|
||||||
keyM M(cols, tmp);
|
keyM M(cols, tmp);
|
||||||
|
|
||||||
|
sk[0] = copy(inSk.dest);
|
||||||
|
sc_sub(sk[1].bytes, inSk.mask.bytes, a.bytes);
|
||||||
for (i = 0; i < cols; i++) {
|
for (i = 0; i < cols; i++) {
|
||||||
M[i][0] = pubs[i].dest;
|
M[i][0] = pubs[i].dest;
|
||||||
subKeys(M[i][1], pubs[i].mask, Cout);
|
subKeys(M[i][1], pubs[i].mask, Cout);
|
||||||
sk[0] = copy(inSk.dest);
|
|
||||||
sc_sub(sk[1].bytes, inSk.mask.bytes, a.bytes);
|
|
||||||
}
|
}
|
||||||
return MLSAG_Gen(message, M, sk, kLRki, mscout, index, rows);
|
return MLSAG_Gen(message, M, sk, kLRki, mscout, index, rows);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue