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
↓ 7 callers
Method
ScalarMult
ScalarMult returns (Qx,Qy)=k*(Px,Py) where k is a number in big-endian form. It is not fully constant time.
ecc/p384/p384opt.go:82
↓ 7 callers
Method
SeedSize
Size of seed used in DeriveKey
kem/kem.go:72
↓ 7 callers
Method
SetIdentity
SetIdentity assigns g to the identity element.
ecc/bls12381/g2.go:128
↓ 7 callers
Method
SetTreeIndex
(i uint32)
sign/slhdsa/address.go:64
↓ 7 callers
Function
Setup
(rand io.Reader)
abe/cpabe/tkn20/tkn20.go:160
↓ 7 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/x448/key.go:41
↓ 7 callers
Function
Sign
Sign computes a signature of a message using a key (defined in G1 or G1).
sign/bls/bls.go:285
↓ 7 callers
Function
Sqr
Sqr calculates z = x^2 mod p.
math/fp448/fp.go:164
↓ 7 callers
Method
Unshard
([]AggShare, uint)
vdaf/prio3/prio3_test.go:33
↓ 7 callers
Method
Verify
Verify verifies the input (message, metadata, signature) triple using the public key augmented with metadata, and produces an error upon failure.
blindsign/blindrsa/partiallyblindrsa/pbrsa.go:193
↓ 7 callers
Method
add
(Q *pointR2)
ecc/fourq/point_amd64.go:26
↓ 7 callers
Function
benchmarkSignCombineHelper
nolint: unparam
tss/rsa/rsa_threshold_test.go:384
↓ 7 callers
Function
broadcastImm32
XXX align Poly on 16 bytes such that we can use aligned moves XXX ensure Zetas and InvZetas are 16 byte aligned.
sign/internal/dilithium/asm/src.go:18
↓ 7 callers
Method
byteSize
()
hpke/shortkem.go:22
↓ 7 callers
Method
double
()
ecc/fourq/point_amd64.go:25
↓ 7 callers
Function
fp384Sub
fp384Sub requires a reduced b. go:noescape
ecc/p384/arith.go:126
↓ 7 callers
Function
fqSqr
go:noescape
ecc/fourq/fq_amd64.go:19
↓ 7 callers
Method
fromScalar
(x *Scalar)
ecc/goldilocks/scalar.go:19
↓ 7 callers
Function
montReduce
Given -2¹⁵ q ≤ x < 2¹⁵ q, returns -q < y < q with x 2⁻¹⁶ = y (mod q).
pke/kyber/internal/common/field.go:4
↓ 7 callers
Function
mulP434
Computes z = x * y. go:noescape
dh/sidh/internal/p434/arith_decl.go:55
↓ 7 callers
Function
mulP503
Computes z = x * y. go:noescape
dh/sidh/internal/p503/arith_decl.go:55
↓ 7 callers
Function
mulP751
Computes z = x * y. go:noescape
dh/sidh/internal/p751/arith_decl.go:55
↓ 7 callers
Function
randomFp12
(t testing.TB)
ecc/bls12381/ff/fp12_test.go:9
↓ 7 callers
Function
randomMatrixGT
(rand io.Reader, r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixGT.go:176
↓ 7 callers
Function
testSike
Interface to "testing" * ------------------------------------------------------------------------- Wrappers for 'testing' SIDH -----------------
dh/sidh/sike_test.go:427
↓ 7 callers
Function
toNormX
Returns projective coordinate X of normalized EC 'point' (point.x / point.z).
dh/csidh/utils_test.go:106
↓ 7 callers
Method
transformBK
Carry Out the augmentation under the BK transform
abe/cpabe/tkn20/internal/tkn/policy.go:359
↓ 7 callers
Function
zeroPoint
()
ecc/p384/point.go:24
↓ 6 callers
Method
Add
Add updates g=P+Q.
ecc/bls12381/g1.go:220
↓ 6 callers
Method
Add
Add sets the receiver to x + y, and returns the receiver.
group/group.go:81
↓ 6 callers
Function
All
All returns all KEM schemes supported.
kem/schemes/schemes.go:75
↓ 6 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/brsa.go:237
↓ 6 callers
Function
BytesLe2Hex
BytesLe2Hex returns an hexadecimal string of a number stored in a little-endian order slice x.
internal/conv/conv.go:14
↓ 6 callers
Function
CalcCurveParamsEquiv3
Computes equivalence (A:C) ~ (A+2C : A-2C)
dh/sidh/internal/p434/curve.go:71
↓ 6 callers
Function
CalcCurveParamsEquiv3
Computes equivalence (A:C) ~ (A+2C : A-2C)
dh/sidh/internal/p751/curve.go:71
↓ 6 callers
Function
CalcCurveParamsEquiv3
Computes equivalence (A:C) ~ (A+2C : A-2C)
dh/sidh/internal/p503/curve.go:71
↓ 6 callers
Method
Decode
Decode returns an aggregate result of type [AggResult]. This computation may depend on the number of outputs aggregated.
vdaf/prio3/internal/prio3/prio3.go:544
↓ 6 callers
Method
DecryptTo
DecryptTo decrypts message ct for the private key and writes the plaintext to pt. This function panics if the lengths of ct and pt are not Ciphertext
pke/kyber/kyber512/kyber.go:111
↓ 6 callers
Method
Degree
Degree is the arithmetic degree of the gadget circuit.
vdaf/prio3/internal/flp/gadgets.go:16
↓ 6 callers
Method
DeriveUniform
Sample p uniformly from the given seed and x and y coordinates. Coefficients are reduced and will be in "tangled" order. See Tangle().
pke/kyber/internal/common/sample.go:192
↓ 6 callers
Method
Double
Double returns 2P.
ecc/goldilocks/curve.go:58
↓ 6 callers
Function
EncryptCCA
(rand io.Reader, public *PublicParams, policy *Policy, msg []byte)
abe/cpabe/tkn20/internal/tkn/bk.go:83
↓ 6 callers
Method
Eval
Eval is evaluates the gadget over the given inputs.
vdaf/prio3/internal/flp/gadgets.go:18
↓ 6 callers
Function
FromMontgomery
Converts in.A and in.B from Montgomery domain and stores in 'out' out.A = in.A mod p out.B = in.B mod p After returning from the call 'in' is not mod
dh/sidh/internal/p434/fp2.go:209
↓ 6 callers
Function
FromMontgomery
Converts in.A and in.B from Montgomery domain and stores in 'out' out.A = in.A mod p out.B = in.B mod p After returning from the call 'in' is not mod
dh/sidh/internal/p751/fp2.go:209
↓ 6 callers
Function
FromMontgomery
Converts in.A and in.B from Montgomery domain and stores in 'out' out.A = in.A mod p out.B = in.B mod p After returning from the call 'in' is not mod
dh/sidh/internal/p503/fp2.go:209
↓ 6 callers
Function
GenerateKey
GenerateKey generates a private key compatible with the suite.
oprf/keys.go:81
↓ 6 callers
Method
HashToScalar
HashToScalar hashes a message (msg) using a domain separation string (dst) producing a group scalar with uniform distribution.
group/group.go:56
↓ 6 callers
Method
InvUint64
InvUint64 calculates z = 1 / x.
vdaf/prio3/arith/arith.go:58
↓ 6 callers
Method
JoinBits
JoinBits calculates the element sum( 2^i * z[i] ).
vdaf/prio3/arith/arith.go:100
↓ 6 callers
Function
KeccakF1600
KeccakF1600 applies the Keccak permutation to a 1600b-wide state represented as a slice of 25 uint64s. If turbo is true, applies the 12-round variant
internal/sha3/keccakf.go:12
↓ 6 callers
Method
MarshalBinary
MarshalBinary returns a slice of FpSize bytes that contains the minimal residue of z such that 0 <= z < FpOrder (in big-endian order).
ecc/bls12381/ff/fp.go:97
↓ 6 callers
Function
MarshalBinaryLen
MarshalBinaryLen encodes a value into an array of n bytes in a format readable by UnmarshalBinary.
internal/conv/conv.go:153
↓ 6 callers
Method
Mul
(x, y *Fp)
vdaf/prio3/arith/fp64/fp.go:31
↓ 6 callers
Method
Mul
(x, y *Fp)
vdaf/prio3/arith/fp128/fp.go:31
↓ 6 callers
Method
MulHat
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/amd64.go:252
↓ 6 callers
Function
New
New returns a Cipher struct implementing the crypto/cipher.AEAD interface. The key must be Mode.KeySize() bytes long, and the mode is one of Ascon128,
cipher/ascon/ascon.go:70
↓ 6 callers
Function
New
New returns a SecretSharing providing a (t,n) Shamir's secret sharing. It allows splitting a secret into n shares, such that the secret is only recove
secretsharing/ss.go:62
↓ 6 callers
Function
NewPartialObliviousClient
(s Suite, server *PublicKey)
oprf/oprf.go:129
↓ 6 callers
Method
NewReceiver
NewReceiver creates a Receiver with knowledge of a private key.
hpke/hpke.go:162
↓ 6 callers
Function
NewVerifiableClient
(s Suite, server *PublicKey)
oprf/oprf.go:119
↓ 6 callers
Function
NewVerifier
NewVerifier creates a new PBRSAVerifier using the corresponding Signer parameters. This corresponds to the RSAPBSSA-SHA384-PSS-Deterministic variant.
blindsign/blindrsa/partiallyblindrsa/pbrsa.go:47
↓ 6 callers
Method
Order
()
vdaf/prio3/arith/field_test.go:20
↓ 6 callers
Method
PackT0
Writes p whose coefficients are in (-2ᵈ⁻¹, 2ᵈ⁻¹] into buf which has to be of length at least PolyT0Size. Assumes that the coefficients are not normal
sign/internal/dilithium/pack.go:23
↓ 6 callers
Method
PackT1
Writes p whose coefficients are less than 1024 into buf, which must be of size at least PolyT1Size . Assumes coefficients of p are normalized.
sign/internal/dilithium/pack.go:88
↓ 6 callers
Function
Pow3k
Given the curve parameters, xP = x(P), and k >= 0, compute xP = x([3^k]P). Safe to overlap xP, xR.
dh/sidh/internal/p434/curve.go:188
↓ 6 callers
Function
Pow3k
Given the curve parameters, xP = x(P), and k >= 0, compute xP = x([3^k]P). Safe to overlap xP, xR.
dh/sidh/internal/p751/curve.go:188
↓ 6 callers
Function
Pow3k
Given the curve parameters, xP = x(P), and k >= 0, compute xP = x([3^k]P). Safe to overlap xP, xR.
dh/sidh/internal/p503/curve.go:188
↓ 6 callers
Method
Prepare
Prepare is the process by which the message to be signed and verified is prepared for input to the blind signing protocol.
blindsign/blindrsa/brsa.go:108
↓ 6 callers
Method
ProofLength
()
vdaf/prio3/internal/prio3/prio3.go:525
↓ 6 callers
Method
RandomNonZeroScalar
RandomNonZeroScalar creates a scalar chosen at random (using randomness from rnd) from the set of group scalars. Use crypto/rand.Reader as a cryptogra
group/group.go:47
↓ 6 callers
Function
Recover
Recover returns a secret provided more than t different shares are given. Returns an error if the number of shares is not above the threshold t, or if
secretsharing/ss.go:132
↓ 6 callers
Method
SetBytes
SetBytes assigns to z the number modulo ScalarOrder stored in the slice (in big-endian order).
ecc/bls12381/ff/scalar.go:60
↓ 6 callers
Method
SetLayerAddress
(l addrType)
sign/slhdsa/address.go:66
↓ 6 callers
Method
SetMsgs
(m0, m1 []byte)
sign/slhdsa/state.go:189
↓ 6 callers
Method
SetTreeHeight
(i uint32)
sign/slhdsa/address.go:62
↓ 6 callers
Function
SignTo
SignTo signs the given message and writes the signature into signature. It will panic if signature is not of length at least SignatureSize.
sign/eddilithium3/eddilithium.go:75
↓ 6 callers
Function
SignTo
SignTo signs the given message and writes the signature into signature. It will panic if signature is not of length at least SignatureSize.
sign/eddilithium2/eddilithium.go:82
↓ 6 callers
Function
Sub
Sub calculates z = x-y mod p.
math/fp448/fp.go:155
↓ 6 callers
Method
ToBytes
(k []byte)
sign/ed25519/point.go:38
↓ 6 callers
Method
UnmarshalBinaryPublicKey
(data []byte)
hpke/kembase.go:19
↓ 6 callers
Method
UnpackT0
Sets p to the polynomial packed into buf by PackT0. The coefficients of p will not be normalized, but will lie in (-2ᵈ⁻¹, 2ᵈ⁻¹].
sign/internal/dilithium/pack.go:56
↓ 6 callers
Method
UnpackT1
Sets p to the polynomial whose coefficients are less than 1024 encoded into buf (which must be of size PolyT1Size). p will be normalized.
sign/internal/dilithium/pack.go:7
↓ 6 callers
Method
barrettReduceGeneric
Almost normalizes coefficients. Ensures each coefficient is in {0, …, q}.
pke/kyber/internal/common/poly.go:29
↓ 6 callers
Function
benchmarkShake
benchmarkShake is specialized to the Shake instances, which don't require a copy on reading output.
internal/sha3/sha3_test.go:205
↓ 6 callers
Function
clearSlice
(s *[]byte)
sign/slhdsa/state.go:357
↓ 6 callers
Function
fp384Add
fp384Add requires at least one of a and b to be reduced, and c may itself be non-reduced, as only a single p is conditionally subtracted. go:noescape
ecc/p384/arith.go:121
↓ 6 callers
Function
fpMod
nolint go:noescape
ecc/fourq/fp_amd64.go:13
↓ 6 callers
Function
headerEncoding
(isCompressed, isInfinity, isBigYCoord byte)
ecc/bls12381/constants.go:93
↓ 6 callers
Method
isZero
()
ecc/p384/point.go:33
↓ 6 callers
Function
montEncode
(c, a *fp384)
ecc/p384/arith.go:30
↓ 6 callers
Function
permuteScalarX2
(a []uint64, turbo bool)
simd/keccakf1600/f1600x.go:146
↓ 6 callers
Function
permuteScalarX4
(a []uint64, turbo bool)
simd/keccakf1600/f1600x.go:133
↓ 6 callers
Method
random
()
ecc/fourq/point_test.go:12
↓ 6 callers
Function
randomFp
returns random value in a range (0,p).
dh/csidh/utils_test.go:54
↓ 6 callers
Function
randomJacobian
()
ecc/p384/point_test.go:33
↓ 6 callers
Method
resize
resize only changes the matrix if we have to
abe/cpabe/tkn20/internal/tkn/matrixG2.go:74
↓ 6 callers
Method
resize
resize sets up m to be r x c
abe/cpabe/tkn20/internal/tkn/matrixGT.go:70
↓ 6 callers
Method
setOne
()
ecc/fourq/fq.go:17
↓ 6 callers
Function
subRdc
r = x - y mod p.
dh/csidh/fp511.go:88
← previous
next →
301–400 of 5,182, ranked by callers