Files
zeekay cc986c328d lux/kms: orphan history at f2e793bf8 (was: kms: wire luxfi/mpc as REK backend)
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.
2026-06-07 14:28:09 -07:00

23 lines
1.1 KiB
Go

package bls12381
import "github.com/cloudflare/circl/ecc/bls12381/ff"
// GtSize is the length in bytes of an element in Gt.
const GtSize = ff.URootSize
// Gt represents an element of the output (multiplicative) group of a pairing.
type Gt struct{ i ff.URoot }
func (z Gt) String() string { return z.i.String() }
func (z *Gt) UnmarshalBinary(b []byte) error { return z.i.UnmarshalBinary(b) }
func (z Gt) MarshalBinary() ([]byte, error) { return z.i.MarshalBinary() }
func (z *Gt) SetIdentity() { z.i.SetIdentity() }
func (z Gt) IsEqual(x *Gt) bool { return z.i.IsEqual(&x.i) == 1 }
func (z Gt) IsIdentity() bool { i := &Gt{}; i.SetIdentity(); return z.IsEqual(i) }
func (z *Gt) Mul(x, y *Gt) { z.i.Mul(&x.i, &y.i) }
func (z *Gt) Sqr(x *Gt) { z.i.Sqr(&x.i) }
func (z *Gt) Inv(x *Gt) { z.i.Inv(&x.i) }
// Exp calculates z=x^n, where n is the exponent in big-endian order.
func (z *Gt) Exp(x *Gt, n *Scalar) { b, _ := n.MarshalBinary(); z.i.Exp(&x.i, b) }