MCPcopy Create free account

hub / github.com/cloudflare/circl / functions

Functions5,182 in github.com/cloudflare/circl

↓ 6 callersFunctiontestPrio3
(t testing.TB, p P, measurements []Measurement)
vdaf/prio3/prio3_test.go:170
↓ 6 callersMethodtoAffine
toAffine updates g with its affine representation.
ecc/bls12381/g1.go:343
↓ 6 callersMethodtoMont
()
vdaf/prio3/arith/fp64/fp.go:37
↓ 6 callersMethodtoMont
()
vdaf/prio3/arith/fp128/fp.go:37
↓ 6 callersMethodtoR1
(projP *pointR1)
ecc/fourq/curve.go:92
↓ 6 callersMethodtranspose
transpose sets m to the transpose of a. Not aliasing safe
abe/cpabe/tkn20/internal/tkn/matrixG1.go:238
↓ 6 callersMethodunmarshalBinary
(data []byte)
abe/cpabe/tkn20/internal/tkn/policy.go:52
↓ 6 callersFunctionxDbl
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 callersMethodxmssNodeIter
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 callersMethodzeroScalar
()
group/short.go:45
↓ 5 callersMethodAdd
Add updates g=P+Q.
ecc/bls12381/g2.go:201
↓ 5 callersMethodAdd
Add calculates z = x + y.
vdaf/prio3/arith/arith.go:48
↓ 5 callersMethodAdd
Sets p to a + b. Does not normalize coefficients.
pke/kyber/internal/common/amd64.go:186
↓ 5 callersMethodBlind
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 callersMethodBlind
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 callersFunctionByName
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 callersMethodBytesCompressed
Bytes serializes a G1 element in compressed form.
ecc/bls12381/g1.go:29
↓ 5 callersMethodCompressMessageTo
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 callersMethodCompressTo
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 callersMethodDecompress
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 callersFunctionDecryptCCA
(ciphertext []byte, key *AttributesKey)
abe/cpabe/tkn20/internal/tkn/bk.go:150
↓ 5 callersMethodDouble
Double updates g = 2g.
ecc/bls12381/g1.go:188
↓ 5 callersMethodExtractSize
ExtractSize returns the size (in bytes) of the pseudorandom key produced by KDF.Extract.
hpke/algs.go:110
↓ 5 callersMethodFinalize
(state State, blindedSig []byte)
blindsign/blindrsa/brsa.go:171
↓ 5 callersMethodFromFp12
(x *Fp12)
ecc/bls12381/ff/fp12cubic.go:20
↓ 5 callersMethodFromFp12Cubic
(x *Fp12Cubic)
ecc/bls12381/ff/fp12cubic.go:32
↓ 5 callersMethodFromR1
(Q *pointR1)
ecc/fourq/point.go:345
↓ 5 callersFunctionGenerateKey
[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 callersMethodGetKeyPairAddress
()
sign/slhdsa/address.go:65
↓ 5 callersMethodInv
(x *Fp12)
ecc/bls12381/ff/fp12.go:47
↓ 5 callersMethodInvTwoN
InvTwoN calculates z = 1 / (2^n).
vdaf/prio3/arith/arith.go:60
↓ 5 callersMethodIsEqual
(x *Fp2)
ecc/bls12381/ff/fp2.go:16
↓ 5 callersFunctionKeyGen
KeyGen obtains a public key given a secret key.
dh/x448/key.go:33
↓ 5 callersFunctionMarshalBinary
MarshalBinary encodes a value into a byte array in a format readable by UnmarshalBinary.
internal/conv/conv.go:145
↓ 5 callersMethodMarshalBinary
()
abe/cpabe/tkn20/tkn20.go:34
↓ 5 callersMethodMarshalBinary
()
ecc/bls12381/gt.go:13
↓ 5 callersMethodMeasurementLength
()
vdaf/prio3/internal/prio3/prio3.go:520
↓ 5 callersMethodMul
(x, y *Gt)
ecc/bls12381/gt.go:17
↓ 5 callersMethodMulBeta
()
ecc/bls12381/ff/fp6.go:19
↓ 5 callersFunctionNew
(f T, algorithmID uint32, numShares uint8, context []byte, )
vdaf/prio3/internal/prio3/prio3.go:36
↓ 5 callersFunctionNew
(numShares uint8, length, chunkLen uint, context []byte)
vdaf/prio3/histogram/histogram.go:36
↓ 5 callersFunctionNewBigPublicKey
NewBigPublicKey creates a BigPublicKey from a rsa.PublicKey.
blindsign/blindrsa/internal/keys/big_keys.go:30
↓ 5 callersFunctionNewServer
(s Suite, key *PrivateKey)
oprf/oprf.go:139
↓ 5 callersFunctionNewSigner
NewSigner creates a new Signer for the blind RSA protocol using an RSA private key.
blindsign/blindrsa/partiallyblindrsa/pbrsa.go:333
↓ 5 callersFunctionNewSike503
NewSike503 instantiates SIKE/p503 KEM. Deprecated: not cryptographically secure.
dh/sidh/sike.go:36
↓ 5 callersFunctionOmegaNAF
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 callersFunctionPolyDeriveUniformBall
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 callersFunctionPolyDeriveUniformBall
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 callersFunctionPolyDeriveUniformBall
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 callersFunctionPolyDeriveUniformBall
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 callersFunctionPolyDeriveUniformBall
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 callersFunctionPolyDeriveUniformBall
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 callersFunctionPolyDeriveUniformLeGamma1
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 callersFunctionPolyDeriveUniformLeGamma1
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 callersFunctionPolyDeriveUniformLeGamma1
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 callersFunctionPolyDeriveUniformX4
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 callersFunctionProve
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 callersFunctionReadACVP
ReadACVP reads the gzipped prompt and expectedResults files of the ACVP test vector directory dir.
internal/test/acvp.go:25
↓ 5 callersMethodReset
Reset resets the ShakeHash to its initial state.
internal/sha3/shake.go:38
↓ 5 callersMethodResult
Result unmarshals the expected result of test case tcID into result.
internal/test/acvp.go:59
↓ 5 callersMethodScalarBaseMult
ScalarBaseMult calculates P = k*G, where G is the generator point.
ecc/fourq/curve.go:80
↓ 5 callersMethodScalarMul
ScalarMul calculates z[i] = z[i] * x.
vdaf/prio3/arith/arith.go:88
↓ 5 callersFunctionScalarMul3Pt
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 callersFunctionScalarMul3Pt
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 callersFunctionScalarMul3Pt
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 callersMethodScalarMult
ScalarMult calculates g = kP.
ecc/bls12381/g2.go:204
↓ 5 callersMethodSeedSize
()
hpke/kembase.go:16
↓ 5 callersMethodSetBigInt
(x *big.Int)
group/short.go:297
↓ 5 callersMethodSetBinderByte
(binder ...byte)
vdaf/prio3/internal/prio3/xof.go:74
↓ 5 callersMethodSetIdentity
()
ecc/fourq/point.go:217
↓ 5 callersMethodSetUint64
Set the element to x if x < Order().
vdaf/prio3/arith/arith.go:36
↓ 5 callersMethodShare
Share creates n shares with an ID monotonically increasing from 1 to n.
secretsharing/ss.go:74
↓ 5 callersFunctionSignTo
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 callersFunctionSignTo
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 callersFunctionSignTo
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 callersMethodSplitBits
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 callersMethodSqr
(x *Fp12)
ecc/bls12381/ff/fp12.go:37
↓ 5 callersMethodSub
Sets p to a - b. Does not normalize coefficients.
pke/kyber/internal/common/amd64.go:199
↓ 5 callersMethodTangle
Puts p into the right form to be used with (among others) InvNTT().
pke/kyber/internal/common/amd64.go:265
↓ 5 callersFunctionTestInvalidQuery
(t *testing.T, f *flp.FLP[G, P, V, E, F])
vdaf/prio3/internal/flp_test/query.go:14
↓ 5 callersMethodUnmarshalBinary
(data []byte)
abe/cpabe/tkn20/tkn20.go:88
↓ 5 callersMethodUnmarshalBinary
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 callersMethodUnmarshalBinaryPrivateKey
(data []byte)
hpke/kembase.go:18
↓ 5 callersMethodUnpack
Unpack unpacks pk to the public key encoded in buf.
sign/eddilithium3/eddilithium.go:113
↓ 5 callersMethodUnpack
Unpack unpacks pk to the public key encoded in buf.
sign/eddilithium2/eddilithium.go:118
↓ 5 callersFunctionValidate
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 callersMethodValidate
Validate explicitly determines if a public key is valid.
sign/bls/bls.go:182
↓ 5 callersFunctionVerify
Verify returns true if the signature of a message is valid for the corresponding public key.
sign/bls/bls.go:308
↓ 5 callersFunctionVerify
[Verify] returns true if the signature of the message with the specified context is valid.
sign/slhdsa/slhdsa.go:104
↓ 5 callersMethodallSetup
(rnd io.Reader)
hpke/hpke.go:210
↓ 5 callersMethodallSetup
()
hpke/hpke.go:246
↓ 5 callersFunctionbarrettReduce
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 callersFunctionbenchmarkHash
benchmarkHash tests the speed to hash num buffers of buflen each.
internal/sha3/sha3_test.go:185
↓ 5 callersFunctionbenchmarkK12
(b *testing.B, size, num int)
xof/k12/k12_test.go:80
↓ 5 callersFunctionbenchmarkPrio3
(b *testing.B, p P, meas []Measurement)
vdaf/prio3/prio3_test.go:289
↓ 5 callersFunctionbroadcastImm16
(c int16, out Op)
pke/kyber/internal/common/asm/src.go:32
↓ 5 callersFunctioncalculateDelta
(l int64)
tss/rsa/util.go:7
↓ 5 callersFunctionctPick64
Constant time select. if pick == 0xFF..FF (out = in1) if pick == 0 (out = in2) else out is undefined.
dh/csidh/fp511.go:11
↓ 5 callersMethoddouble
double calculates 2P for curves with A=-1.
sign/ed25519/point.go:90
↓ 5 callersFunctionencapsulate
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
← previousnext →401–500 of 5,182, ranked by callers