We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5da4a63 commit 23491bdCopy full SHA for 23491bd
sign/internal/dilithium/generic.go
@@ -79,3 +79,11 @@ func (p *Poly) Exceeds(bound uint32) bool {
79
func (p *Poly) MulBy2toD(q *Poly) {
80
p.mulBy2toDGeneric(q)
81
}
82
+
83
+// Splits p into p1 and p0 such that [i]p1 * 2ᴰ + [i]p0 = [i]p
84
+// with -2ᴰ⁻¹ < [i]p0 ≤ 2ᴰ⁻¹. Returns p0 + Q and p1.
85
+//
86
+// Requires the coefficients of p to be normalized.
87
+func (p *Poly) Power2Round(p0PlusQ, p1 *Poly) {
88
+ p.power2RoundGeneric(p0PlusQ, p1)
89
+}
0 commit comments