MCPcopy Create free account

hub / github.com/cloudflare/circl / functions

Functions5,182 in github.com/cloudflare/circl

↓ 4 callersFunctiondecompose
Splits 0 ≤ a < q into a₀ and a₁ with a = a₁*α + a₀ with -α/2 < a₀ ≤ α/2, except for when we would have a₁ = (q-1)/α in which case a₁=0 is taken and -α
sign/mldsa/mldsa87/internal/rounding.go:13
↓ 4 callersFunctiondecompose
Splits 0 ≤ a < q into a₀ and a₁ with a = a₁*α + a₀ with -α/2 < a₀ ≤ α/2, except for when we would have a₁ = (q-1)/α in which case a₁=0 is taken and -α
sign/dilithium/mode2/internal/rounding.go:13
↓ 4 callersFunctiondecompose
Splits 0 ≤ a < q into a₀ and a₁ with a = a₁*α + a₀ with -α/2 < a₀ ≤ α/2, except for when we would have a₁ = (q-1)/α in which case a₁=0 is taken and -α
sign/dilithium/mode3/internal/rounding.go:11
↓ 4 callersFunctiondecompose
Splits 0 ≤ a < q into a₀ and a₁ with a = a₁*α + a₀ with -α/2 < a₀ ≤ α/2, except for when we would have a₁ = (q-1)/α in which case a₁=0 is taken and -α
sign/dilithium/mode5/internal/rounding.go:13
↓ 4 callersFunctionderiveAttributeKeys
(rand io.Reader, sp *SecretParams, attrs *Attributes)
abe/cpabe/tkn20/internal/tkn/tk.go:627
↓ 4 callersFunctionderivePublicKey
derivePublicKey tweaks the public key based on the input metadata. See the specification for more details: https://datatracker.ietf.org/doc/html/draf
blindsign/blindrsa/partiallyblindrsa/pbrsa.go:81
↓ 4 callersMethodexceedsGeneric
Checks whether the "supnorm" (see sec 2.1 of the spec) of p is equal or greater than the given bound. Requires the coefficients of p to be normalized
sign/internal/dilithium/poly.go:51
↓ 4 callersMethodextractExpand
(dh, kemCtx []byte)
hpke/kembase.go:42
↓ 4 callersFunctionfiatFpCmovznzU64
(z *uint64, b, x, y uint64)
vdaf/prio3/arith/fp64/fp.go:154
↓ 4 callersFunctionfiatFpCmovznzU64
(z *uint64, b, x, y uint64)
vdaf/prio3/arith/fp128/fp.go:154
↓ 4 callersFunctionfiatFpMontCmovznzU64
(z *uint64, b, x, y uint64)
ecc/bls12381/ff/fp.go:129
↓ 4 callersFunctionfiatFpMul
The function fiatFpMul multiplies two field elements in the Montgomery domain. Preconditions: 0 ≤ eval arg1 < m 0 ≤ eval arg2 < m Postconditions: eva
vdaf/prio3/arith/fp64/fiatMont.go:111
↓ 4 callersFunctionfiatFpMul
The function fiatFpMul multiplies two field elements in the Montgomery domain. Preconditions: 0 ≤ eval arg1 < m 0 ≤ eval arg2 < m Postconditions: eva
vdaf/prio3/arith/fp128/fiatMont.go:128
↓ 4 callersFunctionfiatScMontCmovznzU64
(z *uint64, b, x, y uint64)
ecc/bls12381/ff/scalar.go:101
↓ 4 callersFunctionfinalExp
(g *Gt, f *ff.Fp12)
ecc/bls12381/pair.go:69
↓ 4 callersMethodforsPkFromSig
See FIPS 205 -- Section 8.4 -- Algorithm 17.
sign/slhdsa/fors.go:122
↓ 4 callersFunctionfp384Inv
(z, x *fp384)
ecc/p384/arith.go:34
↓ 4 callersFunctionfpAddGeneric
(c, a, b *Fp)
ecc/fourq/fp_generic.go:13
↓ 4 callersFunctionfpMulGeneric
(c, a, b *Fp)
ecc/fourq/fp_generic.go:47
↓ 4 callersFunctionfpNeg
(c, a *Fp)
ecc/fourq/fp.go:52
↓ 4 callersFunctionfqCmov
go:noescape
ecc/fourq/fq_amd64.go:7
↓ 4 callersFunctionfqNeg
(c, a *Fq)
ecc/fourq/fq.go:41
↓ 4 callersFunctionfqSgn
(c *Fq)
ecc/fourq/fq.go:35
↓ 4 callersMethodfullEvaluate
(input, info []byte)
oprf/server.go:93
↓ 4 callersFunctiongetModulus
()
dh/x25519/curve_test.go:13
↓ 4 callersFunctiongetModulus
()
dh/x448/curve_test.go:13
↓ 4 callersMethodhtSign
See FIPS 205 -- Section 7.1 -- Algorithm 12.
sign/slhdsa/hypertree.go:29
↓ 4 callersMethodhtVerify
See FIPS 205 -- Section 7.2 -- Algorithm 13.
sign/slhdsa/hypertree.go:51
↓ 4 callersMethodhyperTreeSigSize
d*xmssSigSize() bytes
sign/slhdsa/hypertree.go:10
↓ 4 callersFunctionintGetU64
Converts src to an array of uint64 values encoded in little-endian byte order.
dh/csidh/utils_test.go:89
↓ 4 callersMethodinvNttGeneric
Execute an in-place inverse NTT and multiply by Montgomery factor R Assumes the coefficients are in Montgomery representation and bounded by 2*Q. Th
sign/internal/dilithium/ntt.go:191
↓ 4 callersMethodisEqual
(Q *pointR1)
ecc/fourq/point.go:311
↓ 4 callersFunctionisLess
Returns result of x<y operation.
dh/csidh/fp511.go:26
↓ 4 callersMethodisRTorsion
isRTorsion returns true if point is in the r-torsion subgroup.
ecc/bls12381/g1.go:157
↓ 4 callersMethodisZero
()
ecc/fourq/fp.go:22
↓ 4 callersMethodisZeroCT
()
ecc/fourq/fp.go:26
↓ 4 callersMethodlabeledExtract
(salt, label, ikm []byte)
hpke/util.go:99
↓ 4 callersMethodmixadd
mixadd calculates P=Q+R such that P and Q different than the identity point, and Q not in {P,-P, O}.
ecc/p384/point.go:213
↓ 4 callersFunctionmodExpRdc512
modExpRdc does modular exponentiation of 512-bit number. Constant-time.
dh/csidh/fp511.go:168
↓ 4 callersMethodmulBy2toDGeneric
Sets p to 2ᵈ q without reducing. So it requires the coefficients of p to be less than 2³²⁻ᴰ.
sign/internal/dilithium/poly.go:97
↓ 4 callersMethodmulT
(x *Fp4)
ecc/bls12381/ff/fp4.go:95
↓ 4 callersFunctionmustWrite
(w io.Writer, b []byte)
expander/expander.go:133
↓ 4 callersFunctionnewAffinePoint
(x, y *big.Int)
ecc/p384/point.go:15
↓ 4 callersMethodnormalizeAssumingLe2QGeneric
Normalize the coefficients in this polynomial assuming they are already bounded by 2q.
sign/internal/dilithium/poly.go:25
↓ 4 callersMethodnormalizeGeneric
Normalizes coefficients. Ensures each coefficient is in {0, …, q-1}.
pke/kyber/internal/common/poly.go:38
↓ 4 callersMethodpackLe16Generic
Writes p whose coefficients are in [0, 16) to buf, which must be of length N/2.
sign/internal/dilithium/pack.go:102
↓ 4 callersFunctionperm
(n int, s *[5]uint64)
cipher/ascon/ascon.go:260
↓ 4 callersMethodpower2RoundGeneric
Splits p into p1 and p0 such that [i]p1 * 2ᴰ + [i]p0 = [i]p with -2ᴰ⁻¹ < [i]p0 ≤ 2ᴰ⁻¹. Returns p0 + Q and p1. Requires the coefficients of p to be n
sign/internal/dilithium/poly.go:77
↓ 4 callersFunctionprintDigits
(n *big.Int)
vdaf/prio3/arith/gen.go:111
↓ 4 callersMethodpull
(P *twistPoint)
ecc/goldilocks/isogeny.go:5
↓ 4 callersMethodpush
push sends a point on the Goldilocks curve to a point on the twist curve.
ecc/goldilocks/isogeny.go:9
↓ 4 callersFunctionrandSliceUint32
(length uint)
sign/internal/dilithium/field_test.go:10
↓ 4 callersFunctionrandSliceUint32WithMax
(length uint, max uint32)
pke/kyber/internal/common/field_test.go:39
↓ 4 callersFunctionrandomAffine
()
ecc/p384/point_test.go:17
↓ 4 callersFunctionrandomFp2
(t testing.TB)
ecc/bls12381/ff/fp2_test.go:10
↓ 4 callersFunctionreduceModOrder
reduceModOrder calculates k = k mod order of the curve.
sign/ed25519/modular.go:25
↓ 4 callersFunctionresetCpuFeatures
()
dh/sidh/internal/p434/arith_amd64_test.go:27
↓ 4 callersMethodscalarMult
scalarMult sets m to c*a where c is a Scalar,
abe/cpabe/tkn20/internal/tkn/matrixG1.go:189
↓ 4 callersFunctionsetupAeadTest
()
hpke/aead_test.go:23
↓ 4 callersMethodsizeDH
()
hpke/kembase.go:14
↓ 4 callersFunctionslhKeyGenInternal
See FIPS 205 -- Section 9 SLH-DSA Internal Functions See FIPS 205 -- Section 9.1 -- Algorithm 18.
sign/slhdsa/internal.go:9
↓ 4 callersFunctionslhSignInternal
See FIPS 205 -- Section 9.2 -- Algorithm 19.
sign/slhdsa/internal.go:64
↓ 4 callersMethodsub
sub sets m to a-b.
abe/cpabe/tkn20/internal/tkn/matrixG1.go:128
↓ 4 callersFunctionsub512
r = x - y.
dh/csidh/fp511.go:74
↓ 4 callersMethodsubGeneric
Sets p to a - b. Does not normalize coefficients.
pke/kyber/internal/common/poly.go:20
↓ 4 callersMethodsubGeneric
Sets p to a - b. Warning: assumes coefficients of b are less than 2q.
sign/internal/dilithium/poly.go:41
↓ 4 callersMethodtoBytes
(t *testing.T)
ecc/bls12381/hash_test.go:31
↓ 4 callersMethodtoMont
(in *scRaw)
ecc/bls12381/ff/scalar.go:34
↓ 4 callersMethodtoMont
(in *fpRaw)
ecc/bls12381/ff/fp.go:44
↓ 4 callersMethodtoProjective
()
ecc/p384/point.go:60
↓ 4 callersMethodwotsPkGen
See FIPS 205 -- Section 5.1 -- Algorithm 6.
sign/slhdsa/wotsp.go:39
↓ 4 callersMethodwotsSigSize
()
sign/slhdsa/wotsp.go:16
↓ 4 callersFunctionxAdd
xAdd implements differential arithmetic in P^1 for Montgomery curves E(x): x^3 + A*x^2 + x by using x-coordinate only arithmetic. x(PaQ) = x(P) + x(
dh/csidh/curve.go:10
↓ 4 callersFunctionxIso
xIso computes the isogeny with kernel point kern of a given order kernOrder. Returns the new curve coefficient co and the image img. During computati
dh/csidh/curve.go:134
↓ 4 callersFunctionxMul
xMul implements point multiplication with left-to-right Montgomery adder. co is A coefficient of x^3 + A*x^2 + x curve. k must be > 0 Non-constant ti
dh/csidh/curve.go:92
↓ 4 callersMethodxmssPkFromSig
See FIPS 205 -- Section 6.3 -- Algorithm 11.
sign/slhdsa/xmss.go:84
↓ 4 callersMethodxmssPkSize
()
sign/slhdsa/xmss.go:15
↓ 4 callersMethodzeroElement
()
group/short.go:46
↓ 3 callersMethodAccept
(ExprVisitor)
abe/cpabe/tkn20/internal/dsl/expr.go:4
↓ 3 callersFunctionAdd
Add calculates z = x+y mod p.
math/fp448/fp.go:152
↓ 3 callersMethodAdd
Add returns P+Q.
ecc/goldilocks/curve.go:61
↓ 3 callersFunctionAddSub
AddSub calculates (x,y) = (x+y mod p, x-y mod p).
math/fp448/fp.go:158
↓ 3 callersFunctionAggregate
Aggregate produces a unified signature given a list of signatures. To specify the group of keys pass either G1{} or G2{} as the first parameter.
sign/bls/bls.go:351
↓ 3 callersMethodAllocate
Allocate allocates KEM object for multiple SIKE operations. The rng must be cryptographically secure PRNG.
dh/sidh/sike.go:53
↓ 3 callersMethodBuildMessage
BuildMessage returns a [Message] for signing, and resets the writer.
sign/slhdsa/message.go:73
↓ 3 callersMethodCMov
CMov sets z=x if b == 0 and z=y if b == 1. Its behavior is undefined if b takes any other value.
ecc/bls12381/ff/fp.go:59
↓ 3 callersFunctionCombineSignShares
CombineSignShares combines SignShares to produce a valid signature. Players and threshold must be trusted protocol parameters; the function checks the
tss/rsa/rsa_threshold.go:207
↓ 3 callersMethodCommitSecret
CommitSecret creates a commitment to the secret for further verifying shares.
secretsharing/ss.go:99
↓ 3 callersMethodDbl
Dbl sets the receiver to 2 * x, and returns the receiver.
group/group.go:83
↓ 3 callersMethodDerive
Expands the given seed to a complete matrix. This function is called ExpandA in the specification.
sign/mldsa/mldsa65/internal/mat.go:15
↓ 3 callersMethodDerive
Expands the given seed to a complete matrix. This function is called ExpandA in the specification.
sign/mldsa/mldsa44/internal/mat.go:15
↓ 3 callersMethodDerive
Expands the given seed to a complete matrix. This function is called ExpandA in the specification.
sign/mldsa/mldsa87/internal/mat.go:15
↓ 3 callersMethodDerive
Expands the given seed to a complete matrix. This function is called ExpandA in the specification.
sign/dilithium/mode2/internal/mat.go:15
↓ 3 callersMethodDerive
Expands the given seed to a complete matrix. This function is called ExpandA in the specification.
sign/dilithium/mode3/internal/mat.go:13
↓ 3 callersMethodDerive
Expands the given seed to a complete matrix. This function is called ExpandA in the specification.
sign/dilithium/mode5/internal/mat.go:15
↓ 3 callersFunctionDeriveKeyPair
DeriveKeyPair derives a public/private keypair deterministically from the given seed. Panics if seed is not of length SeedSize.
kem/xwing/xwing.go:98
↓ 3 callersMethodDeriveNoise
Samples p from a centered binomial distribution with given η. Essentially CBD_η(PRF(seed, nonce)) from the specification.
pke/kyber/internal/common/sample.go:17
↓ 3 callersMethodDeriveNoise2
Sample p from a centered binomial distribution with n=4 and p=½ - that is: coefficients are in {-2, -1, 0, 1, 2} with probabilities {1/16, 1/4, 3/8, 1
pke/kyber/internal/common/sample.go:67
↓ 3 callersMethodDeriveNoise3
Sample p from a centered binomial distribution with n=6 and p=½ - that is: coefficients are in {-3, -2, -1, 0, 1, 2, 3} with probabilities {1/64, 3/32
pke/kyber/internal/common/sample.go:31
↓ 3 callersMethodDouble
Double returns 2*(x,y).
ecc/p384/p384opt.go:49
← previousnext →701–800 of 5,182, ranked by callers