mirror of
https://github.com/luxfi/kms.git
synced 2026-10-30 16:23:36 +00:00
Squashes all pre-rewrite history into a single root commit. Previous tree: - 14506 commits including upstream Infisical fork history - Multiple merge chains carrying pre-purge content Force-rewrite per disk-space reclamation discipline. GHCR images (1.9.9, 1.9.11) remain immutable; their git lineage is no longer materialized.
20 lines
1.1 KiB
Go
20 lines
1.1 KiB
Go
package ff
|
|
|
|
// URootSize is the length in bytes of a root of unit.
|
|
const URootSize = Fp12Size
|
|
|
|
// URoot represents an n-th root of unit, that is an element x in Cyclo6 such
|
|
// that x^n=1, where n = ScalarOrder().
|
|
type URoot Cyclo6
|
|
|
|
func (z URoot) String() string { return (Cyclo6)(z).String() }
|
|
func (z *URoot) UnmarshalBinary(b []byte) error { return (*Fp12)(z).UnmarshalBinary(b) }
|
|
func (z URoot) MarshalBinary() ([]byte, error) { return (Fp12)(z).MarshalBinary() }
|
|
func (z *URoot) SetIdentity() { (*Fp12)(z).SetOne() }
|
|
func (z URoot) IsEqual(x *URoot) int { return (Cyclo6)(z).IsEqual((*Cyclo6)(x)) }
|
|
func (z URoot) IsIdentity() int { i := &URoot{}; i.SetIdentity(); return z.IsEqual(i) }
|
|
func (z *URoot) Exp(x *URoot, n []byte) { (*Cyclo6)(z).exp((*Cyclo6)(x), n) }
|
|
func (z *URoot) Mul(x, y *URoot) { (*Cyclo6)(z).Mul((*Cyclo6)(x), (*Cyclo6)(y)) }
|
|
func (z *URoot) Sqr(x *URoot) { (*Cyclo6)(z).Sqr((*Cyclo6)(x)) }
|
|
func (z *URoot) Inv(x *URoot) { (*Cyclo6)(z).Inv((*Cyclo6)(x)) }
|