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
↓ 14 callers
Method
Mul
(x, y *Fp2)
ecc/bls12381/ff/fp2.go:23
↓ 14 callers
Method
NTT
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 callers
Method
PrivateKeySize
Size of packed private keys.
kem/kem.go:61
↓ 14 callers
Method
SetIdentity
()
ecc/bls12381/gt.go:14
↓ 14 callers
Method
String
()
group/short.go:40
↓ 14 callers
Method
rightMult
rightMult multiplies a*b with a matrixG1, b matrixZp.
abe/cpabe/tkn20/internal/tkn/matrixG2.go:145
↓ 14 callers
Function
sub
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p434/fp2.go:62
↓ 14 callers
Function
sub
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p751/fp2.go:62
↓ 14 callers
Function
sub
(dest, lhs, rhs *common.Fp2)
dh/sidh/internal/p503/fp2.go:62
↓ 13 callers
Method
Add
(x, y *Fp2)
ecc/bls12381/ff/fp2.go:21
↓ 13 callers
Method
Expand
Expand generates a pseudo-random byte string of a determined length by expanding an input string.
expander/expander.go:16
↓ 13 callers
Function
Fp2ToBytes
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 callers
Method
MarshalBinary
()
abe/cpabe/tkn20/internal/tkn/policy.go:131
↓ 13 callers
Method
Random
Random samples an element from an io.Reader.
vdaf/prio3/arith/arith.go:62
↓ 13 callers
Method
SharedSecretSize
Returns size of resulting shared secret.
dh/sidh/sike.go:209
↓ 13 callers
Function
mustRead
(t testing.TB, x T)
vdaf/prio3/arith/field_test.go:38
↓ 12 callers
Method
Arity
Arity is the number of input wires.
vdaf/prio3/internal/flp/gadgets.go:14
↓ 12 callers
Method
Encrypt
(rand io.Reader, policy Policy, msg []byte)
abe/cpabe/tkn20/tkn20.go:46
↓ 12 callers
Method
EncryptTo
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 callers
Method
FromString
(str string)
abe/cpabe/tkn20/tkn20.go:104
↓ 12 callers
Function
G2Generator
G2Generator returns the generator point of G2.
ecc/bls12381/g2.go:330
↓ 12 callers
Function
Modp
Modp ensures that z is between [0,p-1].
math/fp448/fp.go:58
↓ 12 callers
Method
MulAssign
MulAssign calculates z = z * x.
vdaf/prio3/arith/arith.go:46
↓ 12 callers
Method
MulGen
MulGen sets the receiver to s * Generator(), and returns the receiver.
group/group.go:89
↓ 12 callers
Method
NewAddress
()
sign/slhdsa/address.go:46
↓ 12 callers
Function
NewKeyFromSeed
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 callers
Method
Normalize
Normalizes coefficients. Ensures each coefficient is in {0, …, q-1}.
pke/kyber/internal/common/amd64.go:296
↓ 12 callers
Function
P
P returns the prime modulus 2^448-2^224-1.
math/fp448/fp.go:30
↓ 12 callers
Method
RandomSHA3
RandomSHA3 samples an element from a SHA3 state.
vdaf/prio3/arith/arith.go:64
↓ 12 callers
Function
ToScalar
(n int)
abe/cpabe/tkn20/internal/tkn/util.go:22
↓ 12 callers
Method
UnmarshalBinaryPublicKey
Unmarshals a PublicKey from the provided buffer.
kem/kem.go:49
↓ 12 callers
Function
fqMul
go:noescape
ecc/fourq/fq_amd64.go:16
↓ 12 callers
Function
inv
Set dest = 1/x Allowed to overlap dest with x. Returns dest to allow chaining operations.
dh/sidh/internal/p434/fp2.go:99
↓ 12 callers
Function
inv
Set dest = 1/x Allowed to overlap dest with x. Returns dest to allow chaining operations.
dh/sidh/internal/p751/fp2.go:99
↓ 12 callers
Function
inv
Set dest = 1/x Allowed to overlap dest with x. Returns dest to allow chaining operations.
dh/sidh/internal/p503/fp2.go:99
↓ 12 callers
Method
leftMult
leftMult multiples a*b with a matrixZp, b matrixG2.
abe/cpabe/tkn20/internal/tkn/matrixG2.go:122
↓ 11 callers
Method
Clone
Clone returns a copy of the XOF in its current state.
xof/xof.go:30
↓ 11 callers
Method
Decrypt
(ct []byte)
abe/cpabe/tkn20/tkn20.go:96
↓ 11 callers
Method
Final
()
sign/slhdsa/state.go:259
↓ 11 callers
Function
G1Generator
G1Generator returns the generator point of G1.
ecc/bls12381/g1.go:394
↓ 11 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/ed25519/ed25519.go:185
↓ 11 callers
Method
Import
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 callers
Method
JointRandLength
()
vdaf/prio3/internal/prio3/prio3.go:521
↓ 11 callers
Method
KeyGen
(rand io.Reader, attrs Attributes)
abe/cpabe/tkn20/tkn20.go:69
↓ 11 callers
Method
Mul
(x, y *Fp)
ecc/bls12381/ff/fp.go:42
↓ 11 callers
Method
Mul
Mul sets the receiver to s * x, and returns the receiver.
group/group.go:87
↓ 11 callers
Method
Mul
Calculates x = x^2.
math/mlsbset/mlsbset.go:24
↓ 11 callers
Function
NewClient
(v Variant, pk *rsa.PublicKey)
blindsign/blindrsa/brsa.go:80
↓ 11 callers
Function
NewExpanderMD
NewExpanderMD returns a hash function based on a Merkle-Damgård hash function.
expander/expander.go:25
↓ 11 callers
Function
NewKeyFromSeed
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 callers
Method
SetKeyPairAddress
(i uint32)
sign/slhdsa/address.go:60
↓ 11 callers
Method
Sub
(x, y *Fp2)
ecc/bls12381/ff/fp2.go:22
↓ 11 callers
Method
UnmarshalBinaryPrivateKey
Unmarshals a PrivateKey from the provided buffer.
kem/kem.go:52
↓ 11 callers
Function
addRdc
r = x + y mod p.
dh/csidh/fp511.go:41
↓ 11 callers
Method
byteSize
()
group/short.go:44
↓ 11 callers
Function
convToPrv
* ------------------------------------------------------------------------- Helpers ------------------------------------------------------------
dh/sidh/sidh_test.go:139
↓ 11 callers
Function
convToPub
Converts string to public key.
dh/sidh/sidh_test.go:153
↓ 11 callers
Method
cvtScl
(s Scalar)
group/short.go:86
↓ 11 callers
Function
mulRdc
(r, x, y *fp)
dh/csidh/fp511_noasm.go:8
↓ 11 callers
Function
randomMatrixG1
(rand io.Reader, r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixG1.go:213
↓ 11 callers
Method
setBigInt
(b *big.Int)
ecc/fourq/fp.go:24
↓ 11 callers
Method
setBigInt
(f0, f1 *big.Int)
ecc/fourq/fq.go:15
↓ 11 callers
Function
sqr
(dest, x *common.Fp2)
dh/sidh/internal/p434/fp2.go:132
↓ 11 callers
Function
sqr
(dest, x *common.Fp2)
dh/sidh/internal/p751/fp2.go:132
↓ 11 callers
Function
sqr
(dest, x *common.Fp2)
dh/sidh/internal/p503/fp2.go:132
↓ 10 callers
Function
BigInt2BytesLe
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 callers
Method
Clear
()
sign/slhdsa/state.go:62
↓ 10 callers
Method
Cmov
Cmov moves x into z if b=1.
ecc/goldilocks/scalar.go:88
↓ 10 callers
Method
Group
()
oprf/oprf.go:87
↓ 10 callers
Method
Identity
()
math/mlsbset/mlsbset.go:22
↓ 10 callers
Method
Import
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 callers
Method
InvNTT
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 callers
Function
IsEnabledX4
IsEnabledX4 returns true if the architecture supports a four-way SIMD implementation provided in this package.
simd/keccakf1600/f1600x.go:67
↓ 10 callers
Method
IsEqual
Returns true if the element is equal to x.
vdaf/prio3/arith/arith.go:32
↓ 10 callers
Function
Modp
Modp ensures that z is between [0,p-1].
math/fp25519/fp.go:205
↓ 10 callers
Function
NewSigner
NewSigner creates a new Signer for the blind RSA protocol using an RSA private key.
blindsign/blindrsa/brsa.go:226
↓ 10 callers
Method
NewStatePriv
(skSeed, pkSeed []byte)
sign/slhdsa/state.go:22
↓ 10 callers
Function
P
P returns the prime modulus 2^255-19.
math/fp25519/fp.go:27
↓ 10 callers
Method
SetIdentity
SetIdentity assigns g to the identity element.
ecc/bls12381/g1.go:131
↓ 10 callers
Function
Shared
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 callers
Method
Sqr
(x *Fp2)
ecc/bls12381/ff/fp2.go:35
↓ 10 callers
Function
UnmarshalBinary
UnmarshalBinary recovers a value from a byte array. It returns an error if the read was unsuccessful.
internal/conv/conv.go:167
↓ 10 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/ed25519/ed25519.go:403
↓ 10 callers
Method
Verify
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 callers
Function
fqSub
go:noescape
ecc/fourq/fq_amd64.go:13
↓ 10 callers
Method
marshalBinary
()
abe/cpabe/tkn20/internal/tkn/policy.go:39
↓ 10 callers
Function
mustRead
(t testing.TB, size uint32)
sign/slhdsa/all_test.go:47
↓ 10 callers
Method
params
()
sign/slhdsa/params.go:66
↓ 10 callers
Function
randomG1
(t testing.TB)
ecc/bls12381/g1_test.go:19
↓ 10 callers
Method
resize
resize only changes the matrix if we have to
abe/cpabe/tkn20/internal/tkn/matrixG1.go:73
↓ 10 callers
Method
toBigInt
()
ecc/fourq/fq.go:14
↓ 10 callers
Function
vartimeEqFp2
Returns true if lhs = rhs. Takes variable time.
dh/sidh/internal/p434/fp2_test.go:22
↓ 10 callers
Function
vartimeEqFp2
Returns true if lhs = rhs. Takes variable time.
dh/sidh/internal/p751/fp2_test.go:22
↓ 10 callers
Function
vartimeEqFp2
Returns true if lhs = rhs. Takes variable time.
dh/sidh/internal/p503/fp2_test.go:22
↓ 9 callers
Method
BarrettReduce
Almost normalizes coefficients. Ensures each coefficient is in {0, …, q}.
pke/kyber/internal/common/amd64.go:285
↓ 9 callers
Function
DeriveAttributeKeysCCA
(rand io.Reader, sp *SecretParams, attrs *Attributes)
abe/cpabe/tkn20/internal/tkn/bk.go:78
↓ 9 callers
Method
DeriveKey
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 callers
Method
EncapsulationSeedSize
Size of seed used in EncapsulateDeterministically().
kem/kem.go:81
↓ 9 callers
Method
Evaluate
Evaluate calculates the polynomial evaluation p(x).
vdaf/prio3/arith/arith.go:133
↓ 9 callers
Method
Finalize
(d *FinalizeData, e *Evaluation)
oprf/oprf_test.go:19
← previous
next →
101–200 of 5,182, ranked by callers