1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

crypto: fix comment

This commit is contained in:
Ondřej Vejpustek 2020-06-12 14:08:36 +02:00 committed by Pavol Rusnak
parent 76849f0bd6
commit e630279487

View File

@ -286,7 +286,7 @@ void bn_cmov(bignum256 *res, volatile uint32_t cond, const bignum256 *truecase,
// else (x if x > prime else x + prime) // else (x if x > prime else x + prime)
// Assumes x is normalized and partly reduced // Assumes x is normalized and partly reduced
// Assumes cond is either 1 or 0 // Assumes cond is either 1 or 0
// Guarantees x is normalized and partly reduced // Guarantees x is normalized
// Assumes prime is normalized and // Assumes prime is normalized and
// 0 < prime < 2**260 == 2**(BITS_PER_LIMB * LIMBS - 1) // 0 < prime < 2**260 == 2**(BITS_PER_LIMB * LIMBS - 1)
void bn_cnegate(volatile uint32_t cond, bignum256 *x, const bignum256 *prime) { void bn_cnegate(volatile uint32_t cond, bignum256 *x, const bignum256 *prime) {