Versions in this module Expand all Collapse all v2 v2.4.0 Jan 23, 2025 v2.3.0 Nov 8, 2024 v2.2.0 May 6, 2024 v2.1.0 Jun 9, 2023 v2.0.0 Jan 20, 2022 Changes in this version + var F *big.Int + func AddVectors(vs ...[]*big.Int) []*big.Int + func Coefficients(S []*big.Int) []*big.Int + func InField(x *big.Int) bool + func IsRoot(m *big.Int, a []*big.Int) bool + func SRMix(m *big.Int, pads []*big.Int) []*big.Int + func SRMixPads(kp [][]byte, my int) []*big.Int + func SharedKeys(kx *KX, ecdhPubs []*x25519.Public, cts []*PQCiphertext, sid []byte, ...) (sr [][][]byte, dc [][]*Vec, err error) + type KX struct + PQCleartexts []*[sntrup4591761.SharedKeySize]byte + PQPublic *[sntrup4591761.PublicKeySize]byte + PQSecret *[sntrup4591761.PrivateKeySize]byte + X25519 *x25519.KX + func NewKX(prng io.Reader) (*KX, error) + func (kx *KX) Encapsulate(prng io.Reader, pubkeys []*PQPublicKey, my int) ([]*PQCiphertext, error) + type PQCiphertext = [sntrup4591761.CiphertextSize]byte + type PQPublicKey = [sntrup4591761.PublicKeySize]byte + type PQSecretKey = [sntrup4591761.PrivateKeySize]byte + type Vec struct + Data []byte + Msize int + N int + func DCMix(pads *Vec, m []byte, slot int) *Vec + func DCMixPads(kp []*Vec, msize, my int) *Vec + func NewVec(n, msize int) *Vec + func XorVectors(vs []*Vec) *Vec + func (v *Vec) Equals(other *Vec) bool + func (v *Vec) IsDim(n, msize int) bool + func (v *Vec) M(i int) []byte + func (v *Vec) String() string + func (v *Vec) Xor(src1, src2 *Vec) Other modules containing this package decred.org/cspp