MCPcopy Create free account

hub / github.com/cloudflare/circl / functions

Functions5,182 in github.com/cloudflare/circl

↓ 2 callersMethodAdd
(x, y *Fp6)
ecc/bls12381/ff/fp6.go:17
↓ 2 callersMethodAdd
Sets v to w + u. Does not normalize.
sign/mldsa/mldsa65/internal/vec.go:126
↓ 2 callersMethodAdd
Sets v to w + u. Does not normalize.
sign/mldsa/mldsa44/internal/vec.go:126
↓ 2 callersMethodAdd
Sets v to w + u. Does not normalize.
sign/mldsa/mldsa87/internal/vec.go:126
↓ 2 callersMethodAdd
Sets v to w + u. Does not normalize.
sign/dilithium/mode2/internal/vec.go:126
↓ 2 callersMethodAdd
Sets v to w + u. Does not normalize.
sign/dilithium/mode3/internal/vec.go:124
↓ 2 callersMethodAdd
Sets v to w + u. Does not normalize.
sign/dilithium/mode5/internal/vec.go:126
↓ 2 callersMethodAdd
Sets p to a + b. Does not normalize polynomials.
sign/internal/dilithium/amd64.go:58
↓ 2 callersFunctionBenchInner
(b *testing.B, sigIDs []ID)
sign/slhdsa/all_test.go:33
↓ 2 callersFunctionBigInt2Uint64Le
BigInt2Uint64Le stores a positive big.Int number x into a little-endian slice z. The slice is modified if the bitlength of x <= 8*len(z) (padding with
internal/conv/conv.go:125
↓ 2 callersMethodBytes
Bytes packs the public key.
sign/eddilithium3/eddilithium.go:146
↓ 2 callersMethodBytes
Bytes packs the public key.
sign/eddilithium2/eddilithium.go:151
↓ 2 callersFunctionBytesBe2Uint64Le
BytesBe2Uint64Le converts a big-endian slice x to a little-endian slice of uint64.
internal/conv/conv.go:43
↓ 2 callersMethodCMov
(x, y *Fp2, b int)
ecc/bls12381/ff/fp2.go:90
↓ 2 callersMethodCSelect
CSelect sets the receiver to x if b=1; sets the receiver to y if b=0; otherwise panics if b is not 0 or 1. In all the cases, it returns the receiver.
group/group.go:126
↓ 2 callersFunctionCalcAplus2Over4
Helper function for RightToLeftLadder(). Returns A+2C / 4.
dh/sidh/internal/p434/curve.go:96
↓ 2 callersFunctionCalcAplus2Over4
Helper function for RightToLeftLadder(). Returns A+2C / 4.
dh/sidh/internal/p751/curve.go:96
↓ 2 callersFunctionCalcAplus2Over4
Helper function for RightToLeftLadder(). Returns A+2C / 4.
dh/sidh/internal/p503/curve.go:96
↓ 2 callersMethodCiphertextSize
Returns size of resulting ciphertext.
dh/sidh/sike.go:204
↓ 2 callersMethodCiphertextSize
()
kem/sike/sikep503/sike.go:53
↓ 2 callersMethodCiphertextSize
()
kem/sike/templates/pkg.templ.go:58
↓ 2 callersMethodCiphertextSize
()
kem/sike/sikep434/sike.go:53
↓ 2 callersMethodCiphertextSize
()
kem/sike/sikep751/sike.go:53
↓ 2 callersMethodCjg
()
ecc/bls12381/ff/fp4.go:26
↓ 2 callersMethodClearCofactor
()
ecc/fourq/point.go:330
↓ 2 callersMethodCombinedMult
CombinedMult returns mG+nP, where G is the generator point. This function is non-constant time. Like ScalarMult, the result equals [m]G+[n]P only whe
ecc/goldilocks/curve.go:84
↓ 2 callersFunctionConvertHashFunction
ConvertHashFunction converts a crypto.Hash function to an equivalent hash.Hash type.
blindsign/blindrsa/internal/common/common.go:19
↓ 2 callersFunctionCouldDecrypt
(ciphertext []byte, a *Attributes)
abe/cpabe/tkn20/internal/tkn/bk.go:229
↓ 2 callersMethodDecapsulateTo
DecapsulateTo computes the shared key which is encapsulated in ct for the private key. Panics if ct or ss are not of length CiphertextSize and Shared
kem/xwing/xwing.go:270
↓ 2 callersFunctionDecryptAndCheck
DecryptAndCheck checks that the private key operation is consistent (fault attack detection).
blindsign/blindrsa/internal/common/common.go:80
↓ 2 callersMethodDerive
Expands the given seed to the corresponding matrix A or its transpose Aᵀ.
pke/kyber/kyber1024/internal/mat.go:13
↓ 2 callersMethodDerive
Expands the given seed to the corresponding matrix A or its transpose Aᵀ.
pke/kyber/kyber512/internal/mat.go:11
↓ 2 callersMethodDerive
Expands the given seed to the corresponding matrix A or its transpose Aᵀ.
pke/kyber/kyber768/internal/mat.go:13
↓ 2 callersFunctionDeriveKey
DeriveKey generates a private key from a 32-byte seed and an optional info string.
oprf/keys.go:103
↓ 2 callersMethodDeriveKeyPair
(seed []byte)
kem/hybrid/xkem.go:112
↓ 2 callersMethodDeriveKeyPair
(seed []byte)
kem/hybrid/ckem.go:128
↓ 2 callersMethodDeriveNoise
Samples v[i] from a centered binomial distribution with given η, seed and nonce+i. Essentially CBD_η(PRF(seed, nonce+i)) from the specification.
pke/kyber/kyber1024/internal/vec.go:16
↓ 2 callersMethodDeriveNoise
Samples v[i] from a centered binomial distribution with given η, seed and nonce+i. Essentially CBD_η(PRF(seed, nonce+i)) from the specification.
pke/kyber/kyber512/internal/vec.go:14
↓ 2 callersMethodDeriveNoise
Samples v[i] from a centered binomial distribution with given η, seed and nonce+i. Essentially CBD_η(PRF(seed, nonce+i)) from the specification.
pke/kyber/kyber768/internal/vec.go:16
↓ 2 callersMethodDeterministicBlind
(inputs [][]byte, blinds []Blind)
oprf/oprf_test.go:17
↓ 2 callersMethodDigit
Digit returns the (v,e)-th digit and its sign.
math/mlsbset/power.go:31
↓ 2 callersMethodDotProduct
DotProduct calculates z[i] = z[i] * x[i].
vdaf/prio3/arith/arith.go:90
↓ 2 callersMethodEncapsulateTo
EncapsulateTo generates a shared key and ciphertext that contains it for the public key using randomness from seed and writes the shared key to ss and
kem/kyber/kyber1024/kyber.go:106
↓ 2 callersMethodEncapsulateTo
EncapsulateTo generates a shared key and ciphertext that contains it for the public key using randomness from seed and writes the shared key to ss and
kem/kyber/kyber512/kyber.go:106
↓ 2 callersMethodEncapsulateTo
EncapsulateTo generates a shared key and ciphertext that contains it for the public key using randomness from seed and writes the shared key to ss and
kem/kyber/kyber768/kyber.go:106
↓ 2 callersMethodEncapsulateTo
EncapsulateTo generates a shared key and a ciphertext containing said key from the public key and the randomness from seed and writes the shared key t
kem/frodo/frodo640shake/frodo.go:160
↓ 2 callersMethodEncapsulateTo
EncapsulateTo generates a shared key and ciphertext that contains it for the public key using randomness from seed and writes the shared key to ss and
kem/mlkem/mlkem768/kyber.go:103
↓ 2 callersMethodEncapsulateTo
EncapsulateTo generates a shared key and ciphertext that contains it for the public key using randomness from seed and writes the shared key to ss and
kem/mlkem/mlkem1024/kyber.go:103
↓ 2 callersMethodEncapsulateTo
EncapsulateTo generates a shared key and ciphertext that contains it for the public key using randomness from seed and writes the shared key to ss and
kem/mlkem/mlkem512/kyber.go:103
↓ 2 callersMethodEncapsulateTo
EncapsulateTo generates a shared key and ciphertext that contains it for the public key using randomness from seed and writes the shared key to ss and
kem/xwing/xwing.go:223
↓ 2 callersMethodEncapsulationSeedSize
()
kem/hybrid/xkem.go:46
↓ 2 callersMethodEncapsulationSeedSize
()
kem/hybrid/ckem.go:76
↓ 2 callersFunctionEncodeMessageEMSAPSS
EncodeMessageEMSAPSS hashes the input message and then encodes it using PSS encoding.
blindsign/blindrsa/internal/common/common.go:33
↓ 2 callersMethodEval
(out *E, input V)
vdaf/prio3/internal/flp/gadgets.go:122
↓ 2 callersMethodEvaluate
(x group.Scalar)
math/polynomial/polynomial.go:112
↓ 2 callersMethodExceeds
Checks whether the "supnorm" (see sec 2.1 of the spec) of p is equal or greater than the given bound. Requires the coefficients of p to be normalized
sign/internal/dilithium/amd64.go:135
↓ 2 callersMethodExp
Exp calculates z=x^n, where n is the exponent in big-endian order.
ecc/bls12381/ff/fp12.go:65
↓ 2 callersMethodExpVarTime
ExpVarTime calculates z=x^n, where n is the exponent in big-endian order.
ecc/bls12381/ff/fp2.go:96
↓ 2 callersMethodExpVarTime
ExpVarTime calculates z=x^n, where n is the exponent in big-endian order.
ecc/bls12381/ff/fp.go:72
↓ 2 callersMethodExport
Assumes key is exported as encoded in Montgomery domain.
dh/csidh/csidh.go:268
↓ 2 callersMethodExport
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:160
↓ 2 callersMethodExtract
Extract derives a pseudorandom key from a high-entropy, secret input and a salt. The size of the output is determined by KDF.ExtractSize.
hpke/algs.go:125
↓ 2 callersMethodExtractAttributeValuePairs
()
abe/cpabe/tkn20/tkn20.go:121
↓ 2 callersMethodFixedBlind
FixedBlind initializes the partially blind RSA protocol using an input message, metadata, and randomness values.
blindsign/blindrsa/partiallyblindrsa/pbrsa.go:189
↓ 2 callersMethodFromBytes
(k []byte)
sign/ed25519/point.go:54
↓ 2 callersFunctionGenerateBlindingFactor
GenerateBlindingFactor generates a blinding factor and its multiplicative inverse to use for RSA blinding.
blindsign/blindrsa/internal/common/common.go:45
↓ 2 callersFunctionGenerateKey
GenerateKey generates a public/private key pair using entropy from rand. If rand is nil, crypto/rand.Reader will be used.
sign/eddilithium3/eddilithium.go:44
↓ 2 callersFunctionGenerateKey
GenerateKey generates a public/private key pair using entropy from rand. If rand is nil, crypto/rand.Reader will be used.
sign/eddilithium2/eddilithium.go:44
↓ 2 callersFunctionGenerateKeyPair
GenerateKeyPair generates public and private keys using entropy from rand. If rand is nil, crypto/rand.Reader will be used.
kem/xwing/xwing.go:146
↓ 2 callersFunctionGenerateKeyPair
Deprecated: not cryptographically secure.
kem/sike/sikep503/sike.go:101
↓ 2 callersFunctionGenerateKeyPair
Deprecated: not cryptographically secure.
kem/sike/templates/pkg.templ.go:106
↓ 2 callersFunctionGenerateKeyPair
Deprecated: not cryptographically secure.
kem/sike/sikep434/sike.go:101
↓ 2 callersFunctionGenerateKeyPair
Deprecated: not cryptographically secure.
kem/sike/sikep751/sike.go:101
↓ 2 callersMethodGenerator
Generator returns the generator point.
ecc/goldilocks/curve.go:44
↓ 2 callersMethodGetParams
GetParams returns the complementary parameters of the encoding.
math/mlsbset/mlsbset.go:121
↓ 2 callersFunctionGetSuite
(identifier string)
oprf/oprf.go:103
↓ 2 callersMethodHash
(_, _ []byte)
ecc/bls12381/hash_test.go:53
↓ 2 callersMethodHash
Hash produces an element of G1 from the hash of an input byte string and an optional domain separation tag. This function is safe to use when a random
ecc/bls12381/g1.go:375
↓ 2 callersMethodHashMsg
See FIPS-205, Section 11.1 and Section 11.2.
sign/slhdsa/params.go:124
↓ 2 callersMethodIdentity
Identity returns the identity point.
ecc/goldilocks/curve.go:10
↓ 2 callersMethodIdentity
Identity returns the identity point.
ecc/goldilocks/twist.go:16
↓ 2 callersMethodInit
(p *params, cur *cursor, pkSeed []byte)
sign/slhdsa/state.go:128
↓ 2 callersFunctionInnerTest
(t *testing.T, sigIDs []ID)
sign/slhdsa/all_test.go:19
↓ 2 callersFunctionInv
Inv calculates z = 1/x mod p.
math/fp25519/fp.go:135
↓ 2 callersFunctionInv
Inv calculates z = 1/x mod p.
math/fp448/fp.go:84
↓ 2 callersMethodInv
(x *Fp6)
ecc/bls12381/ff/fp6.go:103
↓ 2 callersMethodInvNTT
Execute an in-place inverse NTT and multiply by Montgomery factor R Assumes the coefficients are in Montgomery representation and bounded by 2*Q. Th
sign/internal/dilithium/amd64.go:30
↓ 2 callersFunctionInvSqrt
InvSqrt calculates z = sqrt(x/y) iff x/y is a quadratic-residue, which is indicated by returning isQR = true. Otherwise, when x/y is a quadratic non-r
math/fp25519/fp.go:51
↓ 2 callersFunctionInvSqrt
InvSqrt calculates z = sqrt(x/y) iff x/y is a quadratic-residue. If so, isQR = true; otherwise, isQR = false, since x/y is a quadratic non-residue, an
math/fp448/fp.go:63
↓ 2 callersFunctionIsEnabledX2
IsEnabledX2 returns true if the architecture supports a two-way SIMD implementation provided in this package.
simd/keccakf1600/f1600x.go:71
↓ 2 callersMethodIsEqual
(x *Fp6)
ecc/bls12381/ff/fp6.go:13
↓ 2 callersMethodIsEqual
(x *URoot)
ecc/bls12381/ff/uroot.go:14
↓ 2 callersMethodIsIdentity
()
ecc/fourq/point.go:225
↓ 2 callersMethodIsIdentity
()
group/short.go:139
↓ 2 callersMethodIsOnCurve
IsOnCurve reports whether the given (x,y) lies on the curve.
ecc/p384/p384opt.go:19
↓ 2 callersFunctionIsSafePrime
IsSafePrime reports whether p is (probably) a safe prime. The prime p=2*q+1 is safe prime if both p and q are primes. Note that ProbablyPrime is not s
math/primes.go:13
↓ 2 callersMethodIsValid
IsValid returns true if the parameter set is supported.
sign/slhdsa/params.go:57
↓ 2 callersMethodIsValid
IsValid returns true if the KEM identifier is supported by the HPKE package.
hpke/algs.go:47
↓ 2 callersFunctionIsZero
IsZero returns true if x is equal to 0.
math/fp25519/fp.go:40
↓ 2 callersFunctionIsZero
IsZero returns true if x is equal to 0.
math/fp448/fp.go:43
← previousnext →1,101–1,200 of 5,182, ranked by callers