Skip to content

Commit 2028069

Browse files
committed
doc: clarify input requirements for secp256k1_fe_mul
"... neither can be equal to b." could suggest that the values are not allowed to be identical, but what is meant here is that the mentioned inputs shouldn't point to the same object.
1 parent 11420a7 commit 2028069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/field.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ static void secp256k1_fe_add(secp256k1_fe *r, const secp256k1_fe *a);
255255
/** Multiply two field elements.
256256
*
257257
* On input, a and b must be valid field elements; r does not need to be initialized.
258-
* r and a may point to the same object, but neither can be equal to b. The magnitudes
259-
* of a and b must not exceed 8.
258+
* r and a may point to the same object, but neither may point to the object pointed
259+
* to by b. The magnitudes of a and b must not exceed 8.
260260
* Performs {r = a * b}
261261
* On output, r will have magnitude 1, but won't be normalized.
262262
*/

0 commit comments

Comments
 (0)