MCPcopy Create free account

hub / github.com/cloudflare/circl / functions

Functions5,182 in github.com/cloudflare/circl

↓ 7 callersMethodScalarMult
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 callersMethodSeedSize
Size of seed used in DeriveKey
kem/kem.go:72
↓ 7 callersMethodSetIdentity
SetIdentity assigns g to the identity element.
ecc/bls12381/g2.go:128
↓ 7 callersMethodSetTreeIndex
(i uint32)
sign/slhdsa/address.go:64
↓ 7 callersFunctionSetup
(rand io.Reader)
abe/cpabe/tkn20/tkn20.go:160
↓ 7 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/x448/key.go:41
↓ 7 callersFunctionSign
Sign computes a signature of a message using a key (defined in G1 or G1).
sign/bls/bls.go:285
↓ 7 callersFunctionSqr
Sqr calculates z = x^2 mod p.
math/fp448/fp.go:164
↓ 7 callersMethodUnshard
([]AggShare, uint)
vdaf/prio3/prio3_test.go:33
↓ 7 callersMethodVerify
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 callersMethodadd
(Q *pointR2)
ecc/fourq/point_amd64.go:26
↓ 7 callersFunctionbenchmarkSignCombineHelper
nolint: unparam
tss/rsa/rsa_threshold_test.go:384
↓ 7 callersFunctionbroadcastImm32
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 callersMethodbyteSize
()
hpke/shortkem.go:22
↓ 7 callersMethoddouble
()
ecc/fourq/point_amd64.go:25
↓ 7 callersFunctionfp384Sub
fp384Sub requires a reduced b. go:noescape
ecc/p384/arith.go:126
↓ 7 callersFunctionfqSqr
go:noescape
ecc/fourq/fq_amd64.go:19
↓ 7 callersMethodfromScalar
(x *Scalar)
ecc/goldilocks/scalar.go:19
↓ 7 callersFunctionmontReduce
Given -2¹⁵ q ≤ x < 2¹⁵ q, returns -q < y < q with x 2⁻¹⁶ = y (mod q).
pke/kyber/internal/common/field.go:4
↓ 7 callersFunctionmulP434
Computes z = x * y. go:noescape
dh/sidh/internal/p434/arith_decl.go:55
↓ 7 callersFunctionmulP503
Computes z = x * y. go:noescape
dh/sidh/internal/p503/arith_decl.go:55
↓ 7 callersFunctionmulP751
Computes z = x * y. go:noescape
dh/sidh/internal/p751/arith_decl.go:55
↓ 7 callersFunctionrandomFp12
(t testing.TB)
ecc/bls12381/ff/fp12_test.go:9
↓ 7 callersFunctionrandomMatrixGT
(rand io.Reader, r int, c int)
abe/cpabe/tkn20/internal/tkn/matrixGT.go:176
↓ 7 callersFunctiontestSike
Interface to "testing" * ------------------------------------------------------------------------- Wrappers for 'testing' SIDH -----------------
dh/sidh/sike_test.go:427
↓ 7 callersFunctiontoNormX
Returns projective coordinate X of normalized EC 'point' (point.x / point.z).
dh/csidh/utils_test.go:106
↓ 7 callersMethodtransformBK
Carry Out the augmentation under the BK transform
abe/cpabe/tkn20/internal/tkn/policy.go:359
↓ 7 callersFunctionzeroPoint
()
ecc/p384/point.go:24
↓ 6 callersMethodAdd
Add updates g=P+Q.
ecc/bls12381/g1.go:220
↓ 6 callersMethodAdd
Add sets the receiver to x + y, and returns the receiver.
group/group.go:81
↓ 6 callersFunctionAll
All returns all KEM schemes supported.
kem/schemes/schemes.go:75
↓ 6 callersMethodBlindSign
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 callersFunctionBytesLe2Hex
BytesLe2Hex returns an hexadecimal string of a number stored in a little-endian order slice x.
internal/conv/conv.go:14
↓ 6 callersFunctionCalcCurveParamsEquiv3
Computes equivalence (A:C) ~ (A+2C : A-2C)
dh/sidh/internal/p434/curve.go:71
↓ 6 callersFunctionCalcCurveParamsEquiv3
Computes equivalence (A:C) ~ (A+2C : A-2C)
dh/sidh/internal/p751/curve.go:71
↓ 6 callersFunctionCalcCurveParamsEquiv3
Computes equivalence (A:C) ~ (A+2C : A-2C)
dh/sidh/internal/p503/curve.go:71
↓ 6 callersMethodDecode
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 callersMethodDecryptTo
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 callersMethodDegree
Degree is the arithmetic degree of the gadget circuit.
vdaf/prio3/internal/flp/gadgets.go:16
↓ 6 callersMethodDeriveUniform
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 callersMethodDouble
Double returns 2P.
ecc/goldilocks/curve.go:58
↓ 6 callersFunctionEncryptCCA
(rand io.Reader, public *PublicParams, policy *Policy, msg []byte)
abe/cpabe/tkn20/internal/tkn/bk.go:83
↓ 6 callersMethodEval
Eval is evaluates the gadget over the given inputs.
vdaf/prio3/internal/flp/gadgets.go:18
↓ 6 callersFunctionFromMontgomery
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 callersFunctionFromMontgomery
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 callersFunctionFromMontgomery
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 callersFunctionGenerateKey
GenerateKey generates a private key compatible with the suite.
oprf/keys.go:81
↓ 6 callersMethodHashToScalar
HashToScalar hashes a message (msg) using a domain separation string (dst) producing a group scalar with uniform distribution.
group/group.go:56
↓ 6 callersMethodInvUint64
InvUint64 calculates z = 1 / x.
vdaf/prio3/arith/arith.go:58
↓ 6 callersMethodJoinBits
JoinBits calculates the element sum( 2^i * z[i] ).
vdaf/prio3/arith/arith.go:100
↓ 6 callersFunctionKeccakF1600
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 callersMethodMarshalBinary
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 callersFunctionMarshalBinaryLen
MarshalBinaryLen encodes a value into an array of n bytes in a format readable by UnmarshalBinary.
internal/conv/conv.go:153
↓ 6 callersMethodMul
(x, y *Fp)
vdaf/prio3/arith/fp64/fp.go:31
↓ 6 callersMethodMul
(x, y *Fp)
vdaf/prio3/arith/fp128/fp.go:31
↓ 6 callersMethodMulHat
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 callersFunctionNew
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 callersFunctionNew
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 callersFunctionNewPartialObliviousClient
(s Suite, server *PublicKey)
oprf/oprf.go:129
↓ 6 callersMethodNewReceiver
NewReceiver creates a Receiver with knowledge of a private key.
hpke/hpke.go:162
↓ 6 callersFunctionNewVerifiableClient
(s Suite, server *PublicKey)
oprf/oprf.go:119
↓ 6 callersFunctionNewVerifier
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 callersMethodOrder
()
vdaf/prio3/arith/field_test.go:20
↓ 6 callersMethodPackT0
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 callersMethodPackT1
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 callersFunctionPow3k
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 callersFunctionPow3k
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 callersFunctionPow3k
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 callersMethodPrepare
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 callersMethodProofLength
()
vdaf/prio3/internal/prio3/prio3.go:525
↓ 6 callersMethodRandomNonZeroScalar
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 callersFunctionRecover
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 callersMethodSetBytes
SetBytes assigns to z the number modulo ScalarOrder stored in the slice (in big-endian order).
ecc/bls12381/ff/scalar.go:60
↓ 6 callersMethodSetLayerAddress
(l addrType)
sign/slhdsa/address.go:66
↓ 6 callersMethodSetMsgs
(m0, m1 []byte)
sign/slhdsa/state.go:189
↓ 6 callersMethodSetTreeHeight
(i uint32)
sign/slhdsa/address.go:62
↓ 6 callersFunctionSignTo
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 callersFunctionSignTo
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 callersFunctionSub
Sub calculates z = x-y mod p.
math/fp448/fp.go:155
↓ 6 callersMethodToBytes
(k []byte)
sign/ed25519/point.go:38
↓ 6 callersMethodUnmarshalBinaryPublicKey
(data []byte)
hpke/kembase.go:19
↓ 6 callersMethodUnpackT0
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 callersMethodUnpackT1
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 callersMethodbarrettReduceGeneric
Almost normalizes coefficients. Ensures each coefficient is in {0, …, q}.
pke/kyber/internal/common/poly.go:29
↓ 6 callersFunctionbenchmarkShake
benchmarkShake is specialized to the Shake instances, which don't require a copy on reading output.
internal/sha3/sha3_test.go:205
↓ 6 callersFunctionclearSlice
(s *[]byte)
sign/slhdsa/state.go:357
↓ 6 callersFunctionfp384Add
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 callersFunctionfpMod
nolint go:noescape
ecc/fourq/fp_amd64.go:13
↓ 6 callersFunctionheaderEncoding
(isCompressed, isInfinity, isBigYCoord byte)
ecc/bls12381/constants.go:93
↓ 6 callersMethodisZero
()
ecc/p384/point.go:33
↓ 6 callersFunctionmontEncode
(c, a *fp384)
ecc/p384/arith.go:30
↓ 6 callersFunctionpermuteScalarX2
(a []uint64, turbo bool)
simd/keccakf1600/f1600x.go:146
↓ 6 callersFunctionpermuteScalarX4
(a []uint64, turbo bool)
simd/keccakf1600/f1600x.go:133
↓ 6 callersMethodrandom
()
ecc/fourq/point_test.go:12
↓ 6 callersFunctionrandomFp
returns random value in a range (0,p).
dh/csidh/utils_test.go:54
↓ 6 callersFunctionrandomJacobian
()
ecc/p384/point_test.go:33
↓ 6 callersMethodresize
resize only changes the matrix if we have to
abe/cpabe/tkn20/internal/tkn/matrixG2.go:74
↓ 6 callersMethodresize
resize sets up m to be r x c
abe/cpabe/tkn20/internal/tkn/matrixGT.go:70
↓ 6 callersMethodsetOne
()
ecc/fourq/fq.go:17
↓ 6 callersFunctionsubRdc
r = x - y mod p.
dh/csidh/fp511.go:88
← previousnext →301–400 of 5,182, ranked by callers