MCPcopy Create free account

hub / github.com/cloudflare/bn256 / functions

Functions161 in github.com/cloudflare/bn256

↓ 64 callersFunctiongfpMul
go:noescape
gfp_decl.go:24
↓ 44 callersMethodMarshal
(out []byte)
gfp.go:90
↓ 42 callersMethodSub
(a, b *gfP2)
gfp2.go:70
↓ 34 callersMethodSquare
(a *gfP2)
gfp2.go:118
↓ 33 callersFunctiongfpAdd
go:noescape
gfp_decl.go:18
↓ 30 callersMethodAdd
Add sets e to a+b and then returns e.
bn256.go:77
↓ 30 callersMethodMul
See "Multiplication and Squaring in Pairing-Friendly Fields", http://eprint.iacr.org/2006/471.pdf
gfp2.go:78
↓ 25 callersFunctionmontDecode
(c, a *gfP)
gfp.go:108
↓ 22 callersFunctionnewGFp
(x int64)
gfp.go:14
↓ 21 callersFunctiongfpSub
go:noescape
gfp_decl.go:21
↓ 21 callersFunctionmontEncode
(c, a *gfP)
gfp.go:107
↓ 20 callersMethodScalarBaseMult
ScalarBaseMult sets e to g*k where g is the generator of the group and then returns e.
bn256.go:59
↓ 17 callersMethodAdd
(a, b *gfP6)
gfp6.go:80
↓ 17 callersMethodMul
(a *twistPoint, scalar *big.Int)
twist.go:159
↓ 16 callersMethodUnmarshal
Unmarshal sets e to the result of converting the output of Marshal back into a group element and then returns e.
bn256.go:129
↓ 15 callersMethodMul
(a, b *gfP6)
gfp6.go:94
↓ 15 callersMethodSub
(a, b *gfP6)
gfp6.go:87
↓ 14 callersMethodSetOne
()
gfp2.go:36
↓ 13 callersMethodSet
(f *gfP)
gfp.go:56
↓ 12 callersMethodSet
(a *gfP6)
gfp6.go:17
↓ 11 callersMethodAdd
(a, b *twistPoint)
twist.go:71
↓ 11 callersMethodConjugate
(a *gfP2)
gfp2.go:52
↓ 11 callersMethodUnmarshal
(in []byte)
gfp.go:98
↓ 10 callersMethodMul
(a, b *gfP12)
gfp12.go:125
↓ 10 callersFunctiongfpNeg
go:noescape
gfp_decl.go:15
↓ 9 callersMethodMulXi
MulXi sets e=ξa where ξ=i+3 and then returns e.
gfp2.go:101
↓ 9 callersFunctionPair
Pair calculates an Optimal Ate pairing.
bn256.go:325
↓ 9 callersMethodScalarMult
ScalarMult sets e to a*k and then returns e.
bn256.go:68
↓ 9 callersMethodSet
(a *twistPoint)
twist.go:39
↓ 9 callersFunctionrandomGF
randomGF returns a random integer between 0 and p-1.
gfp_test.go:12
↓ 9 callersFunctiontogfP
togfP converts an integer into a field element (in Montgomery representation). This function assumes the input is between 0 and p-1; otherwise it pani
gfp_test.go:36
↓ 8 callersMethodSetZero
()
gfp2.go:30
↓ 7 callersMethodIsInfinity
()
curve.go:61
↓ 7 callersMethodMulScalar
(a *gfP6, b *gfP2)
gfp6.go:124
↓ 7 callersMethodSet
(a *curvePoint)
curve.go:31
↓ 7 callersMethodSet
(a *gfP2)
gfp2.go:24
↓ 6 callersMethodIsZero
()
gfp2.go:42
↓ 6 callersMethodMulScalar
(a *gfP2, b *gfP)
gfp2.go:94
↓ 6 callersMethodSet
(a *gfP12)
gfp12.go:52
↓ 6 callersFunctiontoBigInt
toBigInt converts a field element into its reduced (mod p) integer representation.
gfp_test.go:22
↓ 5 callersMethodAdd
(a, b *gfP12)
gfp12.go:113
↓ 5 callersMethodExp
(a *gfP12, power *big.Int)
gfp12.go:144
↓ 5 callersMethodFrobenius
(a *gfP6)
gfp6.go:53
↓ 5 callersMethodInvert
(f *gfP)
gfp.go:81
↓ 5 callersMethodMakeAffine
()
curve.go:201
↓ 5 callersMethodMulTau
MulTau computes τ·(aτ²+bτ+c) = bτ²+cτ+aξ
gfp6.go:139
↓ 5 callersMethodNeg
Neg sets e to -a and then returns e.
bn256.go:86
↓ 5 callersFunctionRandomG2
RandomG2 returns x and g₂ˣ where x is a random, non-zero number read from r.
bn256.go:173
↓ 5 callersMethodSquare
(a *gfP6)
gfp6.go:149
↓ 4 callersMethodDouble
(a *curvePoint)
curve.go:152
↓ 4 callersFunctionRandomG1
RandomG1 returns x and g₁ˣ where x is a random, non-zero number read from r.
bn256.go:44
↓ 4 callersMethodSqrt
(f *gfP)
gfp.go:85
↓ 4 callersFunctiongfpCarry
(a *gfP, head uint64)
gfp_generic.go:5
↓ 4 callersFunctionlineFunctionAdd
(r, p *twistPoint, q *curvePoint, r2 *gfP2)
optate.go:3
↓ 4 callersFunctionmul
(a, b [4]uint64)
gfp_generic.go:69
↓ 4 callersFunctionmulLine
(ret *gfP12, a, b, c *gfP2)
optate.go:94
↓ 4 callersFunctionsign0
(e *gfP)
gfp.go:110
↓ 3 callersMethodFrobeniusP2
FrobeniusP2 computes (xτ²+yτ+z)^(p²) = xτ^(2p²) + yτ^(p²) + z
gfp6.go:64
↓ 3 callersMethodIsInfinity
()
twist.go:67
↓ 3 callersMethodMakeAffine
()
twist.go:174
↓ 3 callersMethodSet
Set sets e to a and then returns e.
bn256.go:95
↓ 3 callersMethodSub
(a, b *gfP12)
gfp12.go:119
↓ 3 callersFunctionbenchmarkSize
(b *testing.B, size int)
hash_test.go:20
↓ 3 callersFunctionbigFromBase10
(s string)
constants.go:7
↓ 3 callersMethodexp
(f *gfP, bits [4]uint64)
gfp.go:63
↓ 3 callersFunctionrandomK
(r io.Reader)
bn256.go:26
↓ 2 callersMethodDouble
(a *twistPoint)
twist.go:130
↓ 2 callersFunctionHashG1
HashG1 implements a hashing function into the G1 group. dst represents domain separation tag, similar to salt, for the hash.
hash.go:6
↓ 2 callersMethodIsOnCurve
IsOnCurve returns true iff c is on the curve.
curve.go:39
↓ 2 callersMethodIsZero
()
gfp6.go:38
↓ 2 callersMethodMulGFP
(a *gfP6, b *gfP)
gfp6.go:131
↓ 2 callersMethodMulScalar
(a *gfP12, b *gfP6)
gfp12.go:138
↓ 2 callersMethodNeg
(a *gfP12)
gfp12.go:84
↓ 2 callersFunctionRandomGT
RandomGT returns x and e(g₁, g₂)ˣ where x is a random, non-zero number read from r.
bn256.go:315
↓ 2 callersMethodSetInfinity
()
curve.go:54
↓ 2 callersMethodSetZero
()
gfp6.go:24
↓ 2 callersMethodSquare
(a *gfP12)
gfp12.go:161
↓ 2 callersMethodString
()
bn256.go:53
↓ 2 callersMethodString
()
gfp.go:52
↓ 2 callersFunctionfinalExponentiation
finalExponentiation computes the (p¹²-1)/Order-th power of an element of GF(p¹²) to obtain an element of GT (steps 13-15 of algorithm 1 from http://cr
optate.go:208
↓ 2 callersFunctiongfP2Decode
(in *gfP2)
gfp2.go:13
↓ 2 callersFunctionlegendre
(e *gfP)
gfp.go:123
↓ 2 callersFunctionmiller
miller implements the Miller loop for calculating the Optimal Ate pairing. See algorithm 1 from http://cryptojedi.org/papers/dclxvi-20100714.pdf
optate.go:119
↓ 1 callersMethodAdd
(a, b *curvePoint)
curve.go:65
↓ 1 callersMethodInvert
(a *gfP6)
gfp6.go:171
↓ 1 callersMethodInvert
(a *gfP12)
gfp12.go:177
↓ 1 callersMethodIsOne
()
gfp2.go:47
↓ 1 callersMethodIsZero
()
gfp12.go:70
↓ 1 callersMethodMarshal
Marshal converts e to a byte slice.
bn256.go:104
↓ 1 callersMethodMarshal
Marshal converts e into a byte slice.
bn256.go:233
↓ 1 callersMethodNeg
(a *twistPoint)
twist.go:194
↓ 1 callersMethodSetOne
()
gfp12.go:64
↓ 1 callersMethodSetZero
()
gfp12.go:58
↓ 1 callersFunctionhalfMul
(a, b [4]uint64)
gfp_generic.go:112
↓ 1 callersFunctionhashToBase
hashToBase implements hashing a message to an element of the field. L = ceil((256+128)/8)=48, ctr = 0, i = 1
gfp.go:29
↓ 1 callersFunctionlineFunctionDouble
(r *twistPoint, q *curvePoint)
optate.go:52
↓ 1 callersFunctionmapToCurve
(t *gfP)
hash.go:10
↓ 1 callersFunctionoptimalAte
(a *twistPoint, b *curvePoint)
optate.go:259
MethodAdd
Add sets e to a+b and then returns e.
bn256.go:206
MethodAdd
Add sets e to a+b and then returns e.
bn256.go:360
next →1–100 of 161, ranked by callers