MCPcopy Create free account
hub / github.com/C2SP/CCTV / genVector

Function genVector

ML-KEM/modulus/modulus.go:54–66  ·  view source on GitHub ↗
(f func([][n]uint16))

Source from the content-addressed store, hash-verified

52}
53
54func genVector(f func([][n]uint16)) {
55 t := make([][n]uint16, *kFlag)
56 for i := range t {
57 t[i] = r[i]
58 }
59 f(t)
60 out := make([]byte, 0)
61 for i := range t {
62 out = polyByteEncode(out, t[i])
63 }
64 out = append(out, ρ...)
65 fmt.Printf("%x\n", out)
66}
67
68var r = [4][n]uint16{randomPoly(), randomPoly(), randomPoly(), randomPoly()}
69var ρ = make([]byte, 32)

Callers 1

mainFunction · 0.85

Calls 1

polyByteEncodeFunction · 0.85

Tested by

no test coverage detected