cref

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

A C implementation of the Ristretto group based on the PandA library by Chuengsatiansup, Ribarski and Schwabe, which we use as a reference of our pure Go implementation. See also https://link.springer.com/chapter/10.1007/978-3-319-04873-4_14

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fe25519

type Fe25519 C.fe25519

func (*Fe25519) Pack

func (f *Fe25519) Pack(buf *[32]byte)

func (*Fe25519) Unpack

func (f *Fe25519) Unpack(buf *[32]byte)

type GroupGe

type GroupGe C.group_ge

func (*GroupGe) Add

func (g *GroupGe) Add(x, y *GroupGe)

func (*GroupGe) Double

func (g *GroupGe) Double(x *GroupGe)

func (*GroupGe) Elligator

func (g *GroupGe) Elligator(r0 *Fe25519)

func (*GroupGe) Neg

func (g *GroupGe) Neg(x *GroupGe)

func (*GroupGe) Pack

func (g *GroupGe) Pack(buf *[32]byte)

func (*GroupGe) ScalarMult

func (g *GroupGe) ScalarMult(x *GroupGe, s *GroupScalar)

func (*GroupGe) T

func (g *GroupGe) T() *Fe25519

func (*GroupGe) Unpack

func (g *GroupGe) Unpack(buf *[32]byte) int

func (*GroupGe) X

func (g *GroupGe) X() *Fe25519

func (*GroupGe) Y

func (g *GroupGe) Y() *Fe25519

func (*GroupGe) Z

func (g *GroupGe) Z() *Fe25519

type GroupScalar

type GroupScalar C.group_scalar

func (*GroupScalar) Pack

func (s *GroupScalar) Pack(buf *[32]byte)

func (*GroupScalar) Unpack

func (s *GroupScalar) Unpack(buf *[32]byte)

Jump to

Keyboard shortcuts

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