Comments (2)
The data going into v_ will be assumed to be already in montgomery form and the toMont() function will be a noop.
No, Fp::isMont() == true
means that v_
must be in Montgomery form, so setArrayMask
takes a given array and must convert it into a Montgomery form by calling toMont()
.
toMont()
does nothing unless isMont()
is true.
Then setArrayMask
can set the same value whether isMont()
is true or not.
from mcl.
My mistake! thanks for the clarification
from mcl.
Related Issues (20)
- Undefined behavior (signed integer overflow) HOT 5
- Unable to compile cpp file in the sample folder HOT 13
- Generate random number of class Fr HOT 1
- mclBnFr_getBigEndian missing in bn.h HOT 1
- gmp support HOT 4
- IsValid method for GT HOT 1
- SetStr on G2 issue HOT 5
- mclBnG1_setDst not exist in C# version HOT 1
- op_ not initialized HOT 1
- Is there a user manual? HOT 2
- pairing method missing e: G1 x G1 -> G2 HOT 1
- efficiency of scalar-field multiplication HOT 6
- Invalid result when using BLS12-381 HOT 14
- constructing a field from __int128 HOT 2
- Inquiry about Fr::mulSmall HOT 2
- Serialize G1 in Java implement HOT 4
- I have an issue on pairing equality, i want to compute a non-witness of an accumulator. HOT 5
- Current git version fails to compile HOT 2
- Dose it support SGX(Software Guard Extensions)? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcl.