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
↓ 9 callers
Function
GenerateKey
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 callers
Function
GeneratePrivateKey
(key *PrivateKey, rng io.Reader)
dh/csidh/csidh.go:219
↓ 9 callers
Method
Generator
Creates an element of the group set to the generator of the group.
group/group.go:34
↓ 9 callers
Method
GetUint64
Returns the integer representative of the element if x < 2^64.
vdaf/prio3/arith/arith.go:38
↓ 9 callers
Method
Init
(usage uint16, s *Seed)
vdaf/prio3/internal/prio3/xof.go:58
↓ 9 callers
Method
IsEqual
(x *Fp12)
ecc/bls12381/ff/fp12.go:17
↓ 9 callers
Method
MarshalBinaryCompress
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 callers
Function
NextPow2
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 callers
Function
Pair
Pair calculates the ate-pairing of P and Q.
ecc/bls12381/pair.go:6
↓ 9 callers
Method
Read
([]byte)
sign/ed25519/extra_test.go:113
↓ 9 callers
Function
Sign
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 callers
Function
Sign
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 callers
Function
SkipLongTest
(t testing.TB)
sign/slhdsa/all_test.go:12
↓ 9 callers
Method
Sqr
(x *Fp)
ecc/bls12381/ff/fp.go:43
↓ 9 callers
Method
double
()
ecc/p384/point.go:264
↓ 9 callers
Function
fp384Sqr
(c, a *fp384)
ecc/p384/arith.go:32
↓ 9 callers
Function
randomG2
(t testing.TB)
ecc/bls12381/g2_test.go:12
↓ 9 callers
Function
randomScalar
(t testing.TB)
ecc/bls12381/g1_test.go:12
↓ 9 callers
Method
resize
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 callers
Method
toAffine
()
ecc/p384/point.go:148
↓ 9 callers
Function
toFp
Converts string to fp element in Montgomery domain of cSIDH-512.
dh/csidh/utils_test.go:120
↓ 9 callers
Method
toInt
()
ecc/p384/point.go:131
↓ 9 callers
Method
toJacobian
()
ecc/p384/point.go:47
↓ 9 callers
Method
unmarshalBinary
(data []byte)
abe/cpabe/tkn20/internal/tkn/tk.go:394
↓ 8 callers
Method
Add
(x, y *Fp)
ecc/bls12381/ff/fp.go:40
↓ 8 callers
Method
CMov
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 callers
Method
CouldDecrypt
(ciphertext []byte)
abe/cpabe/tkn20/tkn20.go:146
↓ 8 callers
Function
HashStringToScalar
(key []byte, value string)
abe/cpabe/tkn20/internal/tkn/util.go:28
↓ 8 callers
Method
MarshalBinary
()
hpke/xkem.go:115
↓ 8 callers
Method
Mul
(x, y *Fp12)
ecc/bls12381/ff/fp12.go:24
↓ 8 callers
Function
NewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/mldsa/mldsa65/internal/dilithium.go:181
↓ 8 callers
Function
NewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/mldsa/mldsa44/internal/dilithium.go:181
↓ 8 callers
Function
NewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/mldsa/mldsa87/internal/dilithium.go:181
↓ 8 callers
Function
NewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/dilithium/mode2/internal/dilithium.go:181
↓ 8 callers
Function
NewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/dilithium/mode3/internal/dilithium.go:179
↓ 8 callers
Function
NewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/dilithium/mode5/internal/dilithium.go:181
↓ 8 callers
Function
NewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/eddilithium3/eddilithium.go:59
↓ 8 callers
Function
NewKeyFromSeed
NewKeyFromSeed derives a public/private key pair using the given seed.
sign/eddilithium2/eddilithium.go:59
↓ 8 callers
Method
NewStack
(z uint32)
sign/slhdsa/state.go:310
↓ 8 callers
Function
NewSuite
NewSuite builds a Suite from a specified set of algorithms. Panics if an algorithm identifier is not valid.
hpke/hpke.go:82
↓ 8 callers
Method
PackLe16
Writes p whose coefficients are in [0, 16) to buf, which must be of length N/2.
sign/internal/dilithium/amd64.go:88
↓ 8 callers
Function
Params
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 callers
Method
Params
()
vdaf/prio3/prio3_test.go:24
↓ 8 callers
Method
PrepInit
( *VerifyKey, *Nonce, uint8, PublicShare, InputShare, )
vdaf/prio3/prio3_test.go:26
↓ 8 callers
Method
PrepNext
(*PrepState, *PrepMessage)
vdaf/prio3/prio3_test.go:30
↓ 8 callers
Method
Prime
()
vdaf/prio3/arith/gen.go:50
↓ 8 callers
Method
Read
Read squeezes an arbitrary number of bytes from the sponge.
internal/sha3/sha3.go:163
↓ 8 callers
Method
Setup
Setup generates a new HPKE context used for Base Mode encryption. Returns the Sealer and corresponding encapsulated key.
hpke/hpke.go:116
↓ 8 callers
Method
Shard
(Measurement, *Nonce, []byte)
vdaf/prio3/prio3_test.go:25
↓ 8 callers
Method
Sub
Sub calculates z = x - y.
vdaf/prio3/arith/arith.go:50
↓ 8 callers
Function
Verify
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 callers
Method
cvtElt
(e Element)
group/short.go:75
↓ 8 callers
Function
eqFp
return x==y for fp.
dh/csidh/utils_test.go:60
↓ 8 callers
Function
err
(e error)
ecc/bls12381/constants.go:97
↓ 8 callers
Method
exp
exp computes the naive matrix exponential of a with respect to the basepoint.
abe/cpabe/tkn20/internal/tkn/matrixG2.go:58
↓ 8 callers
Function
fqAdd
go:noescape
ecc/fourq/fq_amd64.go:10
↓ 8 callers
Function
loadPrivateKey
()
blindsign/blindrsa/brsa_test.go:24
↓ 8 callers
Function
randomMatrixG2
(rand io.Reader, r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixG2.go:174
↓ 8 callers
Function
randomPoint
()
ecc/goldilocks/point_test.go:12
↓ 8 callers
Function
rdcP434
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 callers
Function
rdcP503
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 callers
Function
rdcP751
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 callers
Function
resetCpuFeatures
()
dh/sidh/internal/p751/arith_amd64_test.go:29
↓ 8 callers
Function
resetCpuFeatures
()
dh/sidh/internal/p503/arith_amd64_test.go:29
↓ 8 callers
Method
toBigInt
()
ecc/fourq/fp.go:23
↓ 7 callers
Method
AggregateInit
()
vdaf/prio3/prio3_test.go:31
↓ 7 callers
Method
AggregateUpdate
(*AggShare, *OutShare)
vdaf/prio3/prio3_test.go:32
↓ 7 callers
Function
All
All returns all signature schemes supported.
sign/schemes/schemes.go:74
↓ 7 callers
Method
BigInt
()
ecc/p384/arith.go:18
↓ 7 callers
Function
Deal
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 callers
Method
EncapsulateDeterministically
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 callers
Method
ExtractFromCiphertext
(ct []byte)
abe/cpabe/tkn20/tkn20.go:117
↓ 7 callers
Function
GeneratePublicKey
(pub *PublicKey, prv *PrivateKey, rng io.Reader)
dh/csidh/csidh.go:280
↓ 7 callers
Method
IsOnG1
IsOnG1 returns true if the point is in the group G1.
ecc/bls12381/g1.go:137
↓ 7 callers
Function
KeyGen
KeyGen obtains a public key given a secret key.
dh/x25519/key.go:33
↓ 7 callers
Method
MarshalBinary
()
vdaf/prio3/arith/fp64/fp.go:39
↓ 7 callers
Method
MarshalBinary
()
group/short.go:231
↓ 7 callers
Method
MarshalBinary
()
oprf/keys.go:22
↓ 7 callers
Function
Mul
Mul calculates z = x*y mod p.
math/fp448/fp.go:161
↓ 7 callers
Method
New
New instantiates an AEAD cipher from the identifier, returns an error if the identifier is not known.
hpke/algs.go:178
↓ 7 callers
Function
NewClient
(s Suite)
oprf/oprf.go:112
↓ 7 callers
Function
NewMessage
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 callers
Method
NewSender
NewSender creates a Sender with knowledge of the receiver's public-key.
hpke/hpke.go:107
↓ 7 callers
Function
NewTurboShake128
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 callers
Method
NonceSize
NonceSize returns the size in bytes of the nonce used by the AEAD cipher.
hpke/algs.go:219
↓ 7 callers
Function
P384
P384 returns a Curve which implements P-384 (see FIPS 186-3, section D.2.4).
ecc/p384/p384opt.go:16
↓ 7 callers
Function
PolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/mldsa/mldsa65/internal/sample.go:92
↓ 7 callers
Function
PolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/mldsa/mldsa44/internal/sample.go:92
↓ 7 callers
Function
PolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/mldsa/mldsa87/internal/sample.go:92
↓ 7 callers
Function
PolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/dilithium/mode2/internal/sample.go:92
↓ 7 callers
Function
PolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/dilithium/mode3/internal/sample.go:90
↓ 7 callers
Function
PolyDeriveUniform
Sample p uniformly from the given seed and nonce. p will be normalized.
sign/dilithium/mode5/internal/sample.go:92
↓ 7 callers
Method
Power2Round
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 callers
Method
PrepSharesToPrep
([]PrepShare)
vdaf/prio3/prio3_test.go:29
↓ 7 callers
Function
PublicKeyValidation
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 callers
Function
PublicKeyValidation
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 callers
Function
PublicKeyValidation
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 callers
Method
RandAbsLeQ
()
pke/kyber/internal/common/ntt_test.go:41
↓ 7 callers
Method
RandLe2Q
()
sign/internal/dilithium/ntt_test.go:5
↓ 7 callers
Method
ScalarBaseMult
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
← previous
next →
201–300 of 5,182, ranked by callers