pbc

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

+build linux

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	// contains filtered or unexported fields
}

func (*Element) Bytes

func (e *Element) Bytes() []byte

func (*Element) BytesLen

func (e *Element) BytesLen() int

func (*Element) Div

func (e *Element) Div(x *Element, y *Element) *Element

func (*Element) Invert

func (e *Element) Invert(x *Element) *Element

func (*Element) Mul

func (e *Element) Mul(x *Element, y *Element) *Element

func (*Element) Pair

func (e *Element) Pair(x, y *Element) *Element

func (*Element) PowBig

func (e *Element) PowBig(x *Element, i *big.Int) *Element

func (*Element) Rand

func (e *Element) Rand() *Element

func (*Element) Set1

func (e *Element) Set1() *Element

func (*Element) SetBytes

func (e *Element) SetBytes(buf []byte) *Element

func (*Element) SetFromHash

func (e *Element) SetFromHash(hash []byte) *Element

func (*Element) ThenInvert

func (e *Element) ThenInvert() *Element

type Pairing

type Pairing struct {
	// contains filtered or unexported fields
}

func NewPairing

func NewPairing(params *Params) *Pairing

func (*Pairing) NewUncheckedElement

func (pairing *Pairing) NewUncheckedElement(group string) *Element

type Params

type Params struct {
	// contains filtered or unexported fields
}

func GenerateA

func GenerateA(rbits uint32, qbits uint32) *Params

func GenerateF

func GenerateF(bits uint32) *Params

func NewParamsFromString

func NewParamsFromString(s string) *Params

func (*Params) String

func (params *Params) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL