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
↓ 245 callers
Method
Equal
(PublicKey)
kem/kem.go:19
↓ 227 callers
Function
ReportError
ReportError reports an error if got is different from want.
internal/test/test.go:19
↓ 172 callers
Method
Add
Add sets the receiver to x + y, and returns the receiver.
group/group.go:128
↓ 166 callers
Method
Read
(p []byte)
xof/k12/k12.go:340
↓ 138 callers
Method
Mul
Mul sets the receiver to x * y, and returns the receiver.
group/group.go:132
↓ 134 callers
Function
CheckNoErr
CheckNoErr fails if err !=nil. Print msg as an error message.
internal/test/test.go:53
↓ 121 callers
Method
New
()
xof/xof.go:46
↓ 102 callers
Method
Write
(b []byte)
sign/slhdsa/message.go:70
↓ 92 callers
Method
Write
(p []byte)
xof/k12/k12.go:112
↓ 90 callers
Method
Sub
Sub sets the receiver to x - y, and returns the receiver.
group/group.go:130
↓ 84 callers
Function
NewShake256
NewShake256 creates a new SHAKE256 variable-output-length ShakeHash. Its generic security strength is 256 bits against all attacks if at least 64 byte
internal/sha3/shake.go:74
↓ 74 callers
Method
Read
([]byte)
sign/ed448/ed448_test.go:175
↓ 68 callers
Method
SetBytes
([]byte)
ecc/bls12381/hash_test.go:54
↓ 64 callers
Method
IsEqual
IsEqual returns true if the receiver is equal to x.
group/group.go:112
↓ 63 callers
Function
CheckOk
CheckOk fails the test if result == false.
internal/test/test.go:31
↓ 61 callers
Method
Neg
Neg sets the receiver to -x, and returns the receiver.
group/group.go:134
↓ 61 callers
Method
Reset
Reset restores the XOF to its initial state and discards all data appended by Write.
xof/xof.go:33
↓ 51 callers
Method
SetOne
Set the element to the neutral multiplicative element.
vdaf/prio3/arith/arith.go:34
↓ 50 callers
Method
Public
()
kem/kem.go:29
↓ 50 callers
Method
Set
Set the receiver to x, and returns the receiver.
group/group.go:106
↓ 46 callers
Function
BytesLe2BigInt
BytesLe2BigInt converts a little-endian slice x into a big-endian math/big.Int.
internal/conv/conv.go:29
↓ 45 callers
Method
Bytes
Bytes serializes a G1 element in uncompressed form.
ecc/bls12381/g1.go:26
↓ 43 callers
Method
Size
Size returns the number of bytes to encode a field element.
vdaf/prio3/arith/arith.go:26
↓ 42 callers
Method
Sqr
Sqr calculates z = x * x.
vdaf/prio3/arith/arith.go:54
↓ 41 callers
Method
Unmarshal
(*cryptobyte.String)
internal/conv/conv.go:162
↓ 41 callers
Method
UnmarshalBinary
(id Suite, data []byte)
oprf/oprf_test.go:57
↓ 41 callers
Function
newMatrixZp
(r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixZp.go:122
↓ 39 callers
Function
NewPublicKey
NewPublicKey initializes public key. Usage of this function guarantees that the object is correctly initialized. Deprecated: not cryptographically se
dh/sidh/sidh.go:75
↓ 38 callers
Method
Params
()
group/group.go:26
↓ 37 callers
Function
NewPrivateKey
NewPrivateKey initializes private key. Usage of this function guarantees that the object is correctly initialized. Deprecated: not cryptographically
dh/sidh/sidh.go:145
↓ 37 callers
Function
randomMatrixZp
(rand io.Reader, r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixZp.go:85
↓ 36 callers
Method
NewElement
Params returns parameters for the group Creates an element of the group set to the identity of the group.
group/group.go:28
↓ 36 callers
Method
Sum
Sum applies padding to the hash state and then squeezes out the desired number of output bytes.
internal/sha3/sha3.go:189
↓ 35 callers
Method
NTT
NTT calculates the number theoretic transform of the vector.
vdaf/prio3/arith/arith.go:92
↓ 32 callers
Method
IsZero
IsZero returns true if the receiver is equal to zero.
group/group.go:110
↓ 31 callers
Method
Sign
Creates a signature using the PrivateKey on the given message and returns the signature. opts are additional options which can be nil. Panics if key
sign/sign.go:59
↓ 30 callers
Method
GeneratePublicKey
Generates public key.
dh/sidh/sidh.go:234
↓ 30 callers
Method
SetString
SetString reconstructs a Fp from a numeric string from 0 to FpOrder-1.
ecc/bls12381/ff/fp.go:119
↓ 29 callers
Method
Generate
Generates random private key for SIDH or SIKE. Generated value is formed as little-endian integer from key-space <2^(e2-1)..2^e2 - 1> for KeyVariant_A
dh/sidh/sidh.go:198
↓ 29 callers
Method
SetUint64
SetUint64 sets the receiver to x, and returns the receiver.
group/group.go:114
↓ 28 callers
Function
CheckIsErr
CheckIsErr fails if err ==nil. Print msg as an error message.
internal/test/test.go:56
↓ 27 callers
Method
InvNTT
InvNTT calculates the inverse number theoretic transform on values.
vdaf/prio3/arith/arith.go:94
↓ 27 callers
Method
NewScalar
Creates a scalar of the group set to zero.
group/group.go:30
↓ 27 callers
Method
Normalize
Reduce each of the coefficients to <q.
sign/internal/dilithium/amd64.go:112
↓ 27 callers
Function
mul
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p434/fp2.go:67
↓ 27 callers
Function
mul
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p751/fp2.go:67
↓ 27 callers
Function
mul
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p503/fp2.go:67
↓ 26 callers
Method
Seed
returns the seed if retained, otherwise nil
sign/sign.go:44
↓ 25 callers
Method
AddAssign
AddAssing calculates z = z + x.
vdaf/prio3/arith/arith.go:42
↓ 25 callers
Method
Exp
Exp calculates z=x^n, where n is the exponent in big-endian order.
ecc/bls12381/gt.go:22
↓ 24 callers
Method
GenerateKey
GenerateKey creates a new key-pair.
sign/sign.go:53
↓ 24 callers
Method
Inv
Inv sets the receiver to 1/x, and returns the receiver.
group/group.go:136
↓ 24 callers
Method
Name
Name of the scheme
kem/kem.go:35
↓ 24 callers
Function
New256
New256 creates a new SHA3-256 hash. Its generic security strength is 256 bits against preimage attacks, and 128 bits against collision attacks.
internal/sha3/hashes.go:21
↓ 24 callers
Function
newMatrixG1
(r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixG1.go:206
↓ 22 callers
Function
ReadGzip
Like os.ReadFile, but gunzip first.
internal/test/test.go:119
↓ 21 callers
Method
Decapsulate
Returns the shared key encapsulated in ciphertext ct for the private key sk.
kem/kem.go:46
↓ 21 callers
Function
NewShake128
NewShake128 creates a new SHAKE128 variable-output-length ShakeHash. Its generic security strength is 128 bits against all attacks if at least 32 byte
internal/sha3/shake.go:56
↓ 21 callers
Method
RandomScalar
RandomScalar creates a scalar chosen at random (using randomness from rnd) from the set of group scalars. Use crypto/rand.Reader as a cryptographicall
group/group.go:42
↓ 21 callers
Function
getModulus
()
ecc/fourq/fp_test.go:20
↓ 20 callers
Method
MulHat
Sets p to the polynomial whose coefficients are the pointwise multiplication of those of a and b. The coefficients of p are bounded by 2q. Assumes a
sign/internal/dilithium/amd64.go:45
↓ 20 callers
Method
Permute
Permute performs the four parallel Keccak-f[1600]s interleaved on the slice returned from Initialize().
simd/keccakf1600/f1600x.go:115
↓ 19 callers
Method
Hash
()
oprf/oprf.go:88
↓ 19 callers
Method
Next
(n uint32)
sign/slhdsa/state.go:349
↓ 18 callers
Method
CiphertextSize
Size of encapsulated keys.
kem/kem.go:55
↓ 18 callers
Method
Initialize
Initialize the state and returns the buffer on which the four permutations will act: a uint64 slice of length 100. The first permutation will act on
simd/keccakf1600/f1600x.go:77
↓ 18 callers
Function
New512
New512 creates a new SHA3-512 hash. Its generic security strength is 512 bits against preimage attacks, and 256 bits against collision attacks.
internal/sha3/hashes.go:35
↓ 18 callers
Method
Open
Open takes a ciphertext and associated data to recover, if successful, the plaintext. The nonce is handled by the Opener and incremented after each ca
hpke/hpke.go:54
↓ 18 callers
Method
Scheme
Returns the scheme for this public key
kem/kem.go:16
↓ 18 callers
Method
add
add sets m to a+b.
abe/cpabe/tkn20/internal/tkn/matrixG2.go:111
↓ 18 callers
Function
newMatrixG2
(r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixG2.go:167
↓ 17 callers
Method
Encapsulate
Encapsulate generates a shared key ss for the public key and encapsulates it into a ciphertext ct.
kem/kem.go:42
↓ 17 callers
Function
New
(x V)
vdaf/prio3/internal/cursor/cursor.go:6
↓ 17 callers
Method
Next
Next return an slice of size n and advances the pointer.
vdaf/prio3/internal/cursor/cursor.go:9
↓ 17 callers
Method
Seal
Seal takes a plaintext and associated data to produce a ciphertext. The nonce is handled by the Sealer and incremented after each call.
hpke/hpke.go:45
↓ 17 callers
Method
set
set sets m to a.
abe/cpabe/tkn20/internal/tkn/matrixG2.go:103
↓ 16 callers
Method
IsIdentity
IsIdentity returns true if the receiver is the identity element of the group.
group/group.go:69
↓ 16 callers
Function
fp384Mul
fp384Mul accepts non-reduced operands and always returns a reduced c. go:noescape
ecc/p384/arith.go:131
↓ 16 callers
Function
newMatrixGT
(r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixGT.go:169
↓ 15 callers
Method
Export
Export takes a context string exporterContext and a desired length (in bytes), and produces a secret derived from the internal exporter secret using t
hpke/hpke.go:35
↓ 15 callers
Method
FromMap
(in map[string]string)
abe/cpabe/tkn20/tkn20.go:150
↓ 15 callers
Method
GenerateKeyPair
GenerateKeyPair creates a new key pair.
kem/kem.go:38
↓ 15 callers
Function
GenerateParams
(rand io.Reader)
abe/cpabe/tkn20/internal/tkn/tk.go:473
↓ 15 callers
Method
Mul
Mul calculates z = x * y.
vdaf/prio3/arith/arith.go:52
↓ 15 callers
Method
New
(p *Params)
vdaf/prio3/internal/prio3/types.go:76
↓ 15 callers
Method
PublicKey
()
oprf/oprf_test.go:35
↓ 15 callers
Method
PublicKeySize
Size of packed public keys.
kem/kem.go:64
↓ 15 callers
Method
RandomElement
RandomElement creates an element chosen at random (using randomness from rnd) from the set of group elements. Use crypto/rand.Reader as a cryptographi
group/group.go:38
↓ 15 callers
Method
ScalarMult
ScalarMult calculates g = kP.
ecc/bls12381/g1.go:268
↓ 15 callers
Method
SetTypeAndClear
(t uint32)
sign/slhdsa/address.go:85
↓ 15 callers
Method
SubAssign
SubAssign calculates z = z - x.
vdaf/prio3/arith/arith.go:44
↓ 15 callers
Method
Write
Write absorbs more data into the hash's state. It produces an error if more data is written to the ShakeHash after writing
internal/sha3/sha3.go:128
↓ 15 callers
Function
add
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p434/fp2.go:57
↓ 15 callers
Function
add
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p751/fp2.go:57
↓ 15 callers
Function
add
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p503/fp2.go:57
↓ 15 callers
Method
mul
mul sets m to a*b.
abe/cpabe/tkn20/internal/tkn/matrixZp.go:187
↓ 15 callers
Function
sample
Take a uniformly distributed sample, and produce a sample in the FrodoKEM discrete Gaussian distribution using inverse transform sampling.
kem/frodo/frodo640shake/noise.go:9
↓ 14 callers
Function
CheckPanic
CheckPanic returns true if call to function 'f' caused panic.
internal/test/test.go:59
↓ 14 callers
Method
Copy
Copy returns a new scalar equal to the receiver.
group/group.go:108
↓ 14 callers
Method
DeriveSecret
Computes a SIDH shared secret. Function requires that pub has different KeyVariant than prv. Length of returned output is 2*ceil(log_2 P)/8), where P
dh/sidh/sidh.go:270
next →
1–100 of 5,182, ranked by callers