MCPcopy Create free account

hub / github.com/cloudflare/circl / functions

Functions5,182 in github.com/cloudflare/circl

↓ 3 callersFunctionPolyUnpackLeqEta
Sets p to the polynomial of norm less than or equal η encoded in the given buffer of size PolyLeqEtaSize. Output coefficients of p are not normalized
sign/mldsa/mldsa87/internal/pack.go:49
↓ 3 callersFunctionPolyUnpackLeqEta
Sets p to the polynomial of norm less than or equal η encoded in the given buffer of size PolyLeqEtaSize. Output coefficients of p are not normalized
sign/dilithium/mode2/internal/pack.go:49
↓ 3 callersFunctionPolyUnpackLeqEta
Sets p to the polynomial of norm less than or equal η encoded in the given buffer of size PolyLeqEtaSize. Output coefficients of p are not normalized
sign/dilithium/mode3/internal/pack.go:47
↓ 3 callersFunctionPolyUnpackLeqEta
Sets p to the polynomial of norm less than or equal η encoded in the given buffer of size PolyLeqEtaSize. Output coefficients of p are not normalized
sign/dilithium/mode5/internal/pack.go:49
↓ 3 callersMethodPrivateKeySize
()
hpke/xkem.go:20
↓ 3 callersMethodPrivateKeySize
()
kem/hybrid/ckem.go:51
↓ 3 callersFunctionProdPairFrac
ProdPairFrac computes the product e(P, Q)^sign where sign is 1 or -1
ecc/bls12381/pair.go:110
↓ 3 callersFunctionProve
Prove returns a proof attesting that kG = [k]G. It panics if the base G or public key kG is the identity element.
zk/dl/dl.go:65
↓ 3 callersMethodProve
Prove returns a proof attesting to the validity of the given measurement.
vdaf/prio3/internal/prio3/prio3.go:529
↓ 3 callersMethodProveRandLength
()
vdaf/prio3/internal/prio3/prio3.go:524
↓ 3 callersMethodProveWithRandomness
(k group.Scalar, a, ka, b, kb group.Element, rnd group.Scalar)
zk/dleq/dleq.go:53
↓ 3 callersMethodQueryRandLength
()
vdaf/prio3/internal/prio3/prio3.go:527
↓ 3 callersMethodRandom
(r io.Reader)
ecc/bls12381/ff/scalar.go:25
↓ 3 callersFunctionRangeCheck
( g Gadget[fp128.Poly, fp128.Vec, fp128.Fp, *fp128.Fp], numCalls uint, chunkLen uint, sharesInv *fp128.Fp,
vdaf/prio3/internal/flp/valid.go:70
↓ 3 callersFunctionReduceLe2Q
Returns a y with y < 2q and y = x mod q. Note that in general *not*: ReduceLe2Q(ReduceLe2Q(x)) == x.
sign/internal/dilithium/field.go:5
↓ 3 callersFunctionRegister
Registers SIDH parameters for particular field.
dh/sidh/internal/common/params.go:18
↓ 3 callersMethodRound3Receiver
Round 3 ---- sender should send e0, e1 to receiver ---- Input: e0, e1: encryption of m0 and m1 from the sender Input: choice, choice bit of receiver C
ot/simot/simotlocal.go:194
↓ 3 callersFunctionRun
(source string)
abe/cpabe/tkn20/internal/dsl/dsl.go:7
↓ 3 callersMethodSatisfaction
(attr *Attributes)
abe/cpabe/tkn20/internal/tkn/policy.go:329
↓ 3 callersMethodScalarMult
ScalarMult calculates P = k*Q, where Q is an N-torsion point.
ecc/fourq/curve.go:71
↓ 3 callersFunctionScheme
Scheme returns a KEM interface.
kem/kyber/kyber768/kyber.go:276
↓ 3 callersMethodSeedSize
()
kem/hybrid/ckem.go:64
↓ 3 callersMethodSetBigInt
SetBigInt stores b into e, reducing it modulo p as necessary. Any b is accepted, including negative and out-of-range values.
ecc/p384/arith.go:23
↓ 3 callersMethodSetBigInt
SetBigInt sets the receiver to x, and returns the receiver. Warning: operations on big.Int are not constant time. Do not use them for cryptography unl
group/group.go:118
↓ 3 callersMethodSetChainAddress
(i uint32)
sign/slhdsa/address.go:61
↓ 3 callersMethodSetIdentity
()
sign/ed25519/point.go:19
↓ 3 callersMethodSetupPSK
SetupPSK generates a new HPKE context used for PSK Mode encryption. Returns the Sealer and corresponding encapsulated key.
hpke/hpke.go:133
↓ 3 callersMethodSharedKeySize
Size of established shared keys.
kem/kem.go:58
↓ 3 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/dilithium/mode2/dilithium.go:54
↓ 3 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/dilithium/mode3/dilithium.go:54
↓ 3 callersFunctionSignedDigit
SignedDigit obtains the signed-digit recoding of n and returns a list L of digits such that n = sum( L[i]*2^(i*(w-1)) ), and each L[i] is an odd numbe
math/wnaf.go:21
↓ 3 callersMethodSize
Size returns size of the public key in bytes.
dh/sidh/sidh.go:137
↓ 3 callersMethodSize
Size returns size of the private key in bytes.
dh/sidh/sidh.go:166
↓ 3 callersFunctionSqr
Sqr calculates z = x^2 mod p.
math/fp25519/fp.go:202
↓ 3 callersMethodSqr
(x *Fp6)
ecc/bls12381/ff/fp6.go:73
↓ 3 callersMethodSqrt
Sqrt returns 1 and sets z=sqrt(x) only if x is a quadratic-residue; otherwise, returns 0 and z is unmodified.
ecc/bls12381/ff/fp.go:49
↓ 3 callersMethodString
()
abe/cpabe/tkn20/tkn20.go:113
↓ 3 callersMethodString
()
cipher/ascon/ascon.go:41
↓ 3 callersMethodString
()
vdaf/prio3/arith/fp64/fp.go:23
↓ 3 callersMethodString
()
sign/slhdsa/params.go:59
↓ 3 callersMethodString
()
blindsign/blindrsa/brsa.go:58
↓ 3 callersMethodStrip
Strip removes the higher-degree zero terms.
vdaf/prio3/arith/arith.go:135
↓ 3 callersFunctionSub
Sub calculates z = x-y mod p.
math/fp25519/fp.go:193
↓ 3 callersMethodSub
(x, y *Fp)
ecc/bls12381/ff/fp.go:41
↓ 3 callersMethodSuite
Suite returns the cipher suite corresponding to this context.
hpke/hpke.go:37
↓ 3 callersMethodToBytes
ToBytes stores P into a slice of bytes.
ecc/goldilocks/point.go:124
↓ 3 callersMethodToMont
Multiplies p in-place by the Montgomery factor 2¹⁶. Coefficients of p can be arbitrary. Resulting coefficients are bounded in absolute value by q.
pke/kyber/internal/common/poly.go:48
↓ 3 callersFunctionUint64Le2BigInt
Uint64Le2BigInt converts a little-endian slice x into a big number.
internal/conv/conv.go:75
↓ 3 callersMethodUnmarshalBinary
(data []byte)
abe/cpabe/tkn20/tkn20.go:61
↓ 3 callersMethodUnmarshalBinary
(data []byte)
abe/cpabe/tkn20/internal/tkn/tk.go:231
↓ 3 callersMethodUnmarshalBinary
UnmarshalBinary recovers a KeyShare from a slice of bytes, or returns an error if the encoding is invalid.
tss/rsa/keyshare.go:103
↓ 3 callersFunctionUnmarshalPEMPrivateKey
(data []byte)
pki/pki.go:91
↓ 3 callersMethodUnpackMLKEM
Unpacks pk from the given buffer. Returns an error if the buffer is not of the right size, or the public key is not normalized.
pke/kyber/kyber512/kyber.go:155
↓ 3 callersMethodVerifierLength
()
vdaf/prio3/internal/prio3/prio3.go:526
↓ 3 callersFunctionVerify
Verify returns true if the share s was produced by sharing a secret with threshold t and commitment of the secret c.
secretsharing/ss.go:109
↓ 3 callersFunctionVerify
Verify checks whether the given signature by pk on msg is valid. For Dilithium this is the top-level verification function. In ML-DSA, this is ML-DSA
sign/dilithium/mode2/internal/dilithium.go:273
↓ 3 callersFunctionVerify
Verify checks whether the given signature by pk on msg is valid. For Dilithium this is the top-level verification function. In ML-DSA, this is ML-DSA
sign/dilithium/mode3/internal/dilithium.go:271
↓ 3 callersFunctionVerify
Verify checks whether the given signature by pk on msg is valid. For Dilithium this is the top-level verification function. In ML-DSA, this is ML-DSA
sign/dilithium/mode5/internal/dilithium.go:273
↓ 3 callersFunctionVerify
Verify checks whether the proof attests that kG = [k]G. The base G, public key kG, and proof commitment must not be the identity element.
zk/dl/dl.go:87
↓ 3 callersMethodVerify
(a, ka, b, kb group.Element, p *Proof)
zk/dleq/dleq.go:244
↓ 3 callersMethodVerify
Verify verifies the input (message, signature) pair and produces an error upon failure.
blindsign/blindrsa/brsa.go:194
↓ 3 callersFunctionVerifyBlindSignature
VerifyBlindSignature verifies the signature of the hashed and encoded message against the input public key.
blindsign/blindrsa/internal/common/common.go:96
↓ 3 callersMethodWriteMessage
(msg []byte)
sign/slhdsa/state.go:257
↓ 3 callersFunctionX25519MLKEM768
Returns the hybrid KEM of ML-KEM-768 and X25519. https://www.ietf.org/archive/id/draft-kwiatkowski-tls-ecdhe-mlkem-01.html
kem/hybrid/hybrid.go:63
↓ 3 callersFunctionabsolute
absolute returns always a positive value.
ecc/p384/p384opt.go:178
↓ 3 callersFunctionadd
add calculates z = x + y. Assumes len(z) > max(len(x),len(y)).
ecc/goldilocks/scalar.go:40
↓ 3 callersFunctionaddP434
Compute z = x + y (mod p). go:noescape
dh/sidh/internal/p434/arith_decl.go:30
↓ 3 callersFunctionaddP503
Compute z = x + y (mod p). go:noescape
dh/sidh/internal/p503/arith_decl.go:30
↓ 3 callersFunctionaddP751
Compute z = x + y (mod p). go:noescape
dh/sidh/internal/p751/arith_decl.go:30
↓ 3 callersFunctionadlP434
Compute z = x + y, without reducing mod p. go:noescape
dh/sidh/internal/p434/arith_decl.go:40
↓ 3 callersFunctionadlP503
Compute z = x + y, without reducing mod p. go:noescape
dh/sidh/internal/p503/arith_decl.go:40
↓ 3 callersFunctionadlP751
Compute z = x + y, without reducing mod p. go:noescape
dh/sidh/internal/p751/arith_decl.go:40
↓ 3 callersFunctionassertDecapsulateErrors
(t *testing.T, header *ciphertextHeader, key *AttributesKey)
abe/cpabe/tkn20/internal/tkn/tk_test.go:268
↓ 3 callersFunctionbenchSike
* ------------------------------------------------------------------------- Benchmarking -------------------------------------------------------
dh/sidh/sike_test.go:459
↓ 3 callersFunctionblakeMac
(key []byte, msg []byte)
abe/cpabe/tkn20/internal/tkn/bk.go:48
↓ 3 callersMethodcalcNonce
()
hpke/aead.go:47
↓ 3 callersMethodchain
See FIPS 205 -- Section 5 -- Algorithm 5.
sign/slhdsa/wotsp.go:25
↓ 3 callersMethodclear
clear sets m to the zero matrix
abe/cpabe/tkn20/internal/tkn/matrixG2.go:67
↓ 3 callersMethodclear
clear sets a matrix to the all zero matrix
abe/cpabe/tkn20/internal/tkn/matrixG1.go:82
↓ 3 callersMethodclear
clear sets m to be the "zero" matrix
abe/cpabe/tkn20/internal/tkn/matrixGT.go:79
↓ 3 callersMethodclearCofactor
clearCofactor maps g to a point in the r-torsion subgroup. This method multiplies g times (1-z) rather than (z-1)^2/3, where z is the BLS12 parameter
ecc/bls12381/g1.go:185
↓ 3 callersMethodcneg
cneg conditionally negates the point if b=1.
ecc/goldilocks/twistPoint.go:23
↓ 3 callersFunctioncomputeLambda
computes Lagrange Interpolation for the shares i must be in {0..l} but not in S j must be in S
tss/rsa/rsa_threshold.go:315
↓ 3 callersFunctioncomputePolynomial
f(X) = Σ^{k-1}_{i=0} | a_i * X^i (mod m), where k = len(a).
tss/rsa/rsa_threshold.go:177
↓ 3 callersFunctioncondAddOrderN
condAddOrderN updates x = x+order if x is even, otherwise x remains unchanged.
ecc/fourq/point.go:40
↓ 3 callersMethodconformal
conformal returns true iff m and a have the same dimensions.
abe/cpabe/tkn20/internal/tkn/matrixG1.go:89
↓ 3 callersMethodconformal
conformal returns true iff m and a have the same dimensions.
abe/cpabe/tkn20/internal/tkn/matrixZp.go:139
↓ 3 callersFunctioncswapP434
If choice = 0, leave x,y unchanged. If choice = 1, set x,y = y,x. If choice is neither 0 nor 1 then behaviour is undefined. This function executes in
dh/sidh/internal/p434/arith_decl.go:25
↓ 3 callersFunctioncswapP503
If choice = 0, leave x,y unchanged. If choice = 1, set x,y = y,x. If choice is neither 0 nor 1 then behaviour is undefined. This function executes in
dh/sidh/internal/p503/arith_decl.go:25
↓ 3 callersFunctioncswapP751
If choice = 0, leave x,y unchanged. If choice = 1, set x,y = y,x. If choice is neither 0 nor 1 then behaviour is undefined. This function executes in
dh/sidh/internal/p751/arith_decl.go:25
↓ 3 callersFunctionctEqual
(x, y *Fp)
vdaf/prio3/arith/fp64/fp.go:156
↓ 3 callersFunctionctEqual
(x, y *Fp)
vdaf/prio3/arith/fp128/fp.go:156
↓ 3 callersFunctionctIsNonZero64
ctIsNonZero64 returns 0 in case i == 0, otherwise it returns 1. Constant-time.
dh/csidh/fp511.go:17
↓ 3 callersMethoddecrypt
decrypt uses SIKE private key to decrypt ciphertext. Returns plaintext in case decryption succeeds or error in case unexpected input was provided. Con
dh/sidh/sike.go:265
↓ 3 callersMethoddivBy4
divBy4 calculates z = x/4 mod order.
ecc/goldilocks/scalar.go:150
↓ 3 callersMethoddoubleMult
doubleMult returns P=mG+nQ.
sign/ed25519/mult.go:146
↓ 3 callersFunctionencrypt
(c *big.Int, N *big.Int, e *big.Int, m *big.Int)
blindsign/blindrsa/internal/common/rsa.go:81
↓ 3 callersMethodencrypt
encrypt uses SIKE public key to encrypt plaintext. Requires cryptographically secure PRNG. Returns ciphertext in case encryption succeeds. Returns err
dh/sidh/sike.go:243
↓ 3 callersFunctionerrFirst
(e ...error)
ecc/bls12381/ff/common.go:20
↓ 3 callersMethodevalIsogG1
evalIsogG1 calculates g = g1Isog11(p), where g1Isog11 is an isogeny of degree 11 to the curve used in G1.
ecc/bls12381/g1Isog.go:84
← previousnext →901–1,000 of 5,182, ranked by callers