MCPcopy Create free account

hub / github.com/cloudflare/circl / functions

Functions5,182 in github.com/cloudflare/circl

↓ 4 callersMethodPack
Packs pk to buf. Panics if buf is not of size PublicKeySize.
kem/kyber/kyber512/kyber.go:238
↓ 4 callersMethodPack
Packs pk to buf. Panics if buf is not of size PublicKeySize.
kem/frodo/frodo640shake/frodo.go:382
↓ 4 callersMethodParams
Params returns the parameters for the curve. Note: The value returned by this function fallbacks to the stdlib implementation of elliptic curve operat
ecc/p384/p384.go:23
↓ 4 callersMethodParams
()
vdaf/prio3/internal/prio3/prio3.go:501
↓ 4 callersMethodPkgPath
()
sign/dilithium/gen.go:40
↓ 4 callersFunctionPolyDecompose
Splits each of the coefficients of p using decompose.
sign/mldsa/mldsa65/internal/rounding.go:138
↓ 4 callersFunctionPolyDecompose
Splits each of the coefficients of p using decompose.
sign/mldsa/mldsa44/internal/rounding.go:138
↓ 4 callersFunctionPolyDecompose
Splits each of the coefficients of p using decompose.
sign/mldsa/mldsa87/internal/rounding.go:138
↓ 4 callersFunctionPolyDecompose
Splits each of the coefficients of p using decompose.
sign/dilithium/mode2/internal/rounding.go:138
↓ 4 callersFunctionPolyDecompose
Splits each of the coefficients of p using decompose.
sign/dilithium/mode3/internal/rounding.go:136
↓ 4 callersFunctionPolyDecompose
Splits each of the coefficients of p using decompose.
sign/dilithium/mode5/internal/rounding.go:138
↓ 4 callersFunctionPolyDeriveUniformLeGamma1
Sample p uniformly with coefficients in (-γ₁,…,γK1s] using the given seed and nonce. p will be normalized.
sign/mldsa/mldsa65/internal/sample.go:197
↓ 4 callersFunctionPolyDeriveUniformLeGamma1
Sample p uniformly with coefficients in (-γ₁,…,γK1s] using the given seed and nonce. p will be normalized.
sign/mldsa/mldsa44/internal/sample.go:197
↓ 4 callersFunctionPolyDeriveUniformLeGamma1
Sample p uniformly with coefficients in (-γ₁,…,γK1s] using the given seed and nonce. p will be normalized.
sign/mldsa/mldsa87/internal/sample.go:197
↓ 4 callersFunctionPolyDeriveUniformLeqEta
Sample p uniformly with coefficients of norm less than or equal η, using the given seed and nonce. p will not be normalized, but will have coefficien
sign/dilithium/mode2/internal/sample.go:129
↓ 4 callersFunctionPolyDeriveUniformLeqEta
Sample p uniformly with coefficients of norm less than or equal η, using the given seed and nonce. p will not be normalized, but will have coefficien
sign/dilithium/mode3/internal/sample.go:127
↓ 4 callersFunctionPolyDeriveUniformLeqEta
Sample p uniformly with coefficients of norm less than or equal η, using the given seed and nonce. p will not be normalized, but will have coefficien
sign/dilithium/mode5/internal/sample.go:129
↓ 4 callersFunctionPolyUnpackLeGamma1
Sets p to the polynomial packed into buf by PolyPackLeGamma1. p will be normalized.
sign/mldsa/mldsa65/internal/pack.go:146
↓ 4 callersFunctionPolyUnpackLeGamma1
Sets p to the polynomial packed into buf by PolyPackLeGamma1. p will be normalized.
sign/mldsa/mldsa44/internal/pack.go:146
↓ 4 callersFunctionPolyUnpackLeGamma1
Sets p to the polynomial packed into buf by PolyPackLeGamma1. p will be normalized.
sign/mldsa/mldsa87/internal/pack.go:146
↓ 4 callersFunctionPolyUnpackLeGamma1
Sets p to the polynomial packed into buf by PolyPackLeGamma1. p will be normalized.
sign/dilithium/mode2/internal/pack.go:146
↓ 4 callersFunctionPolyUnpackLeGamma1
Sets p to the polynomial packed into buf by PolyPackLeGamma1. p will be normalized.
sign/dilithium/mode3/internal/pack.go:144
↓ 4 callersFunctionPolyUnpackLeGamma1
Sets p to the polynomial packed into buf by PolyPackLeGamma1. p will be normalized.
sign/dilithium/mode5/internal/pack.go:146
↓ 4 callersFunctionPow2k
Given the curve parameters, xP = x(P), computes xP = x([2^k]P) Safe to overlap xP, x2P.
dh/sidh/internal/p434/curve.go:167
↓ 4 callersFunctionPow2k
Given the curve parameters, xP = x(P), computes xP = x([2^k]P) Safe to overlap xP, x2P.
dh/sidh/internal/p751/curve.go:167
↓ 4 callersFunctionPow2k
Given the curve parameters, xP = x(P), computes xP = x([2^k]P) Safe to overlap xP, x2P.
dh/sidh/internal/p503/curve.go:167
↓ 4 callersFunctionProdPair
ProdPair calculates the product of pairings: e = \Prod_i pair(Pi, Qi)^ni = \Prod_i pair(ni*Pi, Qi) = \Prod_i pair(Pi, ni*Qi) For efficiency,
ecc/bls12381/pair.go:82
↓ 4 callersMethodProveBatchWithRandomness
( k group.Scalar, a, ka group.Element, bi, kbi []group.Element, rnd group.Scalar, )
zk/dleq/dleq.go:72
↓ 4 callersMethodRand
()
pke/kyber/internal/common/ntt_test.go:33
↓ 4 callersMethodReduceLe2Q
Applies Poly.ReduceLe2Q() componentwise.
sign/mldsa/mldsa65/internal/vec.go:277
↓ 4 callersMethodReduceLe2Q
Applies Poly.ReduceLe2Q() componentwise.
sign/mldsa/mldsa44/internal/vec.go:277
↓ 4 callersMethodReduceLe2Q
Applies Poly.ReduceLe2Q() componentwise.
sign/mldsa/mldsa87/internal/vec.go:277
↓ 4 callersMethodReduceLe2Q
Applies Poly.ReduceLe2Q() componentwise.
sign/dilithium/mode2/internal/vec.go:277
↓ 4 callersMethodReduceLe2Q
Applies Poly.ReduceLe2Q() componentwise.
sign/dilithium/mode3/internal/vec.go:275
↓ 4 callersMethodReduceLe2Q
Applies Poly.ReduceLe2Q() componentwise.
sign/dilithium/mode5/internal/vec.go:277
↓ 4 callersMethodReduceLe2Q
Reduces each of the coefficients to <2q.
sign/internal/dilithium/amd64.go:103
↓ 4 callersMethodRest
()
sign/slhdsa/state.go:348
↓ 4 callersMethodRound1Receiver
Round 1 ---- sender should send A to receiver ---- Input: myGroup, the group we operate in Input: choice, the receiver choice bit Input: index, the in
ot/simot/simotlocal.go:94
↓ 4 callersMethodRound2Sender
Round 2 ---- receiver should send B to sender ---- Input: B from the receiver Output: e0, e1, encryption of m0 and m1 under key k0, k1 Round2Sender mu
ot/simot/simotlocal.go:120
↓ 4 callersFunctionSampleQn
SampleQn returns an element of Qn (the subgroup of squares in (Z/nZ)*). SampleQn will return error for any error returned by crypto/rand.Int.
zk/qndleq/qndleq.go:41
↓ 4 callersMethodScalarBaseMult
ScalarBaseMult returns kG where G is the generator point. This function runs in constant time.
ecc/goldilocks/curve.go:74
↓ 4 callersMethodScalarBaseMult
(scalar *[Size]byte)
ecc/fourq/point.go:181
↓ 4 callersMethodScalarMult
scalarMult calculates P = k*Q.
ecc/fourq/point.go:87
↓ 4 callersFunctionScalarOrder
ScalarOrder is the order of the scalar field of the pairing groups, order is returned as a big-endian slice. ScalarOrder = 0x73eda753299d7d483339d80
ecc/bls12381/ff/scalar.go:41
↓ 4 callersMethodSetBinderBytes
(binder ...[]byte)
vdaf/prio3/internal/prio3/xof.go:79
↓ 4 callersMethodSetMessage
(msg []byte)
sign/slhdsa/state.go:144
↓ 4 callersMethodSetRootOfUnityTwoN
Set the element to the principal root of unity of order 2^n.
vdaf/prio3/arith/arith.go:40
↓ 4 callersMethodSetTreeAddress
(t [3]uint32)
sign/slhdsa/address.go:74
↓ 4 callersMethodSetup
Setup generates a new HPKE context used for Base Mode encryption. Setup takes an encapsulated key and returns an Opener.
hpke/hpke.go:170
↓ 4 callersFunctionShared
Shared calculates a shared key k from Alice's secret and Bob's public key. Returns true on success. The public key is decoded leniently (see fourq.Po
dh/curve4q/curve4Q.go:24
↓ 4 callersFunctionSignPh
SignPh creates a signature of a message with private key and context. This function supports the signature variant defined in RFC-8032: Ed25519ph, mea
sign/ed25519/ed25519.go:303
↓ 4 callersFunctionSignPh
SignPh creates a signature of a message given a keypair. This function supports the signature variant defined in RFC-8032: Ed448ph, meaning it interna
sign/ed448/ed448.go:288
↓ 4 callersFunctionSignRandomized
[SignRandomized] returns a random signature of the message with the specified context. It returns an error if it fails reading from the random source.
sign/slhdsa/slhdsa.go:68
↓ 4 callersFunctionSignTo
SignTo signs the given message and writes the signature into signature. For Dilithium this is the top-level signing function. For ML-DSA this is ML-D
sign/dilithium/mode2/internal/dilithium.go:340
↓ 4 callersFunctionSignTo
SignTo signs the given message and writes the signature into signature. For Dilithium this is the top-level signing function. For ML-DSA this is ML-D
sign/dilithium/mode3/internal/dilithium.go:338
↓ 4 callersFunctionSignTo
SignTo signs the given message and writes the signature into signature. For Dilithium this is the top-level signing function. For ML-DSA this is ML-D
sign/dilithium/mode5/internal/dilithium.go:340
↓ 4 callersFunctionSignWithCtx
SignWithCtx creates a signature of a message with private key and context. This function supports the signature variant defined in RFC-8032: Ed25519ct
sign/ed25519/ed25519.go:319
↓ 4 callersMethodSignatureSize
Size of signatures.
sign/sign.go:87
↓ 4 callersMethodToAffine
ToAffine returns the x,y affine coordinates of P.
ecc/goldilocks/point.go:111
↓ 4 callersFunctionUint64Le2Hex
Uint64Le2Hex returns an hexadecimal string of a number stored in a little-endian order slice x.
internal/conv/conv.go:109
↓ 4 callersMethodUnmarshal
Unmarshal retrieves a point P from the input buffer. On success, returns true. Decoding is lenient; distinct byte strings decode to the same point. C
ecc/fourq/point.go:255
↓ 4 callersMethodUnmarshalBinary
UnmarshalBinary converts a byte array outputted from Marshall into a SignShare or returns an error if the value is invalid
tss/rsa/signShare.go:73
↓ 4 callersMethodUnpack
Sets pk to the public key encoded in buf.
sign/mldsa/mldsa65/dilithium.go:135
↓ 4 callersMethodUnpack
Sets pk to the public key encoded in buf.
sign/mldsa/mldsa44/dilithium.go:135
↓ 4 callersMethodUnpack
Sets pk to the public key encoded in buf.
sign/mldsa/mldsa87/dilithium.go:135
↓ 4 callersMethodUnpack
Sets pk to the public key encoded in buf.
sign/dilithium/mode2/dilithium.go:79
↓ 4 callersMethodUnpack
Sets pk to the public key encoded in buf.
sign/dilithium/mode3/dilithium.go:79
↓ 4 callersMethodUnpack
Sets pk to the public key encoded in buf.
sign/dilithium/mode5/dilithium.go:79
↓ 4 callersMethodUnpack
Unpack sets sk to the private key encoded in buf.
sign/eddilithium3/eddilithium.go:122
↓ 4 callersMethodUnpack
Unpack sets sk to the private key encoded in buf.
sign/eddilithium2/eddilithium.go:127
↓ 4 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/mldsa/mldsa65/internal/dilithium.go:273
↓ 4 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/mldsa/mldsa44/internal/dilithium.go:273
↓ 4 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/mldsa/mldsa87/internal/dilithium.go:273
↓ 4 callersFunctionVerify
Verify checks whether the given signature by pk on msg is valid.
sign/eddilithium3/eddilithium.go:90
↓ 4 callersFunctionVerify
Verify checks whether the given signature by pk on msg is valid.
sign/eddilithium2/eddilithium.go:96
↓ 4 callersFunctionVerifyAggregate
VerifyAggregate returns true if the aggregated signature is valid for the list of messages and public keys provided. The slices must have equal size a
sign/bls/bls.go:389
↓ 4 callersMethodVerifyBatch
(a, ka group.Element, bi, kbi []group.Element, p *Proof)
zk/dleq/dleq.go:248
↓ 4 callersMethodVerifyFinalize
(input, expectedOutput []byte)
oprf/oprf_test.go:34
↓ 4 callersFunctionVerifyPh
VerifyPh returns true if the signature is valid. Failure cases are invalid signature, or when the public key cannot be decoded. This function supports
sign/ed25519/ed25519.go:413
↓ 4 callersFunctionVerifyPh
VerifyPh returns true if the signature is valid. Failure cases are invalid signature, or when the public key cannot be decoded. This function supports
sign/ed448/ed448.go:386
↓ 4 callersFunctionVerifyWithCtx
VerifyWithCtx returns true if the signature is valid. Failure cases are invalid signature, or when the public key cannot be decoded, or when context i
sign/ed25519/ed25519.go:423
↓ 4 callersMethodadd
add calculates P=Q+R such that Q and R are different than the identity point. This function can be used for doublings.
ecc/p384/point.go:161
↓ 4 callersMethodadd
(Q *pointR2)
sign/ed25519/point.go:113
↓ 4 callersMethodaddGeneric
Sets p to a + b. Does not normalize coefficients.
pke/kyber/internal/common/poly.go:13
↓ 4 callersMethodaddGeneric
Sets p to a + b. Does not normalize polynomials.
sign/internal/dilithium/poly.go:32
↓ 4 callersMethodaddressSize
()
sign/slhdsa/address.go:30
↓ 4 callersFunctionaffinize
affinize converts an entire slice to affine at once handling the points at the infinity.
ecc/bls12381/g1.go:404
↓ 4 callersFunctionbitflip
For each lane in a that has a 1 on ith bit of its index, swap it with the corresponding lane in b where this 1 has been replaced by a 0. For instance
pke/kyber/internal/common/asm/src.go:138
↓ 4 callersMethodblockSize
blockSize = 8 for Ascon128 and Ascon80pq, or 16 for Ascon128a.
cipher/ascon/ascon.go:170
↓ 4 callersMethodbuf
()
internal/sha3/sha3.go:23
↓ 4 callersMethodcalcDH
(dh []byte, sk kem.PrivateKey, pk kem.PublicKey)
hpke/kembase.go:15
↓ 4 callersFunctioncheckCiphertextFormat
(ciphertext []byte)
abe/cpabe/tkn20/internal/tkn/bk.go:142
↓ 4 callersMethodcompleteAdd
add calculates P=Q+R using complete addition formula for prime groups.
ecc/p384/point.go:334
↓ 4 callersFunctioncompressedPolySize
⌈(256 d)/8⌉
pke/kyber/kyber1024/internal/vec.go:113
↓ 4 callersFunctioncompressedPolySize
⌈(256 d)/8⌉
pke/kyber/kyber512/internal/vec.go:111
↓ 4 callersFunctioncompressedPolySize
⌈(256 d)/8⌉
pke/kyber/kyber768/internal/vec.go:113
↓ 4 callersFunctionctUint64Eq
ctUint64Eq returns 1 if the two slices have equal contents and 0 otherwise.
ecc/bls12381/ff/common.go:73
↓ 4 callersFunctiondecapsulate
Decapsulate decapsulates
abe/cpabe/tkn20/internal/tkn/tk.go:723
↓ 4 callersFunctiondecompose
Splits 0 ≤ a < q into a₀ and a₁ with a = a₁*α + a₀ with -α/2 < a₀ ≤ α/2, except for when we would have a₁ = (q-1)/α in which case a₁=0 is taken and -α
sign/mldsa/mldsa65/internal/rounding.go:13
↓ 4 callersFunctiondecompose
Splits 0 ≤ a < q into a₀ and a₁ with a = a₁*α + a₀ with -α/2 < a₀ ≤ α/2, except for when we would have a₁ = (q-1)/α in which case a₁=0 is taken and -α
sign/mldsa/mldsa44/internal/rounding.go:13
← previousnext →601–700 of 5,182, ranked by callers