Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/circl
/ functions
Functions
5,182 in github.com/cloudflare/circl
⨍
Functions
5,182
◇
Types & classes
567
↓ 3 callers
Method
evaluate
(elements []Blinded, secret Blind)
oprf/server.go:24
↓ 3 callers
Method
exp
(x *Cyclo6, n []byte)
ecc/bls12381/ff/cyclo6.go:12
↓ 3 callers
Function
expandSeed
(seed []byte)
abe/cpabe/tkn20/internal/tkn/bk.go:58
↓ 3 callers
Function
expandSeedIntoA
(A *nByNU16, seed *[seedASize]byte, xof *sha3.State)
kem/frodo/frodo640shake/matrix_shake.go:7
↓ 3 callers
Function
eye
eye returns the k by k identity matrix.
abe/cpabe/tkn20/internal/tkn/matrixZp.go:130
↓ 3 callers
Function
fiatFpMontMul
The function fiatFpMontMul multiplies two field elements in the Montgomery domain. Preconditions: 0 ≤ eval arg1 < m 0 ≤ eval arg2 < m Postconditi
ecc/bls12381/ff/fpMont381.go:208
↓ 3 callers
Function
fiatScMontMul
The function fiatScMontMul multiplies two field elements in the Montgomery domain. Preconditions: 0 ≤ eval arg1 < m 0 ≤ eval arg2 < m Postconditi
ecc/bls12381/ff/scMont255.go:176
↓ 3 callers
Method
finalize
(f *FinalizeData, e *Evaluation, info []byte)
oprf/client.go:118
↓ 3 callers
Method
fixedBlind
(message, salt []byte, r, rInv *big.Int)
blindsign/blindrsa/brsa.go:143
↓ 3 callers
Method
forsNodeIter
See FIPS 205 -- Section 8.2 -- Algorithm 15 -- Iterative version. This is a stack-based implementation that computes the tree leaves in order (from t
sign/slhdsa/fors.go:53
↓ 3 callers
Method
forsSigSize
()
sign/slhdsa/fors.go:20
↓ 3 callers
Method
forsSign
See FIPS 205 -- Section 8.3 -- Algorithm 16.
sign/slhdsa/fors.go:94
↓ 3 callers
Method
forsSkGen
See FIPS 205 -- Section 8.1 -- Algorithm 14.
sign/slhdsa/fors.go:39
↓ 3 callers
Function
fp384Cmov
go:noescape
ecc/p384/arith.go:110
↓ 3 callers
Function
fpAdd
go:noescape
ecc/fourq/fp_amd64.go:16
↓ 3 callers
Function
fpInv
fpInv sets z to a^(-1) mod p.
ecc/fourq/fp.go:115
↓ 3 callers
Function
fpSub
go:noescape
ecc/fourq/fp_amd64.go:19
↓ 3 callers
Function
fqCopy
(c, a *Fq)
ecc/fourq/fq.go:40
↓ 3 callers
Function
fqInv
(c, a *Fq)
ecc/fourq/fq.go:103
↓ 3 callers
Function
fqSqrt
fqSqrt calculates c = sqrt(u/v) such that sgn(c)=s.
ecc/fourq/fq.go:44
↓ 3 callers
Method
fromBytes
(p *params, c *cursor)
sign/slhdsa/keys.go:117
↓ 3 callers
Method
fromBytes
(p *params, c *cursor)
sign/slhdsa/hypertree.go:12
↓ 3 callers
Method
fromMont
()
ecc/bls12381/ff/fp.go:45
↓ 3 callers
Method
fromMont
()
vdaf/prio3/arith/fp64/fp.go:38
↓ 3 callers
Method
fromMont
()
vdaf/prio3/arith/fp128/fp.go:38
↓ 3 callers
Method
fromR1
(Q *pointR1)
sign/ed25519/point.go:175
↓ 3 callers
Method
gadgetPolyLen
()
vdaf/prio3/internal/flp/valid.go:35
↓ 3 callers
Method
helperProofsShare
(out V, aggID uint8, s *Seed)
vdaf/prio3/internal/prio3/xof.go:120
↓ 3 callers
Function
hexB
(b []byte)
hpke/vectors_test.go:310
↓ 3 callers
Method
inverse
inverse sets m to the inverse of a. If a is not invertible, the result is undefined and an error is returned. Aliasing safe
abe/cpabe/tkn20/internal/tkn/matrixZp.go:259
↓ 3 callers
Method
isValidProjective
isValidProjective returns true if the point is not a projective point.
ecc/bls12381/g1.go:134
↓ 3 callers
Method
isZero
isZero returns false in case v is equal to 0, otherwise true. Constant time.
dh/csidh/fp511.go:203
↓ 3 callers
Method
jointRandSeed
(jointRandParts []byte)
vdaf/prio3/internal/prio3/xof.go:182
↓ 3 callers
Method
mapToCurveParams
()
group/short.go:404
↓ 3 callers
Method
marshalBinary
()
abe/cpabe/tkn20/internal/tkn/tk.go:341
↓ 3 callers
Function
max
(in []int)
abe/cpabe/tkn20/internal/tkn/tk.go:541
↓ 3 callers
Method
mixAdd
mixAdd calculates P= P+Q, where Q is a precomputed point with Z_Q != 1.
ecc/goldilocks/twistPoint.go:101
↓ 3 callers
Method
mixAdd
(Q *pointR3)
sign/ed25519/point.go:108
↓ 3 callers
Function
modP434
Reduce a field element in [0, 2*p) to one in [0,p). go:noescape
dh/sidh/internal/p434/arith_decl.go:50
↓ 3 callers
Function
modP503
Reduce a field element in [0, 2*p) to one in [0,p). go:noescape
dh/sidh/internal/p503/arith_decl.go:50
↓ 3 callers
Function
modP751
Reduce a field element in [0, 2*p) to one in [0,p). go:noescape
dh/sidh/internal/p751/arith_decl.go:50
↓ 3 callers
Function
modQ32
(x int32)
pke/kyber/internal/common/field_test.go:12
↓ 3 callers
Function
montDecode
(c, a *fp384)
ecc/p384/arith.go:31
↓ 3 callers
Function
montReduceLe2Q
For x R ≤ q 2³², find y ≤ 2q with y = x mod q.
sign/internal/dilithium/field.go:20
↓ 3 callers
Function
montgomeryLadder
* ------------------------------------------------------------------------- Generate invalid public key points / ciphertext for test TestKEMInvalid
dh/sidh/internal/p434/curve_test.go:113
↓ 3 callers
Function
montgomeryLadder
* ------------------------------------------------------------------------- Generate invalid public key points / ciphertext for test TestKEMInvalid
dh/sidh/internal/p751/curve_test.go:113
↓ 3 callers
Function
montgomeryLadder
* ------------------------------------------------------------------------- Generate invalid public key points / ciphertext for test TestKEMInvalid
dh/sidh/internal/p503/curve_test.go:113
↓ 3 callers
Function
mul512
(r, m1 *fp, m2 uint64)
dh/csidh/fp511_noasm.go:6
↓ 3 callers
Function
mulA24Generic
(z, x *fp.Elt)
dh/x25519/curve_generic.go:58
↓ 3 callers
Function
mulA24Generic
(z, x *fp448.Elt)
dh/x448/curve_generic.go:58
↓ 3 callers
Function
mustSameLen
(x, y T)
vdaf/prio3/arith/fp64/vector.go:208
↓ 3 callers
Function
mustSameLen
(x, y T)
vdaf/prio3/arith/fp128/vector.go:209
↓ 3 callers
Function
mustSumLen
(z, x, y T)
vdaf/prio3/arith/fp64/vector.go:214
↓ 3 callers
Function
mustSumLen
(z, x, y T)
vdaf/prio3/arith/fp128/vector.go:215
↓ 3 callers
Function
newLexer
(source string)
abe/cpabe/tkn20/internal/dsl/lexer.go:24
↓ 3 callers
Function
oddCrossing
Executes the permutation (a[1] b[0]) (a[3] b[2]) when considering only the even positions of a and b seen as [8]uint32.
sign/internal/dilithium/asm/src.go:44
↓ 3 callers
Function
oracle
oracle generates 3x2 matrices via the random oracle
abe/cpabe/tkn20/internal/tkn/matrixG1.go:224
↓ 3 callers
Method
permB
permB = 6 for Ascon128 and Ascon80pq, or 8 for Ascon128a.
cipher/ascon/ascon.go:173
↓ 3 callers
Method
permute
permute applies the KeccakF-1600 permutation. It handles any input-output buffering.
internal/sha3/sha3.go:82
↓ 3 callers
Method
pi
()
abe/cpabe/tkn20/internal/tkn/policy.go:317
↓ 3 callers
Method
psi
psi is the Galbraith-Scott endomorphism. See https://eprint.iacr.org/2008/117.
ecc/bls12381/g2.go:161
↓ 3 callers
Function
randSliceUint32WithMax
(length uint, max uint32)
sign/internal/dilithium/field_test.go:12
↓ 3 callers
Function
randomCyclo6
(t testing.TB)
ecc/bls12381/ff/cyclo6_test.go:10
↓ 3 callers
Function
randomFp
(t testing.TB)
ecc/bls12381/ff/fp_test.go:11
↓ 3 callers
Function
randomFp6
(t testing.TB)
ecc/bls12381/ff/fp6_test.go:9
↓ 3 callers
Function
readVector
(t *testing.T, fileName string, vector interface{})
sign/slhdsa/acvp_test.go:334
↓ 3 callers
Function
red64
(z *Elt, l, h *[7]uint64)
math/fp448/fp_generic.go:276
↓ 3 callers
Method
scanTokens
()
abe/cpabe/tkn20/internal/dsl/lexer.go:35
↓ 3 callers
Method
secretFromInfo
(info []byte)
oprf/server.go:78
↓ 3 callers
Function
sequentialBytes
sequentialBytes produces a buffer of size consecutive bytes 0x00, 0x01, ..., used for testing. The alignment of each slice is intentionally randomize
internal/sha3/sha3_test.go:155
↓ 3 callers
Method
set
set sets m to a.
abe/cpabe/tkn20/internal/tkn/matrixG1.go:109
↓ 3 callers
Method
set
set sets m to a.
abe/cpabe/tkn20/internal/tkn/matrixZp.go:157
↓ 3 callers
Method
setBytes
(b []byte)
sign/bls/bls.go:68
↓ 3 callers
Function
setBytesBounded
(in []byte, order []byte)
ecc/bls12381/ff/common.go:41
↓ 3 callers
Method
share
share distributes an input into shares for a secret sharing system for the formula: the original vector can be recovered from shares that satisfy the
abe/cpabe/tkn20/internal/tkn/formula.go:249
↓ 3 callers
Function
signAll
(signature []byte, privateKey PrivateKey, message, ctx []byte, preHash bool)
sign/ed25519/ed25519.go:225
↓ 3 callers
Method
sswu
sswu implements the Simplified Shallue-van de Woestijne-Ulas method for mapping a field element to a point on the isogenous curve.
ecc/bls12381/g1Isog.go:32
↓ 3 callers
Function
swapInner
Executes the permutation (a[2] b[0]) (a[3] b[1]) when considering only the even positions of a and b seen as [8]uint32.
sign/internal/dilithium/asm/src.go:35
↓ 3 callers
Function
testFqAdd
(t *testing.T, f tFqAdd)
ecc/fourq/fq_test.go:192
↓ 3 callers
Function
testFqMul
(t *testing.T, f tFqMul)
ecc/fourq/fq_test.go:250
↓ 3 callers
Function
testFqSqr
(t *testing.T, f tFqSqr)
ecc/fourq/fq_test.go:283
↓ 3 callers
Function
testFqSub
(t *testing.T, f tFqSub)
ecc/fourq/fq_test.go:221
↓ 3 callers
Function
testMul
Utility function used for testing Mul implementations. Tests caller provided mulFunc against mul()
dh/sidh/internal/p751/arith_amd64_test.go:36
↓ 3 callers
Function
testMul
Utility function used for testing Mul implementations. Tests caller provided mulFunc against mul()
dh/sidh/internal/p503/arith_amd64_test.go:36
↓ 3 callers
Function
testRedc
Utility function used for testing REDC implementations. Tests caller provided redcFunc against redc()
dh/sidh/internal/p751/arith_amd64_test.go:62
↓ 3 callers
Function
testRedc
Utility function used for testing REDC implementations. Tests caller provided redcFunc against redc()
dh/sidh/internal/p503/arith_amd64_test.go:62
↓ 3 callers
Method
toAffine
toAffine updates g with its affine representation.
ecc/bls12381/g2.go:319
↓ 3 callers
Function
toMont
Converts dst to Montgomery if "toMont==true" or from Montgomery domain otherwise.
dh/csidh/utils_test.go:24
↓ 3 callers
Method
toMont
(x, p *big.Int)
vdaf/prio3/arith/gen.go:94
↓ 3 callers
Method
toposort
Sort the Gates so that Inputs are set before outputs.
abe/cpabe/tkn20/internal/tkn/formula.go:136
↓ 3 callers
Method
validate
(f *FinalizeData, e *Evaluation)
oprf/client.go:91
↓ 3 callers
Function
verify
(public PublicKey, message, signature, ctx []byte, preHash bool)
sign/ed25519/ed25519.go:329
↓ 3 callers
Method
verifyFinalize
(input, info, expectedOutput []byte)
oprf/server.go:125
↓ 3 callers
Method
wotsLen1
()
sign/slhdsa/wotsp.go:18
↓ 3 callers
Method
wotsPkFromSig
See FIPS 205 -- Section 5.3 -- Algorithm 8.
sign/slhdsa/wotsp.go:102
↓ 3 callers
Method
wotsSign
See FIPS 205 -- Section 5.2 -- Algorithm 7.
sign/slhdsa/wotsp.go:64
↓ 3 callers
Function
xDblAdd
xDblAdd implements combined doubling of point P and addition of points P and Q on a Montgomery curve E(x): x^3 + A*x^2 + x by using x-coordinate only
dh/csidh/curve.go:55
↓ 3 callers
Method
xmssSigSize
()
sign/slhdsa/xmss.go:17
↓ 3 callers
Method
xmssSign
See FIPS 205 -- Section 6.2 -- Algorithm 10.
sign/slhdsa/xmss.go:69
↓ 2 callers
Function
Add
Add calculates z = x+y mod p.
math/fp25519/fp.go:190
← previous
next →
1,001–1,100 of 5,182, ranked by callers