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
↓ 5 callers
Method
fixedMult
(scalar []byte)
sign/ed25519/mult.go:109
↓ 5 callers
Function
fp2S
(v fp)
dh/csidh/utils_test.go:38
↓ 5 callers
Function
fp384Neg
fp384Neg requires a reduced a, as it computes p-a. go:noescape
ecc/p384/arith.go:115
↓ 5 callers
Function
fpMul
go:noescape
ecc/fourq/fp_amd64.go:22
↓ 5 callers
Function
fpSqr
go:noescape
ecc/fourq/fp_amd64.go:25
↓ 5 callers
Function
fpSubGeneric
(c, a, b *Fp)
ecc/fourq/fp_generic.go:30
↓ 5 callers
Method
fromBytes
(p *params, c *cursor)
sign/slhdsa/fors.go:30
↓ 5 callers
Method
fromR1
(Q *pointR1)
ecc/fourq/curve.go:86
↓ 5 callers
Method
getDLEQParams
()
oprf/oprf.go:229
↓ 5 callers
Method
getDST
(name string)
oprf/oprf.go:183
↓ 5 callers
Method
invNTTGeneric
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/ntt.go:145
↓ 5 callers
Function
isInRange
(b *[Size]byte)
vdaf/prio3/arith/fp64/vector.go:202
↓ 5 callers
Function
isInRange
(b *[Size]byte)
vdaf/prio3/arith/fp128/vector.go:202
↓ 5 callers
Method
isZero
()
ecc/fourq/fq.go:18
↓ 5 callers
Method
labeledExpand
(prk, label, info []byte, l uint16)
hpke/util.go:110
↓ 5 callers
Function
loadStrongRSAKey
()
blindsign/blindrsa/partiallyblindrsa/pbrsa_test.go:25
↓ 5 callers
Function
miller
(f *ff.Fp12, P *G1, Q *G2)
ecc/bls12381/pair.go:16
↓ 5 callers
Method
modOrder
modOrder reduces z mod order.
ecc/goldilocks/scalar.go:115
↓ 5 callers
Method
mulHatGeneric
Sets p to the "pointwise" multiplication of a and b. That is: InvNTT(p) = InvNTT(a) * InvNTT(b). Assumes a and b are in Montgomery form. Products b
pke/kyber/internal/common/poly.go:63
↓ 5 callers
Method
mulHatGeneric
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/poly.go:88
↓ 5 callers
Function
newFlpSum
(maxMeasurement uint64)
vdaf/prio3/sum/sum.go:98
↓ 5 callers
Method
normalizeGeneric
Reduce each of the coefficients to <q.
sign/internal/dilithium/poly.go:17
↓ 5 callers
Method
nttGeneric
Executes an in-place forward "NTT" on p. Assumes the coefficients are in absolute value ≤q. The resulting coefficients are in absolute value ≤7q. I
pke/kyber/internal/common/ntt.go:60
↓ 5 callers
Method
nttGeneric
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/ntt.go:111
↓ 5 callers
Method
reduceLe2QGeneric
Reduces each of the coefficients to <2q.
sign/internal/dilithium/poly.go:10
↓ 5 callers
Function
runSignatureProtocol
(signer Signer, client Client, message []byte, random io.Reader)
blindsign/blindrsa/brsa_test.go:81
↓ 5 callers
Function
sampleDlin
sampleDlin samples from the distribution Dk. See section 3.2 of the paper for details.
abe/cpabe/tkn20/internal/tkn/matrixZp.go:64
↓ 5 callers
Function
slhVerifyInternal
See FIPS 205 -- Section 9.3 -- Algorithm 20.
sign/slhdsa/internal.go:95
↓ 5 callers
Function
subP434
Compute z = x - y (mod p). go:noescape
dh/sidh/internal/p434/arith_decl.go:35
↓ 5 callers
Function
subP503
Compute z = x - y (mod p). go:noescape
dh/sidh/internal/p503/arith_decl.go:35
↓ 5 callers
Function
subP751
Compute z = x - y (mod p). go:noescape
dh/sidh/internal/p751/arith_decl.go:35
↓ 5 callers
Function
testSidhVec
* ------------------------------------------------------------------------- Wrappers for 'testing' SIDH ----------------------------------------
dh/sidh/sidh_test.go:366
↓ 5 callers
Method
toScalar
(x *Scalar)
ecc/goldilocks/scalar.go:29
↓ 4 callers
Method
Add
(x *Fp4, y *Fp4)
ecc/bls12381/ff/fp4.go:33
↓ 4 callers
Method
Add
(x, y *Fp12)
ecc/bls12381/ff/fp12.go:22
↓ 4 callers
Method
Blind
(inputs [][]byte)
oprf/oprf_test.go:18
↓ 4 callers
Method
BlindSign
BlindSign blindly computes the RSA operation using the Signer's private key on the blinded message input, if it's of valid length, and returns an erro
blindsign/blindrsa/partiallyblindrsa/pbrsa.go:350
↓ 4 callers
Function
ByName
ByName returns the scheme with the given name and nil if it is not supported. Names are case insensitive.
kem/schemes/schemes.go:70
↓ 4 callers
Method
Bytes
Packs the public key.
sign/dilithium/mode2/dilithium.go:99
↓ 4 callers
Function
BytesToFp2
Read 2*bytelen(p) bytes into the given ExtensionFieldElement. It is an error to call this function if the input byte slice is less than 2*bytelen(p)
dh/sidh/internal/common/utils.go:19
↓ 4 callers
Function
CalcCurveParamsEquiv4
Computes equivalence (A:C) ~ (A+2C : 4C)
dh/sidh/internal/p434/curve.go:84
↓ 4 callers
Function
CalcCurveParamsEquiv4
Computes equivalence (A:C) ~ (A+2C : 4C)
dh/sidh/internal/p751/curve.go:84
↓ 4 callers
Function
CalcCurveParamsEquiv4
Computes equivalence (A:C) ~ (A+2C : 4C)
dh/sidh/internal/p503/curve.go:84
↓ 4 callers
Method
CombinedMult
CombinedMult calculates P=mG+nQ, where G is the generator and Q=(Qx,Qy). The scalars m and n are positive integers in big-endian form. Runs in non-con
ecc/p384/p384.go:17
↓ 4 callers
Method
DecompressMessage
Set p to Decompress_q(m, 1). p will be normalized. m has to be of PlaintextSize.
pke/kyber/internal/common/poly.go:134
↓ 4 callers
Method
DeriveKeyPair
(seed []byte)
hpke/kembase.go:17
↓ 4 callers
Method
DeriveKeyPair
DeriveKeyPair deterministically derives a pair of keys from a seed. Panics if the length of seed is not equal to the value returned by SeedSize.
kem/kem.go:69
↓ 4 callers
Function
DeriveSecret
DeriveSecret computes a cSIDH shared secret. If successful, returns true and fills 'out' with shared secret. Function returns false in case 'pub' is i
dh/csidh/csidh.go:330
↓ 4 callers
Method
Detangle
Puts p back into standard form.
pke/kyber/internal/common/amd64.go:274
↓ 4 callers
Method
Double
Double updates g = 2g.
ecc/bls12381/g2.go:198
↓ 4 callers
Method
Encode
(_, _ []byte)
ecc/bls12381/hash_test.go:52
↓ 4 callers
Method
EvalOutputLength
()
vdaf/prio3/internal/prio3/prio3.go:523
↓ 4 callers
Method
Evaluate
(req *EvaluationRequest)
oprf/oprf_test.go:32
↓ 4 callers
Method
Exp
Exp is calculates x^k, where x is a predetermined element of a group G.
math/mlsbset/power.go:14
↓ 4 callers
Method
Export
Exports currently stored key. In case structure hasn't been filled with key data returned byte string is filled with zeros.
dh/sidh/sidh.go:112
↓ 4 callers
Method
Frob
(x *Fp12)
ecc/bls12381/ff/fp12.go:19
↓ 4 callers
Method
FromBytes
FromBytes stores z = x mod order, where x is a number stored in little-endian order.
ecc/goldilocks/scalar.go:127
↓ 4 callers
Method
FullEvaluate
(input []byte)
oprf/oprf_test.go:33
↓ 4 callers
Method
GenerateCurve
Given a three-torsion point p = x(PB) on the curve E_(A:C), construct the three-isogeny phi : E_(A:C) -> E_(A:C)/<P_3> = E_(A':C'). Input: (XP_3: ZP_
dh/sidh/internal/p434/curve.go:264
↓ 4 callers
Method
GenerateCurve
Given a four-torsion point p = x(PB) on the curve E_(A:C), construct the four-isogeny phi : E_(A:C) -> E_(A:C)/<P_4> = E_(A':C'). Input: (XP_4: ZP_4)
dh/sidh/internal/p434/curve.go:321
↓ 4 callers
Method
GenerateCurve
Given a three-torsion point p = x(PB) on the curve E_(A:C), construct the three-isogeny phi : E_(A:C) -> E_(A:C)/<P_3> = E_(A':C'). Input: (XP_3: ZP_
dh/sidh/internal/p751/curve.go:264
↓ 4 callers
Method
GenerateCurve
Given a four-torsion point p = x(PB) on the curve E_(A:C), construct the four-isogeny phi : E_(A:C) -> E_(A:C)/<P_4> = E_(A':C'). Input: (XP_4: ZP_4)
dh/sidh/internal/p751/curve.go:321
↓ 4 callers
Method
GenerateCurve
Given a three-torsion point p = x(PB) on the curve E_(A:C), construct the three-isogeny phi : E_(A:C) -> E_(A:C)/<P_3> = E_(A':C'). Input: (XP_3: ZP_
dh/sidh/internal/p503/curve.go:264
↓ 4 callers
Method
GenerateCurve
Given a four-torsion point p = x(PB) on the curve E_(A:C), construct the four-isogeny phi : E_(A:C) -> E_(A:C)/<P_4> = E_(A':C'). Input: (XP_4: ZP_4)
dh/sidh/internal/p503/curve.go:321
↓ 4 callers
Method
Import
Assumes key is in Montgomery domain.
dh/csidh/csidh.go:253
↓ 4 callers
Method
InitSender
Initialization Input: myGroup, the group we operate in Input: m0, m1 the 2 message of the sender Input: index, the index of this SimOT Output: A = [a]
ot/simot/simotlocal.go:71
↓ 4 callers
Method
Initialize
Initialize the state and returns the buffer on which the two permutations will act: a uint64 slice of length 50. The first permutation will act on {a
simd/keccakf1600/f1600x.go:97
↓ 4 callers
Method
Inv
(x *Fp2)
ecc/bls12381/ff/fp2.go:44
↓ 4 callers
Method
Inv
(x *Fp)
ecc/bls12381/ff/fp.go:131
↓ 4 callers
Method
Inv
Inv calculates z = 1 / x.
vdaf/prio3/arith/arith.go:56
↓ 4 callers
Method
IsEqual
IsEqual returns 1 if z == x and 0 otherwise.
ecc/bls12381/ff/fp.go:38
↓ 4 callers
Method
IsExtended
IsExtended returns true if the element x^(2^(wd)) must be calculated.
math/mlsbset/mlsbset.go:130
↓ 4 callers
Method
IsNegative
IsNegative returns 0 if the least absolute residue for z is in [0,(p-1)/2], and 1 otherwise. Equivalently, this function returns 1 if z is lexicograph
ecc/bls12381/ff/fp.go:29
↓ 4 callers
Method
IsOnCurve
IsOnCurve returns true if the point lies on the curve.
ecc/goldilocks/curve.go:18
↓ 4 callers
Method
IsOnCurve
IsOnCurve reports whether the given P=(x,y) lies on the curve.
ecc/fourq/curve.go:36
↓ 4 callers
Method
IsOnG2
IsOnG2 returns true if the point is in the group G2.
ecc/bls12381/g2.go:134
↓ 4 callers
Method
IsZero
()
ecc/bls12381/ff/fp2.go:15
↓ 4 callers
Method
IsZero
IsZero returns 1 if z == 0 and 0 otherwise.
ecc/bls12381/ff/fp.go:35
↓ 4 callers
Method
IsZero
Returns true if the element is the neutral additive element.
vdaf/prio3/arith/arith.go:28
↓ 4 callers
Function
KeyGen
KeyGen calculates a public key k from a secret key.
dh/curve4q/curve4Q.go:12
↓ 4 callers
Method
Marshal
Marshal encodes a point P into out buffer.
ecc/fourq/point.go:242
↓ 4 callers
Method
Marshal
(b *cryptobyte.Builder)
group/short.go:383
↓ 4 callers
Method
MarshalBinary
()
zk/dleq/dleq.go:318
↓ 4 callers
Method
MarshalBinary
()
kem/sike/sikep503/sike.go:93
↓ 4 callers
Method
NTT
Executes an in-place forward "NTT" on p. Assumes the coefficients are in absolute value ≤q. The resulting coefficients are in absolute value ≤7q. I
pke/kyber/internal/common/amd64.go:219
↓ 4 callers
Function
New
(numShares uint8, length, bits, chunkLength uint, context []byte)
vdaf/prio3/sumvec/sumvec.go:36
↓ 4 callers
Function
New
New creates a new polynomial given its coefficients in ascending order. Thus, p(x) = \sum_i^k c[i] x^i, where k = len(c)-1 is the degree of the pol
math/polynomial/polynomial.go:25
↓ 4 callers
Function
New224
This file provides functions for creating instances of the SHA-3 and SHAKE hash functions, as well as utility functions for hashing bytes. New224 crea
internal/sha3/hashes.go:14
↓ 4 callers
Function
NewKeyFromSeed
Derives a new Kyber.CPAPKE keypair from the given seed.
pke/kyber/kyber1024/internal/cpapke.go:66
↓ 4 callers
Function
NewKeyFromSeed
Derives a new Kyber.CPAPKE keypair from the given seed.
pke/kyber/kyber512/internal/cpapke.go:64
↓ 4 callers
Function
NewKeyFromSeed
Derives a new Kyber.CPAPKE keypair from the given seed.
pke/kyber/kyber768/internal/cpapke.go:66
↓ 4 callers
Function
NewPartialObliviousServer
(s Suite, key *PrivateKey)
oprf/oprf.go:159
↓ 4 callers
Function
NewSike434
NewSike434 instantiates SIKE/p434 KEM. Deprecated: not cryptographically secure.
dh/sidh/sike.go:27
↓ 4 callers
Function
NewSike751
NewSike751 instantiates SIKE/p751 KEM. Deprecated: not cryptographically secure.
dh/sidh/sike.go:45
↓ 4 callers
Function
NewVerifiableServer
(s Suite, key *PrivateKey)
oprf/oprf.go:149
↓ 4 callers
Method
Normalize
Normalizes coefficients in-place. Ensures each coefficient is in {0, …, q-1}.
pke/kyber/kyber1024/internal/vec.go:51
↓ 4 callers
Method
Normalize
Normalizes coefficients in-place. Ensures each coefficient is in {0, …, q-1}.
pke/kyber/kyber512/internal/vec.go:49
↓ 4 callers
Method
Normalize
Normalizes coefficients in-place. Ensures each coefficient is in {0, …, q-1}.
pke/kyber/kyber768/internal/vec.go:51
↓ 4 callers
Method
Pack
Pack packs the public key into buf.
sign/eddilithium3/eddilithium.go:130
↓ 4 callers
Method
Pack
Pack packs the public key into buf.
sign/eddilithium2/eddilithium.go:135
← previous
next →
501–600 of 5,182, ranked by callers