MCPcopy Create free account
hub / github.com/albertobsd/keyhunt / ModAddK1order

Method ModAddK1order

gmp256k1/IntMod.cpp:138–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void Int::ModAddK1order(Int *a, Int *b) {
139 mpz_add(num,num,a->num);
140 mpz_add(num,num,b->num);
141 mpz_sub(num,num,_O->num);
142 if (mpz_cmp_ui(num,0) < 0 )
143 mpz_add(num,num,_O->num);
144}
145
146void Int::ModInvorder() {
147 mpz_invert(num,num,_O->num);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected