MCPcopy Create free account

hub / github.com/cloudflare/circl / functions

Functions5,182 in github.com/cloudflare/circl

↓ 9 callersFunctionGenerateKey
GenerateKey generates a public/private key pair using entropy from rand. If rand is nil, crypto/rand.Reader will be used.
sign/ed448/ed448.go:164
↓ 9 callersFunctionGeneratePrivateKey
(key *PrivateKey, rng io.Reader)
dh/csidh/csidh.go:219
↓ 9 callersMethodGenerator
Creates an element of the group set to the generator of the group.
group/group.go:34
↓ 9 callersMethodGetUint64
Returns the integer representative of the element if x < 2^64.
vdaf/prio3/arith/arith.go:38
↓ 9 callersMethodInit
(usage uint16, s *Seed)
vdaf/prio3/internal/prio3/xof.go:58
↓ 9 callersMethodIsEqual
(x *Fp12)
ecc/bls12381/ff/fp12.go:17
↓ 9 callersMethodMarshalBinaryCompress
MarshalBinaryCompress returns a byte representation of an element in a compact form whenever the group supports it; otherwise, returns the same byte r
group/group.go:98
↓ 9 callersFunctionNextPow2
NextPow2 finds the next power of two (N=2^k, k>=0) greater than n. If n is already a power of two, then this function returns n, and log2(n).
math/integer.go:7
↓ 9 callersFunctionPair
Pair calculates the ate-pairing of P and Q.
ecc/bls12381/pair.go:6
↓ 9 callersMethodRead
([]byte)
sign/ed25519/extra_test.go:113
↓ 9 callersFunctionSign
Sign signs the message with privateKey and returns a signature. This function supports the signature variant defined in RFC-8032: Ed25519, also known
sign/ed25519/ed25519.go:290
↓ 9 callersFunctionSign
Sign signs the message with privateKey and returns a signature. This function supports the signature variant defined in RFC-8032: Ed448, also known as
sign/ed448/ed448.go:277
↓ 9 callersFunctionSkipLongTest
(t testing.TB)
sign/slhdsa/all_test.go:12
↓ 9 callersMethodSqr
(x *Fp)
ecc/bls12381/ff/fp.go:43
↓ 9 callersMethoddouble
()
ecc/p384/point.go:264
↓ 9 callersFunctionfp384Sqr
(c, a *fp384)
ecc/p384/arith.go:32
↓ 9 callersFunctionrandomG2
(t testing.TB)
ecc/bls12381/g2_test.go:12
↓ 9 callersFunctionrandomScalar
(t testing.TB)
ecc/bls12381/g1_test.go:12
↓ 9 callersMethodresize
We adopt the interface that math.Big uses Receivers get set to the results of operations, and return themselves. All aliases are allowed. Now recall t
abe/cpabe/tkn20/internal/tkn/matrixZp.go:107
↓ 9 callersMethodtoAffine
()
ecc/p384/point.go:148
↓ 9 callersFunctiontoFp
Converts string to fp element in Montgomery domain of cSIDH-512.
dh/csidh/utils_test.go:120
↓ 9 callersMethodtoInt
()
ecc/p384/point.go:131
↓ 9 callersMethodtoJacobian
()
ecc/p384/point.go:47
↓ 9 callersMethodunmarshalBinary
(data []byte)
abe/cpabe/tkn20/internal/tkn/tk.go:394
↓ 8 callersMethodAdd
(x, y *Fp)
ecc/bls12381/ff/fp.go:40
↓ 8 callersMethodCMov
CMov sets the receiver to x if b=1; the receiver is unmodified if b=0; otherwise panics if b is not 0 or 1. In all the cases, it returns the receiver.
group/group.go:122
↓ 8 callersMethodCouldDecrypt
(ciphertext []byte)
abe/cpabe/tkn20/tkn20.go:146
↓ 8 callersFunctionHashStringToScalar
(key []byte, value string)
abe/cpabe/tkn20/internal/tkn/util.go:28
↓ 8 callersMethodMarshalBinary
()
hpke/xkem.go:115
↓ 8 callersMethodMul
(x, y *Fp12)
ecc/bls12381/ff/fp12.go:24
↓ 8 callersFunctionNewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/mldsa/mldsa65/internal/dilithium.go:181
↓ 8 callersFunctionNewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/mldsa/mldsa44/internal/dilithium.go:181
↓ 8 callersFunctionNewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/mldsa/mldsa87/internal/dilithium.go:181
↓ 8 callersFunctionNewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/dilithium/mode2/internal/dilithium.go:181
↓ 8 callersFunctionNewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/dilithium/mode3/internal/dilithium.go:179
↓ 8 callersFunctionNewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/dilithium/mode5/internal/dilithium.go:181
↓ 8 callersFunctionNewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/eddilithium3/eddilithium.go:59
↓ 8 callersFunctionNewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/eddilithium2/eddilithium.go:59
↓ 8 callersMethodNewStack
(z uint32)
sign/slhdsa/state.go:310
↓ 8 callersFunctionNewSuite
NewSuite builds a Suite from a specified set of algorithms. Panics if an algorithm identifier is not valid.
hpke/hpke.go:82
↓ 8 callersMethodPackLe16
Writes p whose coefficients are in [0, 16) to buf, which must be of length N/2.
sign/internal/dilithium/amd64.go:88
↓ 8 callersFunctionParams
Params returns domain parameters corresponding to finite field and identified by `id` provided by the caller. Function panics in case `id` wasn't regi
dh/sidh/internal/common/params.go:10
↓ 8 callersMethodParams
()
vdaf/prio3/prio3_test.go:24
↓ 8 callersMethodPrepInit
( *VerifyKey, *Nonce, uint8, PublicShare, InputShare, )
vdaf/prio3/prio3_test.go:26
↓ 8 callersMethodPrepNext
(*PrepState, *PrepMessage)
vdaf/prio3/prio3_test.go:30
↓ 8 callersMethodPrime
()
vdaf/prio3/arith/gen.go:50
↓ 8 callersMethodRead
Read squeezes an arbitrary number of bytes from the sponge.
internal/sha3/sha3.go:163
↓ 8 callersMethodSetup
Setup generates a new HPKE context used for Base Mode encryption. Returns the Sealer and corresponding encapsulated key.
hpke/hpke.go:116
↓ 8 callersMethodShard
(Measurement, *Nonce, []byte)
vdaf/prio3/prio3_test.go:25
↓ 8 callersMethodSub
Sub calculates z = x - y.
vdaf/prio3/arith/arith.go:50
↓ 8 callersFunctionVerify
Verify returns true if the signature is valid. Failure cases are invalid signature, or when the public key cannot be decoded. This function supports t
sign/ed448/ed448.go:374
↓ 8 callersMethodcvtElt
(e Element)
group/short.go:75
↓ 8 callersFunctioneqFp
return x==y for fp.
dh/csidh/utils_test.go:60
↓ 8 callersFunctionerr
(e error)
ecc/bls12381/constants.go:97
↓ 8 callersMethodexp
exp computes the naive matrix exponential of a with respect to the basepoint.
abe/cpabe/tkn20/internal/tkn/matrixG2.go:58
↓ 8 callersFunctionfqAdd
go:noescape
ecc/fourq/fq_amd64.go:10
↓ 8 callersFunctionloadPrivateKey
()
blindsign/blindrsa/brsa_test.go:24
↓ 8 callersFunctionrandomMatrixG2
(rand io.Reader, r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixG2.go:174
↓ 8 callersFunctionrandomPoint
()
ecc/goldilocks/point_test.go:12
↓ 8 callersFunctionrdcP434
Computes the Montgomery reduction z = x R^{-1} (mod 2*p). On return value of x may be changed. z=x not allowed. go:noescape
dh/sidh/internal/p434/arith_decl.go:61
↓ 8 callersFunctionrdcP503
Computes the Montgomery reduction z = x R^{-1} (mod 2*p). On return value of x may be changed. z=x not allowed. go:noescape
dh/sidh/internal/p503/arith_decl.go:61
↓ 8 callersFunctionrdcP751
Computes the Montgomery reduction z = x R^{-1} (mod 2*p). On return value of x may be changed. z=x not allowed. go:noescape
dh/sidh/internal/p751/arith_decl.go:61
↓ 8 callersFunctionresetCpuFeatures
()
dh/sidh/internal/p751/arith_amd64_test.go:29
↓ 8 callersFunctionresetCpuFeatures
()
dh/sidh/internal/p503/arith_amd64_test.go:29
↓ 8 callersMethodtoBigInt
()
ecc/fourq/fp.go:23
↓ 7 callersMethodAggregateInit
()
vdaf/prio3/prio3_test.go:31
↓ 7 callersMethodAggregateUpdate
(*AggShare, *OutShare)
vdaf/prio3/prio3_test.go:32
↓ 7 callersFunctionAll
All returns all signature schemes supported.
sign/schemes/schemes.go:74
↓ 7 callersMethodBigInt
()
ecc/p384/arith.go:18
↓ 7 callersFunctionDeal
Deal takes in an existing RSA private key generated elsewhere. If cache is true, cached values are stored in KeyShare taking up more memory by reducin
tss/rsa/rsa_threshold.go:95
↓ 7 callersMethodEncapsulateDeterministically
EncapsulateDeterministically generates a shared key ss for the public key deterministically from the given seed and encapsulates it into a ciphertext
kem/kem.go:77
↓ 7 callersMethodExtractFromCiphertext
(ct []byte)
abe/cpabe/tkn20/tkn20.go:117
↓ 7 callersFunctionGeneratePublicKey
(pub *PublicKey, prv *PrivateKey, rng io.Reader)
dh/csidh/csidh.go:280
↓ 7 callersMethodIsOnG1
IsOnG1 returns true if the point is in the group G1.
ecc/bls12381/g1.go:137
↓ 7 callersFunctionKeyGen
KeyGen obtains a public key given a secret key.
dh/x25519/key.go:33
↓ 7 callersMethodMarshalBinary
()
vdaf/prio3/arith/fp64/fp.go:39
↓ 7 callersMethodMarshalBinary
()
group/short.go:231
↓ 7 callersMethodMarshalBinary
()
oprf/keys.go:22
↓ 7 callersFunctionMul
Mul calculates z = x*y mod p.
math/fp448/fp.go:161
↓ 7 callersMethodNew
New instantiates an AEAD cipher from the identifier, returns an error if the identifier is not known.
hpke/algs.go:178
↓ 7 callersFunctionNewClient
(s Suite)
oprf/oprf.go:112
↓ 7 callersFunctionNewMessage
For pure signatures, use [NewMessage] to pass the message to be signed. For pre-hashed signatures, use [PreHash] to hash the message first, and then u
sign/slhdsa/message.go:107
↓ 7 callersMethodNewSender
NewSender creates a Sender with knowledge of the receiver's public-key.
hpke/hpke.go:107
↓ 7 callersFunctionNewTurboShake128
NewTurboShake128 creates a new TurboSHAKE128 variable-output-length ShakeHash. Its generic security strength is 128 bits against all attacks if at lea
internal/sha3/shake.go:64
↓ 7 callersMethodNonceSize
NonceSize returns the size in bytes of the nonce used by the AEAD cipher.
hpke/algs.go:219
↓ 7 callersFunctionP384
P384 returns a Curve which implements P-384 (see FIPS 186-3, section D.2.4).
ecc/p384/p384opt.go:16
↓ 7 callersFunctionPolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/mldsa/mldsa65/internal/sample.go:92
↓ 7 callersFunctionPolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/mldsa/mldsa44/internal/sample.go:92
↓ 7 callersFunctionPolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/mldsa/mldsa87/internal/sample.go:92
↓ 7 callersFunctionPolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/dilithium/mode2/internal/sample.go:92
↓ 7 callersFunctionPolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/dilithium/mode3/internal/sample.go:90
↓ 7 callersFunctionPolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/dilithium/mode5/internal/sample.go:92
↓ 7 callersMethodPower2Round
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/amd64.go:160
↓ 7 callersMethodPrepSharesToPrep
([]PrepShare)
vdaf/prio3/prio3_test.go:29
↓ 7 callersFunctionPublicKeyValidation
PublicKeyValidation preforms public key/ciphertext validation using the CLN test. CLN test: Check that P and Q are both of order 3^e3 and they generat
dh/sidh/internal/p434/curve.go:370
↓ 7 callersFunctionPublicKeyValidation
PublicKeyValidation preforms public key/ciphertext validation using the CLN test. CLN test: Check that P and Q are both of order 3^e3 and they generat
dh/sidh/internal/p751/curve.go:370
↓ 7 callersFunctionPublicKeyValidation
PublicKeyValidation preforms public key/ciphertext validation using the CLN test. CLN test: Check that P and Q are both of order 3^e3 and they generat
dh/sidh/internal/p503/curve.go:370
↓ 7 callersMethodRandAbsLeQ
()
pke/kyber/internal/common/ntt_test.go:41
↓ 7 callersMethodRandLe2Q
()
sign/internal/dilithium/ntt_test.go:5
↓ 7 callersMethodScalarBaseMult
ScalarBaseMult returns k*G, where G is the base point of the group and k is an integer in big-endian form. It is not fully constant time.
ecc/p384/p384opt.go:128
← previousnext →201–300 of 5,182, ranked by callers