Documentation ¶
Index ¶
- Constants
- func DecryptDirect(cxt *Context, capsule *Capsule, privKey *UmbralFieldElement, cipherText []byte) []byte
- func DecryptFragments(cxt *Context, capsule *Capsule, reKeyFrags []*CFrag, ...) []byte
- type CFrag
- type Capsule
- type Context
- type DEM
- type KFrag
- type ReEncCapsule
- type UmbralCurveElement
- type UmbralFieldElement
Constants ¶
View Source
const SECRET_BOX_KEY_SIZE = 32
Variables ¶
This section is empty.
Functions ¶
func DecryptDirect ¶
func DecryptDirect(cxt *Context, capsule *Capsule, privKey *UmbralFieldElement, cipherText []byte) []byte
func DecryptFragments ¶
func DecryptFragments(cxt *Context, capsule *Capsule, reKeyFrags []*CFrag, privKey *UmbralFieldElement, origPubKey *UmbralCurveElement, cipherText []byte) []byte
Types ¶
type Capsule ¶
type Capsule struct { E *UmbralCurveElement V *UmbralCurveElement // contains filtered or unexported fields }
type Context ¶
type Context struct { U *field.CurveElement // contains filtered or unexported fields }
func MakeDefaultContext ¶
func MakeDefaultContext() *Context
func (*Context) GetGen ¶
func (cxt *Context) GetGen() *field.CurveElement
type KFrag ¶
type KFrag struct {
// contains filtered or unexported fields
}
func SplitReKey ¶
func SplitReKey(cxt *Context, privA *UmbralFieldElement, pubB *UmbralCurveElement, threshold int, numSplits int) []*KFrag
type ReEncCapsule ¶
type ReEncCapsule struct {
// contains filtered or unexported fields
}
type UmbralCurveElement ¶
type UmbralCurveElement struct {
field.CurveElement
}
func (*UmbralCurveElement) Add ¶
func (key *UmbralCurveElement) Add(in *UmbralCurveElement) *UmbralCurveElement
func (*UmbralCurveElement) Mul ¶
func (pk *UmbralCurveElement) Mul(sk *UmbralFieldElement) *UmbralCurveElement
func (*UmbralCurveElement) MulInt ¶
func (key *UmbralCurveElement) MulInt(mi *field.ModInt) *UmbralCurveElement
type UmbralFieldElement ¶
func GenPrivateKey ¶
func GenPrivateKey(cxt *Context) *UmbralFieldElement
func MakePrivateKey ¶
func MakePrivateKey(cxt *Context, mi *field.ModInt) *UmbralFieldElement
func (*UmbralFieldElement) GetPublicKey ¶
func (key *UmbralFieldElement) GetPublicKey(cxt *Context) *UmbralCurveElement
Click to show internal directories.
Click to hide internal directories.