MCPcopy Create free account

hub / github.com/cloudflare/circl / functions

Functions5,182 in github.com/cloudflare/circl

↓ 245 callersMethodEqual
(PublicKey)
kem/kem.go:19
↓ 227 callersFunctionReportError
ReportError reports an error if got is different from want.
internal/test/test.go:19
↓ 172 callersMethodAdd
Add sets the receiver to x + y, and returns the receiver.
group/group.go:128
↓ 166 callersMethodRead
(p []byte)
xof/k12/k12.go:340
↓ 138 callersMethodMul
Mul sets the receiver to x * y, and returns the receiver.
group/group.go:132
↓ 134 callersFunctionCheckNoErr
CheckNoErr fails if err !=nil. Print msg as an error message.
internal/test/test.go:53
↓ 121 callersMethodNew
()
xof/xof.go:46
↓ 102 callersMethodWrite
(b []byte)
sign/slhdsa/message.go:70
↓ 92 callersMethodWrite
(p []byte)
xof/k12/k12.go:112
↓ 90 callersMethodSub
Sub sets the receiver to x - y, and returns the receiver.
group/group.go:130
↓ 84 callersFunctionNewShake256
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 callersMethodRead
([]byte)
sign/ed448/ed448_test.go:175
↓ 68 callersMethodSetBytes
([]byte)
ecc/bls12381/hash_test.go:54
↓ 64 callersMethodIsEqual
IsEqual returns true if the receiver is equal to x.
group/group.go:112
↓ 63 callersFunctionCheckOk
CheckOk fails the test if result == false.
internal/test/test.go:31
↓ 61 callersMethodNeg
Neg sets the receiver to -x, and returns the receiver.
group/group.go:134
↓ 61 callersMethodReset
Reset restores the XOF to its initial state and discards all data appended by Write.
xof/xof.go:33
↓ 51 callersMethodSetOne
Set the element to the neutral multiplicative element.
vdaf/prio3/arith/arith.go:34
↓ 50 callersMethodPublic
()
kem/kem.go:29
↓ 50 callersMethodSet
Set the receiver to x, and returns the receiver.
group/group.go:106
↓ 46 callersFunctionBytesLe2BigInt
BytesLe2BigInt converts a little-endian slice x into a big-endian math/big.Int.
internal/conv/conv.go:29
↓ 45 callersMethodBytes
Bytes serializes a G1 element in uncompressed form.
ecc/bls12381/g1.go:26
↓ 43 callersMethodSize
Size returns the number of bytes to encode a field element.
vdaf/prio3/arith/arith.go:26
↓ 42 callersMethodSqr
Sqr calculates z = x * x.
vdaf/prio3/arith/arith.go:54
↓ 41 callersMethodUnmarshal
(*cryptobyte.String)
internal/conv/conv.go:162
↓ 41 callersMethodUnmarshalBinary
(id Suite, data []byte)
oprf/oprf_test.go:57
↓ 41 callersFunctionnewMatrixZp
(r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixZp.go:122
↓ 39 callersFunctionNewPublicKey
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 callersMethodParams
()
group/group.go:26
↓ 37 callersFunctionNewPrivateKey
NewPrivateKey initializes private key. Usage of this function guarantees that the object is correctly initialized. Deprecated: not cryptographically
dh/sidh/sidh.go:145
↓ 37 callersFunctionrandomMatrixZp
(rand io.Reader, r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixZp.go:85
↓ 36 callersMethodNewElement
Params returns parameters for the group Creates an element of the group set to the identity of the group.
group/group.go:28
↓ 36 callersMethodSum
Sum applies padding to the hash state and then squeezes out the desired number of output bytes.
internal/sha3/sha3.go:189
↓ 35 callersMethodNTT
NTT calculates the number theoretic transform of the vector.
vdaf/prio3/arith/arith.go:92
↓ 32 callersMethodIsZero
IsZero returns true if the receiver is equal to zero.
group/group.go:110
↓ 31 callersMethodSign
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 callersMethodGeneratePublicKey
Generates public key.
dh/sidh/sidh.go:234
↓ 30 callersMethodSetString
SetString reconstructs a Fp from a numeric string from 0 to FpOrder-1.
ecc/bls12381/ff/fp.go:119
↓ 29 callersMethodGenerate
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 callersMethodSetUint64
SetUint64 sets the receiver to x, and returns the receiver.
group/group.go:114
↓ 28 callersFunctionCheckIsErr
CheckIsErr fails if err ==nil. Print msg as an error message.
internal/test/test.go:56
↓ 27 callersMethodInvNTT
InvNTT calculates the inverse number theoretic transform on values.
vdaf/prio3/arith/arith.go:94
↓ 27 callersMethodNewScalar
Creates a scalar of the group set to zero.
group/group.go:30
↓ 27 callersMethodNormalize
Reduce each of the coefficients to <q.
sign/internal/dilithium/amd64.go:112
↓ 27 callersFunctionmul
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p434/fp2.go:67
↓ 27 callersFunctionmul
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p751/fp2.go:67
↓ 27 callersFunctionmul
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p503/fp2.go:67
↓ 26 callersMethodSeed
returns the seed if retained, otherwise nil
sign/sign.go:44
↓ 25 callersMethodAddAssign
AddAssing calculates z = z + x.
vdaf/prio3/arith/arith.go:42
↓ 25 callersMethodExp
Exp calculates z=x^n, where n is the exponent in big-endian order.
ecc/bls12381/gt.go:22
↓ 24 callersMethodGenerateKey
GenerateKey creates a new key-pair.
sign/sign.go:53
↓ 24 callersMethodInv
Inv sets the receiver to 1/x, and returns the receiver.
group/group.go:136
↓ 24 callersMethodName
Name of the scheme
kem/kem.go:35
↓ 24 callersFunctionNew256
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 callersFunctionnewMatrixG1
(r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixG1.go:206
↓ 22 callersFunctionReadGzip
Like os.ReadFile, but gunzip first.
internal/test/test.go:119
↓ 21 callersMethodDecapsulate
Returns the shared key encapsulated in ciphertext ct for the private key sk.
kem/kem.go:46
↓ 21 callersFunctionNewShake128
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 callersMethodRandomScalar
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 callersFunctiongetModulus
()
ecc/fourq/fp_test.go:20
↓ 20 callersMethodMulHat
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 callersMethodPermute
Permute performs the four parallel Keccak-f[1600]s interleaved on the slice returned from Initialize().
simd/keccakf1600/f1600x.go:115
↓ 19 callersMethodHash
()
oprf/oprf.go:88
↓ 19 callersMethodNext
(n uint32)
sign/slhdsa/state.go:349
↓ 18 callersMethodCiphertextSize
Size of encapsulated keys.
kem/kem.go:55
↓ 18 callersMethodInitialize
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 callersFunctionNew512
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 callersMethodOpen
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 callersMethodScheme
Returns the scheme for this public key
kem/kem.go:16
↓ 18 callersMethodadd
add sets m to a+b.
abe/cpabe/tkn20/internal/tkn/matrixG2.go:111
↓ 18 callersFunctionnewMatrixG2
(r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixG2.go:167
↓ 17 callersMethodEncapsulate
Encapsulate generates a shared key ss for the public key and encapsulates it into a ciphertext ct.
kem/kem.go:42
↓ 17 callersFunctionNew
(x V)
vdaf/prio3/internal/cursor/cursor.go:6
↓ 17 callersMethodNext
Next return an slice of size n and advances the pointer.
vdaf/prio3/internal/cursor/cursor.go:9
↓ 17 callersMethodSeal
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 callersMethodset
set sets m to a.
abe/cpabe/tkn20/internal/tkn/matrixG2.go:103
↓ 16 callersMethodIsIdentity
IsIdentity returns true if the receiver is the identity element of the group.
group/group.go:69
↓ 16 callersFunctionfp384Mul
fp384Mul accepts non-reduced operands and always returns a reduced c. go:noescape
ecc/p384/arith.go:131
↓ 16 callersFunctionnewMatrixGT
(r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixGT.go:169
↓ 15 callersMethodExport
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 callersMethodFromMap
(in map[string]string)
abe/cpabe/tkn20/tkn20.go:150
↓ 15 callersMethodGenerateKeyPair
GenerateKeyPair creates a new key pair.
kem/kem.go:38
↓ 15 callersFunctionGenerateParams
(rand io.Reader)
abe/cpabe/tkn20/internal/tkn/tk.go:473
↓ 15 callersMethodMul
Mul calculates z = x * y.
vdaf/prio3/arith/arith.go:52
↓ 15 callersMethodNew
(p *Params)
vdaf/prio3/internal/prio3/types.go:76
↓ 15 callersMethodPublicKey
()
oprf/oprf_test.go:35
↓ 15 callersMethodPublicKeySize
Size of packed public keys.
kem/kem.go:64
↓ 15 callersMethodRandomElement
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 callersMethodScalarMult
ScalarMult calculates g = kP.
ecc/bls12381/g1.go:268
↓ 15 callersMethodSetTypeAndClear
(t uint32)
sign/slhdsa/address.go:85
↓ 15 callersMethodSubAssign
SubAssign calculates z = z - x.
vdaf/prio3/arith/arith.go:44
↓ 15 callersMethodWrite
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 callersFunctionadd
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p434/fp2.go:57
↓ 15 callersFunctionadd
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p751/fp2.go:57
↓ 15 callersFunctionadd
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p503/fp2.go:57
↓ 15 callersMethodmul
mul sets m to a*b.
abe/cpabe/tkn20/internal/tkn/matrixZp.go:187
↓ 15 callersFunctionsample
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 callersFunctionCheckPanic
CheckPanic returns true if call to function 'f' caused panic.
internal/test/test.go:59
↓ 14 callersMethodCopy
Copy returns a new scalar equal to the receiver.
group/group.go:108
↓ 14 callersMethodDeriveSecret
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