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
↓ 6 callers
Function
testPrio3
(t testing.TB, p P, measurements []Measurement)
vdaf/prio3/prio3_test.go:170
↓ 6 callers
Method
toAffine
toAffine updates g with its affine representation.
ecc/bls12381/g1.go:343
↓ 6 callers
Method
toMont
()
vdaf/prio3/arith/fp64/fp.go:37
↓ 6 callers
Method
toMont
()
vdaf/prio3/arith/fp128/fp.go:37
↓ 6 callers
Method
toR1
(projP *pointR1)
ecc/fourq/curve.go:92
↓ 6 callers
Method
transpose
transpose sets m to the transpose of a. Not aliasing safe
abe/cpabe/tkn20/internal/tkn/matrixG1.go:238
↓ 6 callers
Method
unmarshalBinary
(data []byte)
abe/cpabe/tkn20/internal/tkn/policy.go:52
↓ 6 callers
Function
xDbl
xDbl implements point doubling on a Montgomery curve E(x): x^3 + A*x^2 + x by using x-coordinate only arithmetic. x(Q) = [2]*x(P) It is correctly d
dh/csidh/curve.go:32
↓ 6 callers
Method
xmssNodeIter
See FIPS 205 -- Section 6.1 -- Algorithm 9 -- Iterative version. This is a stack-based implementation that computes the tree leaves in order (from th
sign/slhdsa/xmss.go:31
↓ 6 callers
Method
zeroScalar
()
group/short.go:45
↓ 5 callers
Method
Add
Add updates g=P+Q.
ecc/bls12381/g2.go:201
↓ 5 callers
Method
Add
Add calculates z = x + y.
vdaf/prio3/arith/arith.go:48
↓ 5 callers
Method
Add
Sets p to a + b. Does not normalize coefficients.
pke/kyber/internal/common/amd64.go:186
↓ 5 callers
Method
Blind
Blind initializes the blind RSA protocol using an input message and source of randomness. This function fails if randomness was not provided.
blindsign/blindrsa/brsa.go:124
↓ 5 callers
Method
Blind
Blind initializes the partially blind RSA protocol using an input message and source of randomness. The signature includes a randomly generated PSS sa
blindsign/blindrsa/partiallyblindrsa/pbrsa.go:186
↓ 5 callers
Function
ByName
ByName returns the scheme with the given name and nil if it is not supported. Names are case insensitive.
sign/schemes/schemes.go:69
↓ 5 callers
Method
BytesCompressed
Bytes serializes a G1 element in compressed form.
ecc/bls12381/g1.go:29
↓ 5 callers
Method
CompressMessageTo
Writes Compress_q(p, 1) to m. Assumes p is normalized. m has to be of length at least PlaintextSize.
pke/kyber/internal/common/poly.go:150
↓ 5 callers
Method
CompressTo
Writes Compress_q(p, d) to m. Assumes p is normalized and d is in {4, 5, 10, 11}.
pke/kyber/internal/common/poly.go:248
↓ 5 callers
Method
Decompress
Set p to Decompress_q(m, 1). Assumes d is in {4, 5, 10, 11}. p will be normalized.
pke/kyber/internal/common/poly.go:170
↓ 5 callers
Function
DecryptCCA
(ciphertext []byte, key *AttributesKey)
abe/cpabe/tkn20/internal/tkn/bk.go:150
↓ 5 callers
Method
Double
Double updates g = 2g.
ecc/bls12381/g1.go:188
↓ 5 callers
Method
ExtractSize
ExtractSize returns the size (in bytes) of the pseudorandom key produced by KDF.Extract.
hpke/algs.go:110
↓ 5 callers
Method
Finalize
(state State, blindedSig []byte)
blindsign/blindrsa/brsa.go:171
↓ 5 callers
Method
FromFp12
(x *Fp12)
ecc/bls12381/ff/fp12cubic.go:20
↓ 5 callers
Method
FromFp12Cubic
(x *Fp12Cubic)
ecc/bls12381/ff/fp12cubic.go:32
↓ 5 callers
Method
FromR1
(Q *pointR1)
ecc/fourq/point.go:345
↓ 5 callers
Function
GenerateKey
[GenerateKey] returns a pair of keys using the parameter set specified. It returns an error if it fails reading from the random source.
sign/slhdsa/slhdsa.go:30
↓ 5 callers
Method
GetKeyPairAddress
()
sign/slhdsa/address.go:65
↓ 5 callers
Method
Inv
(x *Fp12)
ecc/bls12381/ff/fp12.go:47
↓ 5 callers
Method
InvTwoN
InvTwoN calculates z = 1 / (2^n).
vdaf/prio3/arith/arith.go:60
↓ 5 callers
Method
IsEqual
(x *Fp2)
ecc/bls12381/ff/fp2.go:16
↓ 5 callers
Function
KeyGen
KeyGen obtains a public key given a secret key.
dh/x448/key.go:33
↓ 5 callers
Function
MarshalBinary
MarshalBinary encodes a value into a byte array in a format readable by UnmarshalBinary.
internal/conv/conv.go:145
↓ 5 callers
Method
MarshalBinary
()
abe/cpabe/tkn20/tkn20.go:34
↓ 5 callers
Method
MarshalBinary
()
ecc/bls12381/gt.go:13
↓ 5 callers
Method
MeasurementLength
()
vdaf/prio3/internal/prio3/prio3.go:520
↓ 5 callers
Method
Mul
(x, y *Gt)
ecc/bls12381/gt.go:17
↓ 5 callers
Method
MulBeta
()
ecc/bls12381/ff/fp6.go:19
↓ 5 callers
Function
New
(f T, algorithmID uint32, numShares uint8, context []byte, )
vdaf/prio3/internal/prio3/prio3.go:36
↓ 5 callers
Function
New
(numShares uint8, length, chunkLen uint, context []byte)
vdaf/prio3/histogram/histogram.go:36
↓ 5 callers
Function
NewBigPublicKey
NewBigPublicKey creates a BigPublicKey from a rsa.PublicKey.
blindsign/blindrsa/internal/keys/big_keys.go:30
↓ 5 callers
Function
NewServer
(s Suite, key *PrivateKey)
oprf/oprf.go:139
↓ 5 callers
Function
NewSigner
NewSigner creates a new Signer for the blind RSA protocol using an RSA private key.
blindsign/blindrsa/partiallyblindrsa/pbrsa.go:333
↓ 5 callers
Function
NewSike503
NewSike503 instantiates SIKE/p503 KEM. Deprecated: not cryptographically secure.
dh/sidh/sike.go:36
↓ 5 callers
Function
OmegaNAF
OmegaNAF obtains the window-w Non-Adjacent Form of a positive number n and 1 < w < 32. The returned slice L holds n = sum( L[i]*2^i ). Reference: - A
math/wnaf.go:56
↓ 5 callers
Function
PolyDeriveUniformBall
Samples p uniformly with τ non-zero coefficients in {q-1,1}. The polynomial p will be normalized.
sign/mldsa/mldsa65/internal/sample.go:299
↓ 5 callers
Function
PolyDeriveUniformBall
Samples p uniformly with τ non-zero coefficients in {q-1,1}. The polynomial p will be normalized.
sign/mldsa/mldsa44/internal/sample.go:299
↓ 5 callers
Function
PolyDeriveUniformBall
Samples p uniformly with τ non-zero coefficients in {q-1,1}. The polynomial p will be normalized.
sign/mldsa/mldsa87/internal/sample.go:299
↓ 5 callers
Function
PolyDeriveUniformBall
Samples p uniformly with τ non-zero coefficients in {q-1,1}. The polynomial p will be normalized.
sign/dilithium/mode2/internal/sample.go:299
↓ 5 callers
Function
PolyDeriveUniformBall
Samples p uniformly with τ non-zero coefficients in {q-1,1}. The polynomial p will be normalized.
sign/dilithium/mode3/internal/sample.go:297
↓ 5 callers
Function
PolyDeriveUniformBall
Samples p uniformly with τ non-zero coefficients in {q-1,1}. The polynomial p will be normalized.
sign/dilithium/mode5/internal/sample.go:299
↓ 5 callers
Function
PolyDeriveUniformLeGamma1
Sample p uniformly with coefficients in (-γ₁,…,γK1s] using the given seed and nonce. p will be normalized.
sign/dilithium/mode2/internal/sample.go:197
↓ 5 callers
Function
PolyDeriveUniformLeGamma1
Sample p uniformly with coefficients in (-γ₁,…,γK1s] using the given seed and nonce. p will be normalized.
sign/dilithium/mode3/internal/sample.go:195
↓ 5 callers
Function
PolyDeriveUniformLeGamma1
Sample p uniformly with coefficients in (-γ₁,…,γK1s] using the given seed and nonce. p will be normalized.
sign/dilithium/mode5/internal/sample.go:197
↓ 5 callers
Function
PolyDeriveUniformX4
For each i, sample ps[i] uniformly from the given seed for coordinates xs[i] and ys[i]. ps[i] may be nil and is ignored in that case. Can only be cal
pke/kyber/internal/common/sample.go:101
↓ 5 callers
Function
Prove
Prove creates a DLEQ Proof that attests that the pairs (g,gx) and (h,hx) have the same discrete logarithm equal to x. Given g, h in Qn (the subgroup
zk/qndleq/qndleq.go:72
↓ 5 callers
Function
ReadACVP
ReadACVP reads the gzipped prompt and expectedResults files of the ACVP test vector directory dir.
internal/test/acvp.go:25
↓ 5 callers
Method
Reset
Reset resets the ShakeHash to its initial state.
internal/sha3/shake.go:38
↓ 5 callers
Method
Result
Result unmarshals the expected result of test case tcID into result.
internal/test/acvp.go:59
↓ 5 callers
Method
ScalarBaseMult
ScalarBaseMult calculates P = k*G, where G is the generator point.
ecc/fourq/curve.go:80
↓ 5 callers
Method
ScalarMul
ScalarMul calculates z[i] = z[i] * x.
vdaf/prio3/arith/arith.go:88
↓ 5 callers
Function
ScalarMul3Pt
Scalarmul3Pt is a right-to-left point multiplication that given the x-coordinate of P, Q and P-Q calculates the x-coordinate of R=Q+[scalar]P. nbits m
dh/sidh/internal/p434/curve.go:237
↓ 5 callers
Function
ScalarMul3Pt
Scalarmul3Pt is a right-to-left point multiplication that given the x-coordinate of P, Q and P-Q calculates the x-coordinate of R=Q+[scalar]P. nbits m
dh/sidh/internal/p751/curve.go:237
↓ 5 callers
Function
ScalarMul3Pt
Scalarmul3Pt is a right-to-left point multiplication that given the x-coordinate of P, Q and P-Q calculates the x-coordinate of R=Q+[scalar]P. nbits m
dh/sidh/internal/p503/curve.go:237
↓ 5 callers
Method
ScalarMult
ScalarMult calculates g = kP.
ecc/bls12381/g2.go:204
↓ 5 callers
Method
SeedSize
()
hpke/kembase.go:16
↓ 5 callers
Method
SetBigInt
(x *big.Int)
group/short.go:297
↓ 5 callers
Method
SetBinderByte
(binder ...byte)
vdaf/prio3/internal/prio3/xof.go:74
↓ 5 callers
Method
SetIdentity
()
ecc/fourq/point.go:217
↓ 5 callers
Method
SetUint64
Set the element to x if x < Order().
vdaf/prio3/arith/arith.go:36
↓ 5 callers
Method
Share
Share creates n shares with an ID monotonically increasing from 1 to n.
secretsharing/ss.go:74
↓ 5 callers
Function
SignTo
SignTo signs the given message and writes the signature into signature. For Dilithium this is the top-level signing function. For ML-DSA this is ML-D
sign/mldsa/mldsa65/internal/dilithium.go:340
↓ 5 callers
Function
SignTo
SignTo signs the given message and writes the signature into signature. For Dilithium this is the top-level signing function. For ML-DSA this is ML-D
sign/mldsa/mldsa44/internal/dilithium.go:340
↓ 5 callers
Function
SignTo
SignTo signs the given message and writes the signature into signature. For Dilithium this is the top-level signing function. For ML-DSA this is ML-D
sign/mldsa/mldsa87/internal/dilithium.go:340
↓ 5 callers
Method
SplitBits
SplitBits sets the vector of elements corresponding to the bits of n. The receiving vector sets v[i] = SetUint64(n(i)), where n(i) is the i-th bit of
vdaf/prio3/arith/arith.go:98
↓ 5 callers
Method
Sqr
(x *Fp12)
ecc/bls12381/ff/fp12.go:37
↓ 5 callers
Method
Sub
Sets p to a - b. Does not normalize coefficients.
pke/kyber/internal/common/amd64.go:199
↓ 5 callers
Method
Tangle
Puts p into the right form to be used with (among others) InvNTT().
pke/kyber/internal/common/amd64.go:265
↓ 5 callers
Function
TestInvalidQuery
(t *testing.T, f *flp.FLP[G, P, V, E, F])
vdaf/prio3/internal/flp_test/query.go:14
↓ 5 callers
Method
UnmarshalBinary
(data []byte)
abe/cpabe/tkn20/tkn20.go:88
↓ 5 callers
Method
UnmarshalBinary
UnmarshalBinary reconstructs a Scalar from a slice that must have at least ScalarSize bytes and contain a number (in big-endian order) from 0 to Scala
ecc/bls12381/ff/scalar.go:77
↓ 5 callers
Method
UnmarshalBinaryPrivateKey
(data []byte)
hpke/kembase.go:18
↓ 5 callers
Method
Unpack
Unpack unpacks pk to the public key encoded in buf.
sign/eddilithium3/eddilithium.go:113
↓ 5 callers
Method
Unpack
Unpack unpacks pk to the public key encoded in buf.
sign/eddilithium2/eddilithium.go:118
↓ 5 callers
Function
Validate
Validate returns true if 'pub' is a valid cSIDH public key, otherwise false. More precisely, the function verifies that curve y^2 = x^3 + pub.a * x^
dh/csidh/csidh.go:292
↓ 5 callers
Method
Validate
Validate explicitly determines if a public key is valid.
sign/bls/bls.go:182
↓ 5 callers
Function
Verify
Verify returns true if the signature of a message is valid for the corresponding public key.
sign/bls/bls.go:308
↓ 5 callers
Function
Verify
[Verify] returns true if the signature of the message with the specified context is valid.
sign/slhdsa/slhdsa.go:104
↓ 5 callers
Method
allSetup
(rnd io.Reader)
hpke/hpke.go:210
↓ 5 callers
Method
allSetup
()
hpke/hpke.go:246
↓ 5 callers
Function
barrettReduce
Given any x, compute 0 ≤ y ≤ q with x = y (mod q). Beware: we might have barrettReduce(x) = q ≠ 0 for some x. In fact, this happens if and only if x
pke/kyber/internal/common/field.go:45
↓ 5 callers
Function
benchmarkHash
benchmarkHash tests the speed to hash num buffers of buflen each.
internal/sha3/sha3_test.go:185
↓ 5 callers
Function
benchmarkK12
(b *testing.B, size, num int)
xof/k12/k12_test.go:80
↓ 5 callers
Function
benchmarkPrio3
(b *testing.B, p P, meas []Measurement)
vdaf/prio3/prio3_test.go:289
↓ 5 callers
Function
broadcastImm16
(c int16, out Op)
pke/kyber/internal/common/asm/src.go:32
↓ 5 callers
Function
calculateDelta
(l int64)
tss/rsa/util.go:7
↓ 5 callers
Function
ctPick64
Constant time select. if pick == 0xFF..FF (out = in1) if pick == 0 (out = in2) else out is undefined.
dh/csidh/fp511.go:11
↓ 5 callers
Method
double
double calculates 2P for curves with A=-1.
sign/ed25519/point.go:90
↓ 5 callers
Function
encapsulate
encapsulate creates a new ephemeral key and header that can be opened to it. This is the transformation of an Elgamal like scheme to a KEM.
abe/cpabe/tkn20/internal/tkn/tk.go:553
← previous
next →
401–500 of 5,182, ranked by callers