MCPcopy Create free account

hub / github.com/cloudflare/circl / functions

Functions5,182 in github.com/cloudflare/circl

↓ 14 callersMethodMul
(x, y *Fp2)
ecc/bls12381/ff/fp2.go:23
↓ 14 callersMethodNTT
Execute an in-place forward NTT on as. Assumes the coefficients are in Montgomery representation and bounded by 2*Q. The resulting coefficients are
sign/internal/dilithium/amd64.go:15
↓ 14 callersMethodPrivateKeySize
Size of packed private keys.
kem/kem.go:61
↓ 14 callersMethodSetIdentity
()
ecc/bls12381/gt.go:14
↓ 14 callersMethodString
()
group/short.go:40
↓ 14 callersMethodrightMult
rightMult multiplies a*b with a matrixG1, b matrixZp.
abe/cpabe/tkn20/internal/tkn/matrixG2.go:145
↓ 14 callersFunctionsub
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p434/fp2.go:62
↓ 14 callersFunctionsub
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p751/fp2.go:62
↓ 14 callersFunctionsub
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p503/fp2.go:62
↓ 13 callersMethodAdd
(x, y *Fp2)
ecc/bls12381/ff/fp2.go:21
↓ 13 callersMethodExpand
Expand generates a pseudo-random byte string of a determined length by expanding an input string.
expander/expander.go:16
↓ 13 callersFunctionFp2ToBytes
Convert the input to wire format. The output byte slice must be at least 2*bytelen(p) bytes long.
dh/sidh/internal/common/utils.go:37
↓ 13 callersMethodMarshalBinary
()
abe/cpabe/tkn20/internal/tkn/policy.go:131
↓ 13 callersMethodRandom
Random samples an element from an io.Reader.
vdaf/prio3/arith/arith.go:62
↓ 13 callersMethodSharedSecretSize
Returns size of resulting shared secret.
dh/sidh/sike.go:209
↓ 13 callersFunctionmustRead
(t testing.TB, x T)
vdaf/prio3/arith/field_test.go:38
↓ 12 callersMethodArity
Arity is the number of input wires.
vdaf/prio3/internal/flp/gadgets.go:14
↓ 12 callersMethodEncrypt
(rand io.Reader, policy Policy, msg []byte)
abe/cpabe/tkn20/tkn20.go:46
↓ 12 callersMethodEncryptTo
EncryptTo encrypts message pt for the public key and writes the ciphertext to ct using randomness from seed. This function panics if the lengths of p
pke/kyber/kyber512/kyber.go:93
↓ 12 callersMethodFromString
(str string)
abe/cpabe/tkn20/tkn20.go:104
↓ 12 callersFunctionG2Generator
G2Generator returns the generator point of G2.
ecc/bls12381/g2.go:330
↓ 12 callersFunctionModp
Modp ensures that z is between [0,p-1].
math/fp448/fp.go:58
↓ 12 callersMethodMulAssign
MulAssign calculates z = z * x.
vdaf/prio3/arith/arith.go:46
↓ 12 callersMethodMulGen
MulGen sets the receiver to s * Generator(), and returns the receiver.
group/group.go:89
↓ 12 callersMethodNewAddress
()
sign/slhdsa/address.go:46
↓ 12 callersFunctionNewKeyFromSeed
NewKeyFromSeed calculates a private key from a seed. It will panic if len(seed) is not SeedSize. This function is provided for interoperability with R
sign/ed25519/ed25519.go:206
↓ 12 callersMethodNormalize
Normalizes coefficients. Ensures each coefficient is in {0, …, q-1}.
pke/kyber/internal/common/amd64.go:296
↓ 12 callersFunctionP
P returns the prime modulus 2^448-2^224-1.
math/fp448/fp.go:30
↓ 12 callersMethodRandomSHA3
RandomSHA3 samples an element from a SHA3 state.
vdaf/prio3/arith/arith.go:64
↓ 12 callersFunctionToScalar
(n int)
abe/cpabe/tkn20/internal/tkn/util.go:22
↓ 12 callersMethodUnmarshalBinaryPublicKey
Unmarshals a PublicKey from the provided buffer.
kem/kem.go:49
↓ 12 callersFunctionfqMul
go:noescape
ecc/fourq/fq_amd64.go:16
↓ 12 callersFunctioninv
Set dest = 1/x Allowed to overlap dest with x. Returns dest to allow chaining operations.
dh/sidh/internal/p434/fp2.go:99
↓ 12 callersFunctioninv
Set dest = 1/x Allowed to overlap dest with x. Returns dest to allow chaining operations.
dh/sidh/internal/p751/fp2.go:99
↓ 12 callersFunctioninv
Set dest = 1/x Allowed to overlap dest with x. Returns dest to allow chaining operations.
dh/sidh/internal/p503/fp2.go:99
↓ 12 callersMethodleftMult
leftMult multiples a*b with a matrixZp, b matrixG2.
abe/cpabe/tkn20/internal/tkn/matrixG2.go:122
↓ 11 callersMethodClone
Clone returns a copy of the XOF in its current state.
xof/xof.go:30
↓ 11 callersMethodDecrypt
(ct []byte)
abe/cpabe/tkn20/tkn20.go:96
↓ 11 callersMethodFinal
()
sign/slhdsa/state.go:259
↓ 11 callersFunctionG1Generator
G1Generator returns the generator point of G1.
ecc/bls12381/g1.go:394
↓ 11 callersFunctionGenerateKey
GenerateKey generates a public/private key pair using entropy from rand. If rand is nil, crypto/rand.Reader will be used.
sign/ed25519/ed25519.go:185
↓ 11 callersMethodImport
Import clears content of the public key currently stored in the structure and imports key stored in the byte string. Returns error in case byte string
dh/sidh/sidh.go:83
↓ 11 callersMethodJointRandLength
()
vdaf/prio3/internal/prio3/prio3.go:521
↓ 11 callersMethodKeyGen
(rand io.Reader, attrs Attributes)
abe/cpabe/tkn20/tkn20.go:69
↓ 11 callersMethodMul
(x, y *Fp)
ecc/bls12381/ff/fp.go:42
↓ 11 callersMethodMul
Mul sets the receiver to s * x, and returns the receiver.
group/group.go:87
↓ 11 callersMethodMul
Calculates x = x^2.
math/mlsbset/mlsbset.go:24
↓ 11 callersFunctionNewClient
(v Variant, pk *rsa.PublicKey)
blindsign/blindrsa/brsa.go:80
↓ 11 callersFunctionNewExpanderMD
NewExpanderMD returns a hash function based on a Merkle-Damgård hash function.
expander/expander.go:25
↓ 11 callersFunctionNewKeyFromSeed
NewKeyFromSeed calculates a private key from a seed. It will panic if len(seed) is not SeedSize. This function is provided for interoperability with R
sign/ed448/ed448.go:185
↓ 11 callersMethodSetKeyPairAddress
(i uint32)
sign/slhdsa/address.go:60
↓ 11 callersMethodSub
(x, y *Fp2)
ecc/bls12381/ff/fp2.go:22
↓ 11 callersMethodUnmarshalBinaryPrivateKey
Unmarshals a PrivateKey from the provided buffer.
kem/kem.go:52
↓ 11 callersFunctionaddRdc
r = x + y mod p.
dh/csidh/fp511.go:41
↓ 11 callersMethodbyteSize
()
group/short.go:44
↓ 11 callersFunctionconvToPrv
* ------------------------------------------------------------------------- Helpers ------------------------------------------------------------
dh/sidh/sidh_test.go:139
↓ 11 callersFunctionconvToPub
Converts string to public key.
dh/sidh/sidh_test.go:153
↓ 11 callersMethodcvtScl
(s Scalar)
group/short.go:86
↓ 11 callersFunctionmulRdc
(r, x, y *fp)
dh/csidh/fp511_noasm.go:8
↓ 11 callersFunctionrandomMatrixG1
(rand io.Reader, r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixG1.go:213
↓ 11 callersMethodsetBigInt
(b *big.Int)
ecc/fourq/fp.go:24
↓ 11 callersMethodsetBigInt
(f0, f1 *big.Int)
ecc/fourq/fq.go:15
↓ 11 callersFunctionsqr
(dest, x *common.Fp2)
dh/sidh/internal/p434/fp2.go:132
↓ 11 callersFunctionsqr
(dest, x *common.Fp2)
dh/sidh/internal/p751/fp2.go:132
↓ 11 callersFunctionsqr
(dest, x *common.Fp2)
dh/sidh/internal/p503/fp2.go:132
↓ 10 callersFunctionBigInt2BytesLe
BigInt2BytesLe stores a positive big.Int number x into a little-endian slice z. The slice is modified if the bitlength of x <= 8*len(z) (padding with
internal/conv/conv.go:60
↓ 10 callersMethodClear
()
sign/slhdsa/state.go:62
↓ 10 callersMethodCmov
Cmov moves x into z if b=1.
ecc/goldilocks/scalar.go:88
↓ 10 callersMethodGroup
()
oprf/oprf.go:87
↓ 10 callersMethodIdentity
()
math/mlsbset/mlsbset.go:22
↓ 10 callersMethodImport
Import clears content of the private key currently stored in the structure and imports key from octet string. In case of SIKE, the random value 'S' mu
dh/sidh/sidh.go:183
↓ 10 callersMethodInvNTT
Executes an in-place inverse "NTT" on p and multiply by the Montgomery factor R. Requires coefficients to be in "tangled" order, see Tangle(). Assume
pke/kyber/internal/common/amd64.go:235
↓ 10 callersFunctionIsEnabledX4
IsEnabledX4 returns true if the architecture supports a four-way SIMD implementation provided in this package.
simd/keccakf1600/f1600x.go:67
↓ 10 callersMethodIsEqual
Returns true if the element is equal to x.
vdaf/prio3/arith/arith.go:32
↓ 10 callersFunctionModp
Modp ensures that z is between [0,p-1].
math/fp25519/fp.go:205
↓ 10 callersFunctionNewSigner
NewSigner creates a new Signer for the blind RSA protocol using an RSA private key.
blindsign/blindrsa/brsa.go:226
↓ 10 callersMethodNewStatePriv
(skSeed, pkSeed []byte)
sign/slhdsa/state.go:22
↓ 10 callersFunctionP
P returns the prime modulus 2^255-19.
math/fp25519/fp.go:27
↓ 10 callersMethodSetIdentity
SetIdentity assigns g to the identity element.
ecc/bls12381/g1.go:131
↓ 10 callersFunctionShared
Shared calculates Alice's shared key from Alice's secret key and Bob's public key returning true on success. A failure case happens when the public ke
dh/x25519/key.go:41
↓ 10 callersMethodSqr
(x *Fp2)
ecc/bls12381/ff/fp2.go:35
↓ 10 callersFunctionUnmarshalBinary
UnmarshalBinary recovers a value from a byte array. It returns an error if the read was unsuccessful.
internal/conv/conv.go:167
↓ 10 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/ed25519/ed25519.go:403
↓ 10 callersMethodVerify
Checks whether the given signature is a valid signature set by the private key corresponding to the given public key on the given message. opts are ad
sign/sign.go:66
↓ 10 callersFunctionfqSub
go:noescape
ecc/fourq/fq_amd64.go:13
↓ 10 callersMethodmarshalBinary
()
abe/cpabe/tkn20/internal/tkn/policy.go:39
↓ 10 callersFunctionmustRead
(t testing.TB, size uint32)
sign/slhdsa/all_test.go:47
↓ 10 callersMethodparams
()
sign/slhdsa/params.go:66
↓ 10 callersFunctionrandomG1
(t testing.TB)
ecc/bls12381/g1_test.go:19
↓ 10 callersMethodresize
resize only changes the matrix if we have to
abe/cpabe/tkn20/internal/tkn/matrixG1.go:73
↓ 10 callersMethodtoBigInt
()
ecc/fourq/fq.go:14
↓ 10 callersFunctionvartimeEqFp2
Returns true if lhs = rhs. Takes variable time.
dh/sidh/internal/p434/fp2_test.go:22
↓ 10 callersFunctionvartimeEqFp2
Returns true if lhs = rhs. Takes variable time.
dh/sidh/internal/p751/fp2_test.go:22
↓ 10 callersFunctionvartimeEqFp2
Returns true if lhs = rhs. Takes variable time.
dh/sidh/internal/p503/fp2_test.go:22
↓ 9 callersMethodBarrettReduce
Almost normalizes coefficients. Ensures each coefficient is in {0, …, q}.
pke/kyber/internal/common/amd64.go:285
↓ 9 callersFunctionDeriveAttributeKeysCCA
(rand io.Reader, sp *SecretParams, attrs *Attributes)
abe/cpabe/tkn20/internal/tkn/bk.go:78
↓ 9 callersMethodDeriveKey
Deterministically derives a keypair from a seed. If you're unsure, you're better off using GenerateKey(). Panics if seed is not of length SeedSize().
sign/sign.go:72
↓ 9 callersMethodEncapsulationSeedSize
Size of seed used in EncapsulateDeterministically().
kem/kem.go:81
↓ 9 callersMethodEvaluate
Evaluate calculates the polynomial evaluation p(x).
vdaf/prio3/arith/arith.go:133
↓ 9 callersMethodFinalize
(d *FinalizeData, e *Evaluation)
oprf/oprf_test.go:19
← previousnext →101–200 of 5,182, ranked by callers