MCPcopy Create free account
hub / github.com/DOSNetwork/core / Inv

Method Inv

group/mod/int.go:259–264  ·  view source on GitHub ↗

Inv sets the target to the modular inverse of a with respect to modulus M.

(a kyber.Scalar)

Source from the content-addressed store, hash-verified

257
258// Inv sets the target to the modular inverse of a with respect to modulus M.
259func (i *Int) Inv(a kyber.Scalar) kyber.Scalar {
260 ai := a.(*Int)
261 i.M = ai.M
262 i.V.ModInverse(&a.(*Int).V, i.M)
263 return i
264}
265
266// Exp sets the target to a^e mod M,
267// where e is an arbitrary big.Int exponent (not necessarily 0 <= e < M).

Callers 2

TestScalarOpsFunction · 0.45
RecoverPriPolyFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestScalarOpsFunction · 0.36