shortcut for Ec::mul(Px, P, x) if P = 0

pull/2/head
MITSUNARI Shigeo 6 years ago
parent 1b56502258
commit f3f9be495c
  1. 4
      include/mcl/ec.hpp
  2. 2
      include/mcl/op.hpp
  3. 1
      readme.md

@ -910,6 +910,10 @@ public:
bool operator<=(const EcT& rhs) const { return !operator>(rhs); } bool operator<=(const EcT& rhs) const { return !operator>(rhs); }
static inline void mulArray(EcT& z, const EcT& x, const fp::Unit *y, size_t yn, bool isNegative, bool constTime = false) static inline void mulArray(EcT& z, const EcT& x, const fp::Unit *y, size_t yn, bool isNegative, bool constTime = false)
{ {
if (!constTime && x.isZero()) {
z.clear();
return;
}
if (mulArrayGLV && (constTime || yn > 1)) { if (mulArrayGLV && (constTime || yn > 1)) {
mulArrayGLV(z, x, y, yn, isNegative, constTime); mulArrayGLV(z, x, y, yn, isNegative, constTime);
return; return;

@ -26,7 +26,7 @@
namespace mcl { namespace mcl {
static const int version = 0x091; /* 0xABC = A.BC */ static const int version = 0x092; /* 0xABC = A.BC */
/* /*
specifies available string format mode for X::setIoMode() specifies available string format mode for X::setIoMode()

@ -443,6 +443,7 @@ Y. Sakemi, Y. Nogami, K. Okeya, Y. Morikawa, CANS 2008.
# History # History
* 2019/Mar/22 v0.92 shortcut for Ec::mul(Px, P, x) if P = 0
* 2019/Mar/21 python binding of she256 for Linux/Mac/Windows * 2019/Mar/21 python binding of she256 for Linux/Mac/Windows
* 2019/Mar/14 v0.91 modp supports mcl-wasm * 2019/Mar/14 v0.91 modp supports mcl-wasm
* 2019/Mar/12 v0.90 fix Vint::setArray(x) for x == this * 2019/Mar/12 v0.90 fix Vint::setArray(x) for x == this

Loading…
Cancel
Save