You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing arithmetic operations on curve dependent variables (e.g. Point.__mul__), we assume that the curve is the whatever the first variable is.
OpenSSL already checks that the inputs are valid for the given curve when performing curve arithmetic, but we should be much more explicit.
How to resolve?
Check the curve (via its curve_nid) for each variable in the arithmetic before performing the operation. If the curves do not match, do not perform the operation and raise a TypeError (or other more related error).
The text was updated successfully, but these errors were encountered:
What's the issue?
Point.__mul__
), we assume that the curve is the whatever the first variable is.How to resolve?
curve_nid
) for each variable in the arithmetic before performing the operation. If the curves do not match, do not perform the operation and raise aTypeError
(or other more related error).The text was updated successfully, but these errors were encountered: